Mourblade : add initiative

This commit is contained in:
2022-09-26 14:01:58 +02:00
parent 98ccd8fde1
commit 0f2348fec6
4 changed files with 65 additions and 36 deletions

View File

@@ -44,6 +44,8 @@ export class MournbladeActorSheet extends ActorSheet {
protections: duplicate(this.actor.getArmors()),
dons: duplicate(this.actor.getDons()),
alignement: this.actor.getAlignement(),
aspect: this.actor.getAspect(),
marge: this.actor.getMarge(),
tendances:duplicate(this.actor.getTendances()),
runes:duplicate(this.actor.getRunes()),
origine: duplicate(this.actor.getOrigine() || {}),

View File

@@ -145,6 +145,12 @@ export class MournbladeActor extends Actor {
}
/* -------------------------------------------- */
getAspect() {
return (this.system.balance.loi > this.system.balance.chaos) ? this.system.balance.loi : this.system.balance.chaos
}
getMarge() {
return Math.abs( this.system.balance.loi - this.system.balance.chaos)
}
getAlignement() {
return (this.system.balance.loi > this.system.balance.chaos) ? "loyal" : "chaotique"
}