Restructured to make falloff calc act like optimal

Should function identically, just looks cleaner.
This commit is contained in:
Corollax
2010-10-29 11:55:23 -05:00
parent 2d7b9fd787
commit 7df505834a

View File

@@ -52,10 +52,10 @@ class MaxRange(ViewColumn):
def getText(self, stuff):
maxRange = stuff.maxRange if hasattr(stuff, "maxRange") else stuff.getModifiedItemAttr("maxRange")
falloff = stuff.getModifiedItemAttr("falloff")
if not falloff:
falloff = ""
else:
if falloff:
falloff = "+%sm" % formatAmount(falloff, 3, 0, 3)
else:
falloff = ""
if maxRange:
return "%sm%s" % (formatAmount(maxRange, 3, 0, 3), falloff)