mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +00:00
Fix: Handle character switch popup during rogue tp
This commit is contained in:
parent
d6968fdf64
commit
6c8b28312c
@ -323,8 +323,13 @@ class RogueEntry(RouteBase, RogueRewardHandler, RoguePathHandler, DungeonUI):
|
|||||||
if self.ui_page_appear(page_rogue):
|
if self.ui_page_appear(page_rogue):
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# Additional
|
||||||
if self.appear_then_click(REWARD_CLOSE, interval=2):
|
if self.appear_then_click(REWARD_CLOSE, interval=2):
|
||||||
continue
|
continue
|
||||||
|
# Popup that confirm character switch
|
||||||
|
if self.handle_popup_confirm():
|
||||||
|
continue
|
||||||
|
# Click
|
||||||
if self.appear(page_guide.check_button, interval=2):
|
if self.appear(page_guide.check_button, interval=2):
|
||||||
buttons = TELEPORT.match_multi_template(self.device.image)
|
buttons = TELEPORT.match_multi_template(self.device.image)
|
||||||
if len(buttons):
|
if len(buttons):
|
||||||
@ -355,11 +360,11 @@ class RogueEntry(RouteBase, RogueRewardHandler, RoguePathHandler, DungeonUI):
|
|||||||
if self.config.RogueDebug_DebugMode:
|
if self.config.RogueDebug_DebugMode:
|
||||||
# Always run
|
# Always run
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.config.stored.SimulatedUniverseFarm.is_expired():
|
if self.config.stored.SimulatedUniverseFarm.is_expired():
|
||||||
# Expired, reset farming counter
|
# Expired, reset farming counter
|
||||||
self.config.stored.SimulatedUniverseFarm.set(0)
|
self.config.stored.SimulatedUniverseFarm.set(0)
|
||||||
|
|
||||||
if self.config.stored.SimulatedUniverse.is_expired():
|
if self.config.stored.SimulatedUniverse.is_expired():
|
||||||
# Expired, do rogue
|
# Expired, do rogue
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user