diff --git a/module/item.js b/module/item.js index 3e8a8cd9..7544d17d 100644 --- a/module/item.js +++ b/module/item.js @@ -148,10 +148,10 @@ export class RdDItem extends Item { getActionPrincipale(options = { warnIfNot: true }) { const warn = options.warnIfNot; switch (this.type) { - case 'nourritureboisson': return this._actionOrWarnQuantiteZero(this.boisson ? 'Boire' : 'Manger', warn); + case 'nourritureboisson': return this._actionOrWarnQuantiteZero(this.system.boisson ? 'Boire' : 'Manger', warn); case 'potion': return this._actionOrWarnQuantiteZero('Boire', warn); case 'livre': return this._actionOrWarnQuantiteZero('Lire', warn); - case 'conteneur': return this._actionOrWarnQuantiteZero('Ouvrir', warn); + case 'conteneur': return 'Ouvrir'; case 'herbe': return this.isHerbeAPotion() ? this._actionOrWarnQuantiteZero('Décoction', warn) : undefined; case 'queue': case 'ombre': return this.system.refoulement>0 ? 'Refouler' : undefined; } diff --git a/templates/actor-sheet-inventaire-item.html b/templates/actor-sheet-inventaire-item.html index b7c4629e..74d14643 100644 --- a/templates/actor-sheet-inventaire-item.html +++ b/templates/actor-sheet-inventaire-item.html @@ -40,8 +40,8 @@ {{/if}} - {{#if item.actionPrincipale}} - {{item.actionPrincipale}} + {{#if item.system.actionPrincipale}} + {{item.system.actionPrincipale}} {{/if}}