Armor weight

+ Added weight to armor item
+ Count armor weight only if not equipped
This commit is contained in:
Le-Frique committed 2024-01-14 18:16:52 +01:00
1 parent 3169bc89db
commit 3f2dbc4e21
2 files changed
+10 -1

No files matched your search

+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,