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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user