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

Add: Collecting EXP reward

- Opt: Increase reward interval to 60-120
- Fix: Default medal shop filter in buying BPs
This commit is contained in:
LmeSzinc
2021-09-30 17:12:34 +08:00
parent b0f6798596
commit 8780477758
10 changed files with 40 additions and 13 deletions

View File

@@ -10,11 +10,12 @@ from module.ui.ui import UI
class Reward(UI):
def reward_receive(self, oil, coin, skip_first_screenshot=True):
def reward_receive(self, oil, coin, exp, skip_first_screenshot=True):
"""
Args:
oil (bool):
coin (bool):
exp (bool):
skip_first_screenshot (bool):
Returns:
@@ -24,7 +25,7 @@ class Reward(UI):
in: page_reward
out: page_reward, with info_bar if received
"""
if not oil and not coin:
if not oil and not coin and not exp:
return False
logger.hr('Reward receive')
@@ -42,6 +43,9 @@ class Reward(UI):
if coin and self.appear_then_click(COIN, interval=60):
confirm_timer.reset()
continue
if exp and self.appear_then_click(EXP, interval=60):
confirm_timer.reset()
continue
# End
if confirm_timer.reached():
@@ -244,7 +248,10 @@ class Reward(UI):
out: page_main or page_mission, may have info_bar
"""
self.ui_ensure(page_reward)
self.reward_receive(oil=self.config.Reward_CollectOil, coin=self.config.Reward_CollectCoin)
self.reward_receive(
oil=self.config.Reward_CollectOil,
coin=self.config.Reward_CollectCoin,
exp=self.config.Reward_CollectExp)
self.ui_goto(page_main)
self.reward_mission()