Redraw fitting and defence display when changing ship hull type.

This commit is contained in:
Karlinator
2020-09-05 01:53:37 +02:00
parent bcd9bc21c5
commit fac4ba0b14
2 changed files with 5 additions and 2 deletions
@@ -3825,7 +3825,10 @@
/* Ship sheet */
on("change:ship_hulltype", fillShipStats);
on("change:ship_class", setShipClass);
on("change:ship_class", () => {
setShipClass();
["ship-fittings", "ship-defenses"].forEach(sName => generateAutofillInfo(sName));
});
on(shipStatEvent, calculateShipStats);
on("change:repeating_ship-weapons:weapon_name change:repeating_ship-weapons:weapon_attack_bonus " +
"remove:repeating_ship-weapons", buildShipWeaponsMenu);
File diff suppressed because one or more lines are too long