From fdd2ffa2dba0d334ef2d5e36f5545a63c84dcabe Mon Sep 17 00:00:00 2001 From: Jacob Lucas Date: Sat, 6 Mar 2021 00:53:53 +0000 Subject: [PATCH] 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 --- StarWars5E/StarWars5E_HTML.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/StarWars5E/StarWars5E_HTML.html b/StarWars5E/StarWars5E_HTML.html index e493b60880..f28dcb8713 100644 --- a/StarWars5E/StarWars5E_HTML.html +++ b/StarWars5E/StarWars5E_HTML.html @@ -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){