Menu

#68 wrong number rounding

open
Anderuso
TechViewer (1)
5
2012-09-14
2007-08-22
Anonymous
No

Tech viewer shows incorrect values. For example factory improvement 5 produces 12cp, tech viewer shows 13cp.

bug is in TechViewer.py, DisplayTech, lines around 635
probably replacing this (for me it works):
if convertor != str:
value = Rules.techImprEff[self.improvement] * value
else:
value = int(round(Rules.techImprEff[self.improvement] * value))

with this:

value = int(Rules.techImprEff[self.improvement] * value)

will do the work, but i dont know python, nor your code.

Discussion


Log in to post a comment.