Fix a set of bugs that prevented EHP/HP switching and passive recharge

numbers to work correctly
This commit is contained in:
cncfanatics
2010-10-24 23:06:37 +02:00
parent 1290efaac3
commit ecc48de635
4 changed files with 38 additions and 22 deletions

View File

@@ -89,16 +89,16 @@ class RechargeViewFull(StatsView):
else:
tank = None
for name in ("shield", "armor", "hull"):
lbl = getattr(self, "labelTank%s%sActive" % (stability.capitalize(), name.capitalize()))
if tank is not None:
lbl.SetLabel("%.1f" % tank["%sRepair" % name])
else:
lbl.SetLabel("0.0")
if fit is not None:
label = getattr(self, "labelTankSustainedShieldPassive")
value = fit.calculateShieldRecharge()
value = fit.effectiveTank["passiveShield"]
label.SetLabel(formatAmount(value, 3, 0, 9))
else: