Fix #160 - Add new values...

This commit is contained in:
sladecraven 2022-11-27 20:39:45 +01:00
parent fcde81b0a4
commit 7755d87e48
3 changed files with 29 additions and 4 deletions

View File

@ -136,11 +136,34 @@ export class PegasusActor extends Actor {
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getMT() { getMT() {
return PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.statistics.mnd.mod + PegasusUtility.getDiceValue(this.system.statistics.mnd.bonuseffect) let modifier = 0
for(let effect of this.items) {
if (effect.type =="effect" && effect.system.affectstatus && effect.system.affectedstatus =="mt") {
if ( effect.system.genre == "positive") {
modifier += effect.system.effectlevel
}
if ( effect.system.genre == "negative") {
modifier -= effect.system.effectlevel
}
}
}
return PegasusUtility.getDiceValue(this.system.statistics.mnd.value) + this.system.statistics.mnd.mod + PegasusUtility.getDiceValue(this.system.statistics.mnd.bonuseffect) + modifier
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getKBV() { getKBV() {
return this.system.statistics.phy.value + this.system.statistics.phy.mod + this.system.statistics.phy.bonuseffect let modifier = 0
for(let effect of this.items) {
if (effect.type =="effect" && effect.system.affectstatus && effect.system.affectedstatus == "kbv") {
if ( effect.system.genre == "positive") {
modifier += effect.system.effectlevel
}
if ( effect.system.genre == "negative") {
modifier -= effect.system.effectlevel
}
}
}
return this.system.statistics.phy.value + this.system.statistics.phy.mod + this.system.statistics.phy.bonuseffect + modifier
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getEncumbranceCapacity() { getEncumbranceCapacity() {

View File

@ -253,7 +253,7 @@
], ],
"title": "Pegasus RPG", "title": "Pegasus RPG",
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
"version": "10.2.2", "version": "10.2.3",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.2.2.zip", "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.2.3.zip",
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp" "background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
} }

View File

@ -101,6 +101,8 @@
<option value="socialhealth">Social Health</option> <option value="socialhealth">Social Health</option>
<option value="stealthhealth">Stealth Health</option> <option value="stealthhealth">Stealth Health</option>
<option value="nrg">NRG</option> <option value="nrg">NRG</option>
<option value="mt">MT</option>
<option value="kbv">KBV</option>
{{/select}} {{/select}}
</select> </select>
</li> </li>