1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:19:26 +08:00

add: add do not run reward, commission and research actually

This commit is contained in:
0O0o0oOoO00
2025-09-12 00:11:58 +08:00
parent 026860508a
commit cf0c93a766
12 changed files with 99 additions and 0 deletions

View File

@@ -590,3 +590,12 @@ class RewardResearch(ResearchSelector, ResearchQueue, StorageHandler):
# ten minutes in advance to avoid idle research.
self.end_time = self.end_time + timedelta(minutes=-10)
self.config.task_delay(target=self.end_time)
class RewardResearch(RewardResearch):
def run(self):
if not self.config.full_config.Research_Research_DoNotRun:
self.config.task_delay(minute=6 * 60)
self.config.task_stop()
else:
super().run()