diff --git a/modules/mournblade-actor-sheet.js b/modules/mournblade-actor-sheet.js index a2f1e32..759f814 100644 --- a/modules/mournblade-actor-sheet.js +++ b/modules/mournblade-actor-sheet.js @@ -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() || {}), diff --git a/modules/mournblade-actor.js b/modules/mournblade-actor.js index bbab915..784d9ee 100644 --- a/modules/mournblade-actor.js +++ b/modules/mournblade-actor.js @@ -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" } diff --git a/system.json b/system.json index d5afb4d..6c7b315 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-mournblade", "description": "Mournblade RPG for FoundryVTT", - "version": "10.0.2", + "version": "10.0.4", "authors": [ { "name": "Uberwald/LeRatierBretonnien", @@ -15,7 +15,7 @@ "gridUnits": "m", "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-mournblade/raw/branch/v10/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-10.0.2.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-10.0.4.zip", "packs": [ { "type": "Item", diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index fc9acfb..1d51185 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -8,41 +8,62 @@

- -

{{upperFirst alignement}}

- - - - -
-
-
-

Bonne Aventure

- - - - -
-
-

Eclat

- -

Expérience

- +