mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-26 10:16:34 +00:00
Fix: Timer for potato pc
- Timer for retreat - Timer for equip swipe - Fix error when already in map - Better code appearance for B3/D3 in event_20200611_en
This commit is contained in:
parent
6f566e6b36
commit
26ce4d896d
@ -26,7 +26,7 @@ MAP.wall_data = """
|
||||
· · | · · · | · · · · | · · · | · · ,
|
||||
| | | | ,
|
||||
· · | · · · | · · · · | · · · | · · ,
|
||||
+---+ +---+ +----+ +---+ ,
|
||||
+---+ +---+ +---+ +---+ ,
|
||||
· · · | · · · · · · · · | · · · ,
|
||||
| | ,
|
||||
· · · | · · · · · · · · | · · · ,
|
||||
|
@ -37,7 +37,7 @@ MAP.wall_data = """
|
||||
· · | · · · | · · · · | · · · | · · ,
|
||||
| | | | ,
|
||||
· · | · · · | · · · · | · · · | · · ,
|
||||
+---+ +---+ +----+ +---+ ,
|
||||
+---+ +---+ +---+ +---+ ,
|
||||
· · · | · · · · · · · · | · · · ,
|
||||
| | ,
|
||||
· · · | · · · · · · · · | · · · ,
|
||||
|
@ -17,7 +17,7 @@ class Equipment(InfoHandler):
|
||||
equipment_has_take_on = False
|
||||
|
||||
def _view_swipe(self, distance, check_button=EQUIPMENT_OPEN):
|
||||
swipe_timer = Timer(3, count=5)
|
||||
swipe_timer = Timer(5, count=10)
|
||||
SWIPE_CHECK.load_color(self.device.image)
|
||||
while 1:
|
||||
if not swipe_timer.started() or swipe_timer.reached():
|
||||
|
@ -80,12 +80,12 @@ class ExerciseCombat(HpDaemon, OpponentChoose, ExerciseEquipment):
|
||||
show_hp_timer.reset()
|
||||
self._show_hp()
|
||||
|
||||
if self.appear_then_click(QUIT_CONFIRM, offset=True, interval=1):
|
||||
if self.appear_then_click(QUIT_CONFIRM, offset=True, interval=5):
|
||||
success = False
|
||||
end = True
|
||||
continue
|
||||
|
||||
if self.appear_then_click(QUIT_RECONFIRM, offset=True, interval=1):
|
||||
if self.appear_then_click(QUIT_RECONFIRM, offset=True, interval=5):
|
||||
self.interval_reset(QUIT_CONFIRM)
|
||||
continue
|
||||
|
||||
|
@ -38,7 +38,9 @@ class EnemySearchingHandler(InfoHandler):
|
||||
def is_in_stage(self):
|
||||
if not self.appear(IN_STAGE, offset=(10, 10)):
|
||||
return False
|
||||
if self.stage_entrance is not None and not self.appear(self.stage_entrance, threshold=30):
|
||||
if self.stage_entrance is not None \
|
||||
and self.stage_entrance.area \
|
||||
and not self.appear(self.stage_entrance, threshold=30):
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user