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

@@ -610,3 +610,12 @@ class RewardCommission(UI, InfoHandler):
logger.info('Having too many urgent commissions, delay task `GemsFarming`')
self.config.task_delay(
minute=120, target=future_finish if len(future_finish) else None, task='GemsFarming')
class RewardCommission(RewardCommission):
def run(self):
if not self.config.full_config.Commission_Commission_DoNotRun:
self.config.task_delay(minute=6 * 60)
self.config.task_stop()
else:
super().run()