Include armor, weapon, and item qty weight in charcter weight calculation.

This commit is contained in:
mealzz
2022-02-26 19:28:55 -05:00
parent ea78b67a50
commit d0ca41865c
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -102,11 +102,12 @@ export class MothershipActorSheet extends ActorSheet {
if (i.type === 'item') {
gear.push(i);
curWeight+=item.weight;
curWeight+=item.weight*item.quantity;
} else if (i.type === 'skill') {
skills.push(i);
} else if (i.type === 'armor') {
armors.push(i);
curWeight+=item.weight;
} else if (i.type === 'weapon') {
//We need to update this from the old system.
if(item.ranges.value == "" && item.ranges.medium > 0){
@@ -115,6 +116,7 @@ export class MothershipActorSheet extends ActorSheet {
}
weapons.push(i);
curWeight+=item.weight;
} else if (i.type === 'condition') {
// We'll handle the pip html here.
if (item.treatment == null) {
+3 -1
View File
@@ -240,6 +240,7 @@
"critDmg": "",
"critEffect": "",
"bonus": 0,
"weight": 0,
"cost" : 0,
"ranges": {
"short": 0,
@@ -256,7 +257,8 @@
"base"
],
"bonus": 10,
"value" : 0
"weight": 0,
"cost" : 0
},
"condition": {
"templates": [