diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 6be3f32a..58e1a19b 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -11,6 +11,7 @@ import { ReglesOptionelles } from "./settings/regles-optionelles.js"; import { DialogRepos } from "./dialog-repos.js"; import { RdDSheetUtility } from "./rdd-sheet-utility.js"; import { STATUSES } from "./settings/status-effects.js"; +import { Monnaie } from "./item-monnaie.js"; /* -------------------------------------------- */ /** @@ -56,6 +57,7 @@ export class RdDActorSheet extends ActorSheet { notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}), notesmj: await TextEditor.enrichHTML(this.object.system.notesmj, {async: true}), calc: { + fortune: Monnaie.getFortune(this.actor), encTotal: await this.actor.computeEncombrementTotalEtMalusArmure(), prixTotalEquipement: this.actor.computePrixTotalEquipement(), surprise: RdDBonus.find(this.actor.getSurprise(false)).descr, diff --git a/templates/actor/inventaire-monnaie.html b/templates/actor/inventaire-monnaie.html index f763d057..d0bc788f 100644 --- a/templates/actor/inventaire-monnaie.html +++ b/templates/actor/inventaire-monnaie.html @@ -1,4 +1,4 @@ -

Argent et Monnaies

+

Argent et Monnaies (fortune: {{calc.fortune}} sols)