Fix to encumbered not displaying on StarWars5e

Removes the attempt to calculate the weight for the ships cargo inventory, it does solve the error and allow the encumbered message to display, but now a ship will not be warned when it is over capacity
Though, the calculation for a ship being overcapacity is wrong, as it before used the same method as the pc sheet when it should rely on fixed values dependant on it's size
https://sw5e.com/rules/sotg/equipment#cargo-capacity
It also doesn't have the text display fields for the encumbered message, so it shouldn't matter
This commit is contained in:
Jacob Lucas
2021-03-06 01:06:14 +00:00
parent f616c21ee0
commit fdd2ffa2db
-3
View File
@@ -10072,9 +10072,6 @@
getSectionIDs("repeating_inventory", function(idarray) {
update_inventory_from_weight_change("repeating_inventory_", idarray, "weighttotal");
});
getSectionIDs("repeating_hiddeninventory", function(idarray) {
update_inventory_from_weight_change("repeating_hiddeninventory_", idarray, "hiddenweighttotal");
});
};
var update_inventory_from_weight_change = function (inventory, idarray, weightAttrToUpdate){