5
2
mirror of https://github.com/tilde-team/botany synced 2024-06-27 10:47:05 +00:00

Fix generation bonus not applying while closed

This commit is contained in:
Leagsaidh Gordon 2018-06-05 00:54:08 +01:00 committed by GitHub
parent a2c67f98bc
commit ae99f2eb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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