Fix for EFS exports with ASBs.

This commit is contained in:
MaruMaruOO
2019-05-30 20:34:55 -04:00
parent 7cf6ff04b6
commit d4c9100f77

View File

@@ -136,15 +136,13 @@ class EfsPort:
CalcChangeModuleChargesCommand(
fit.ID,
projected=False,
chargeMap={mod.position: None},
commit=False).Do()
chargeMap={mod.position: None}).Do()
sFit.recalc(fit)
stats["unloadedCapacitorNeed"] = mod.getModifiedItemAttr("capacitorNeed")
CalcChangeModuleChargesCommand(
fit.ID,
projected=False,
chargeMap={mod.position: c.typeID},
commit=False).Do()
chargeMap={mod.position: c.typeID}).Do()
sFit.recalc(fit)
elif mod.item.group.name == "Capacitor Booster":
# The capacitorNeed is negative, which provides the boost.