Merge pull request #1993 from MaruMaruOO/master

Fix for EFS exports with ASBs.
This commit is contained in:
Anton Vorobyov
2019-05-31 08:15:38 +03:00
committed by GitHub

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.