Fix #160 - Add new values...
This commit is contained in:
@@ -136,11 +136,34 @@ export class PegasusActor extends Actor {
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
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() {
|
||||
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() {
|
||||
|
Reference in New Issue
Block a user