Add currency to character sheet (#60)

Changes:
 + add fields to track currency
 + show value of standard items
This commit is contained in:
2023-12-15 20:39:29 +01:00
committed by GitHub
parent a5336faa94
commit 31cfd52131
5 changed files with 47 additions and 6 deletions
+4 -2
View File
@@ -67,9 +67,9 @@ export class M5Character extends Actor {
brawlFw: 0,
poisonResistance: { value: 0, mods: [] },
enduranceBonus: 0,
perception: {value: 0, mods: []},
perception: { value: 0, mods: [] },
perceptionFW: 0,
drinking: {value: 0, mods: []},
drinking: { value: 0, mods: [] },
drinkingFW: 0,
},
skillMods: {},
@@ -177,6 +177,8 @@ export class M5Character extends Actor {
magic: item.system.magic,
calc: item.system.calc,
equipped: item.system?.equipped,
value: item.system.value || 0,
currency: item.system.currency || "",
};
});
}
+4 -1
View File
@@ -16,7 +16,10 @@
"caste": "",
"occupation": "",
"origin": "",
"faith": ""
"faith": "",
"gold": 0,
"silver": 0,
"copper": 0
}
},
"characterBars": {