Merge pull request #13 from rakiru/patch-2

Fix the fix for generation bonus
Tento commit je obsažen v:
Jake Funke 2018-06-04 17:09:12 -07:00 odevzdal GitHub
revize 4738c1481e
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 4AEE18F83AFDEB23

Zobrazit soubor

@ -446,7 +446,7 @@ class DataManager(object):
self.last_water_gain = time.time()
else:
ticks_to_add = 0
this_plant.ticks += ticks_to_add * (0.2 * (self.generation - 1) + 1)
this_plant.ticks += ticks_to_add * (0.2 * (this_plant.generation - 1) + 1)
return this_plant
def plant_age_convert(self,this_plant):