Do not show falloff range if it's too low (disintegrators fetch base value of 1 and show it)

This commit is contained in:
DarkPhoenix
2018-05-24 14:32:35 +03:00
parent b6181f8ad6
commit 4141a9df45

View File

@@ -60,7 +60,7 @@ class MaxRange(ViewColumn):
maxRange = stuff.maxRange if hasattr(stuff, "maxRange") else stuff.getModifiedItemAttr("maxRange", None)
falloff = stuff.falloff
if falloff:
if falloff and falloff >= 5:
falloff = "+%sm" % formatAmount(falloff, 3, 0, 3)
else:
falloff = ""