1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Fix: Loop call between event_daily_ab and reward

This commit is contained in:
LmeSzinc
2020-07-18 17:35:01 +08:00
parent 3388ca7599
commit 79b00ba8a1
3 changed files with 18 additions and 0 deletions

View File

@@ -209,3 +209,15 @@ class Reward(RewardCommission, RewardTacticalClass, RewardResearch, LoginHandler
logger.attr('Daily_executed', f'{count}/{total}')
return count
_enable_daily_reward = False
def reward_backup_daily_reward_settings(self):
"""
Method to avoid event_daily_ab calls reward, and reward calls event_daily_ab itself again.
"""
self._enable_daily_reward = self.config.ENABLE_DAILY_REWARD
self.config.ENABLE_DAILY_REWARD = False
def reward_recover_daily_reward_settings(self):
self.config.ENABLE_DAILY_REWARD = self._enable_daily_reward