forked from public/foundryvtt-reve-de-dragon
		
	Affichage de la fortune
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| <span class="item-name"><h4>Argent et Monnaies</h4></span> | ||||
| <span class="item-name"><h4>Argent et Monnaies (fortune: {{calc.fortune}} sols)</h4></span> | ||||
| <ul class="item-list alterne-list"> | ||||
|   {{#each monnaie as |piece id|}} | ||||
|   <li class="item flexrow list-item" data-item-id="{{piece._id}}"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user