Change some stuff for latest eos and grab latest fixes

This commit is contained in:
cncfanatics
2010-10-26 21:39:45 +02:00
parent c1b3592f57
commit 697ae6d473
2 changed files with 4 additions and 5 deletions

2
eos

Submodule eos updated: a5737d4e17...1dea1ba300

View File

@@ -36,10 +36,9 @@ class CapacitorUse(ViewColumn):
def getText(self, mod):
attr = mod.getModifiedItemAttr("capacitorNeed")
cycleTime = mod.getCycleTime()
if attr is not None and cycleTime is not None:
return "%s%s" % ("+" if attr < 0 else "", (formatAmount(-attr / mod.getCycleTime(), 3, 0, 3)))
capUse = mod.capUse
if capUse is not None:
return "%s%s" % ("+" if capUse < 0 else "", (formatAmount(-capUse, 3, 0, 3)))
else:
return ""