Armor weight

+ Added weight to armor item
+ Count armor weight only if not equipped
This commit is contained in:
2024-01-14 18:16:52 +01:00
parent 3169bc89db
commit 3f2dbc4e21
2 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -453,7 +453,10 @@ export class M5Character extends Actor {
};
if (item.system.hoarded) {
ret.stats.hoard += item.system.value || 0;
}
};
if (item.system.equipped) {
ret.stats.encumbrance += 0;
} else {ret.stats.encumbrance += item.system.weight || 0}
ret.gear.armor[item.id] = {
label: label,