mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-04 14:12:28 +00:00
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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user