diff --git a/aoe/gather.py b/aoe/gather.py index 216cad3..975cf03 100644 --- a/aoe/gather.py +++ b/aoe/gather.py @@ -233,7 +233,8 @@ class Gather(): else: available = self.gatherable_amounts[task] - if rate == 0 or (villagers == 0 and decay == 0): + SMALL_FLOAT = 1e-8 + if rate < SMALL_FLOAT or (villagers == 0 and decay == 0): next_decrease = None else: next_decrease = available/(villagers*rate + decay)