diff --git a/module/campaign/gems_farming.py b/module/campaign/gems_farming.py index 0b70b0851d..fbbede6b7e 100644 --- a/module/campaign/gems_farming.py +++ b/module/campaign/gems_farming.py @@ -29,14 +29,19 @@ class GemsFleetEmotion(FleetEmotion): - @property - def max(self): - return 150 - @property def limit(self): return 4 + def update(self): + current = max(self.value, 0) + if current >= 119: + self.current = current + else: + recover_count = int(int(datetime.now().timestamp()) // 360 - int(self.record.timestamp()) // 360) + recover_count = max(recover_count, 0) + self.current = min(current + self.speed * recover_count, 119) + def reset(self, emotion): self.current = emotion self.config.set_record(**{self.value_name: emotion})