Skip to content

Commit

Permalink
#337 修复旧宇宙进入不需要选择祝福的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorReid committed Jun 22, 2024
1 parent a4e28c4 commit e356a13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sr/sim_uni/op/choose_sim_uni_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ def _confirm_path(self) -> OperationOneRoundResult:
click = self.ocr_and_click_one_line('确认命途', ChooseSimUniPath.CONFIRM_BTN,
lcs_percent=0.1)
if click == Operation.OCR_CLICK_SUCCESS:
return self.round_success()
return self.round_success(wait=2)
else:
return self.round_retry('点击确认命途失败')
2 changes: 2 additions & 0 deletions src/sr/sim_uni/op/v2/sim_uni_run_route_base_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from cv2.typing import MatLike

from basic.i18_utils import gt
from basic.log_utils import log
from sr.const import STANDARD_RESOLUTION_W
from sr.context import Context
from sr.image.sceenshot import mini_map
Expand Down Expand Up @@ -145,6 +146,7 @@ def _turn_when_nothing(self) -> OperationOneRoundResult:
time.sleep(0.5)

if self.nothing_times % 11 == 0:
log.debug('无内容次数 %d', self.nothing_times)
# 识别不到内容太多次 判断楼层类型是否有问题
if self.last_screenshot is not None and not self.is_level_type_correct(self.last_screenshot):
return self.round_fail(SimUniRunRouteBaseV2.STATUS_WRONG_LEVEL_TYPE)
Expand Down

0 comments on commit e356a13

Please sign in to comment.