Skip to content

Commit

Permalink
#331 跳过黑塔 测试完毕
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorReid committed Jul 6, 2024
1 parent de57fdf commit 19e434e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/sr/sim_uni/op/sim_uni_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def _choose_opt_by_priority(self) -> OperationOneRoundResult:
if self.ctx.one_dragon_config.is_debug:
title = self._get_event_title(screen)
if str_utils.find_by_lcs(gt('孤独太空美虫'), title, percent=0.5):
return self.round_fail('遇到需要测试的事件啦')
pass
# return self.round_fail('遇到需要测试的事件啦')

if len(self.opt_list) == 0:
# 有可能在对话
Expand Down
3 changes: 2 additions & 1 deletion src/sr/sim_uni/op/v2/sim_uni_run_respite_route_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ def _check_mm_icon(self) -> OperationOneRoundResult:
识别小地图上的黑塔图标
:return:
"""
if self.ctx.sim_uni_challenge_config.skip_herta: # 跳过黑塔
if self.ctx.sim_uni_challenge_config.skip_herta and not self.event_handled: # 跳过黑塔
self.event_handled = True
self.ctx.controller.move('w', 2) # 跳过黑塔的话 离下层入口还有点距离 先移动
if self.move_by_mm_time >= 2:
# 如果移动了2次都没有交互完 说明小地图没有这个图标 只是识别错了
self.event_handled = True
Expand Down

0 comments on commit 19e434e

Please sign in to comment.