Notion d'équipement/inventaire

This commit is contained in:
Vincent Vandemeulebrouck
2022-11-28 11:31:55 +01:00
parent 42c4fe0b29
commit 4bd2c1c2b4
9 changed files with 272 additions and 284 deletions

View File

@ -172,7 +172,7 @@ export class RdDItem extends Item {
}
valeurDeniers() {
return Math.max(Math.round(this.system.cout ? (this.system.cout * 100) : (this.system.valeur_deniers ?? 0)), 0)
return Math.max(Math.round(this.system.cout ? (this.system.cout * 100) : (this.system.cout ?? 0)), 0)
}
prepareDerivedData() {
@ -494,7 +494,7 @@ export class RdDItem extends Item {
/* -------------------------------------------- */
_monnaieChatData() {
return [
`<b>Valeur en Deniers</b>: ${this.system.valeur_deniers}`,
`<b>Valeur en Deniers</b>: ${this.system.cout}`,
`<b>Encombrement</b>: ${this.system.encombrement}`
]
}