mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-29 04:45:30 +08:00
Fix: avoid sos calls daily_sos again
This commit is contained in:
@@ -403,7 +403,7 @@ class Reward(RewardCommission, RewardTacticalClass, RewardResearch, RewardDorm,
|
|||||||
|
|
||||||
def reward_backup_daily_reward_settings(self):
|
def reward_backup_daily_reward_settings(self):
|
||||||
"""
|
"""
|
||||||
Method to avoid event_daily_ab calls reward, and reward calls event_daily_ab itself again.
|
Method to avoid event_daily_ab and sos calls reward, and reward calls event_daily_ab or daily_sos itself again.
|
||||||
"""
|
"""
|
||||||
self._daily_reward_setting_backup = self.config.cover(
|
self._daily_reward_setting_backup = self.config.cover(
|
||||||
ENABLE_DAILY_REWARD=False,
|
ENABLE_DAILY_REWARD=False,
|
||||||
|
|||||||
@@ -175,6 +175,9 @@ class CampaignSos(CampaignRun, CampaignBase):
|
|||||||
logger.info(f'No SOS signal, End SOS signal search')
|
logger.info(f'No SOS signal, End SOS signal search')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
# avoid sos calls daily_sos and causes error.
|
||||||
|
self.reward_backup_daily_reward_settings()
|
||||||
|
|
||||||
fleet_1 = self.config.SOS_FLEET_1
|
fleet_1 = self.config.SOS_FLEET_1
|
||||||
fleet_2 = self.config.SOS_FLEET_2
|
fleet_2 = self.config.SOS_FLEET_2
|
||||||
submarine = self.config.SOS_SUBMARINE
|
submarine = self.config.SOS_SUBMARINE
|
||||||
@@ -201,6 +204,7 @@ class CampaignSos(CampaignRun, CampaignBase):
|
|||||||
break
|
break
|
||||||
|
|
||||||
backup.recover()
|
backup.recover()
|
||||||
|
self.reward_recover_daily_reward_settings()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def record_executed_since(self):
|
def record_executed_since(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user