Skip to content

refactor: 重构迷失之地入口判断,兼容新账户 - #2503

Merged
ShadowLemoon merged 1 commit into
mainfrom
refactor/lost-void-entry
Jul 18, 2026
Merged

refactor: 重构迷失之地入口判断,兼容新账户#2503
ShadowLemoon merged 1 commit into
mainfrom
refactor/lost-void-entry

Conversation

@ShadowLemoon

@ShadowLemoon ShadowLemoon commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • 功能优化
    • 更新“迷失之地-入口”按钮识别标记,新增“探索收集”区域识别,并完善“战线肃清/特遣调查”的跳转路径。
    • 优化悬赏委托进入矩阵行动后的入口周期与目标副本选择逻辑,提高“前往挑战”与目标副本切换成功率。
  • 问题修复
    • 缓解部分入口切换与目标按钮识别不稳定,减少重复点击与无效等待,提升整体流程连贯性。

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 530e6c69-f823-414b-b6a2-a0b2a4fe7f17

📥 Commits

Reviewing files that changed from the base of the PR and between 172108a and c7b3719.

📒 Files selected for processing (3)
  • assets/game_data/screen_info/_od_merged.yml
  • assets/game_data/screen_info/lost_void_entry.yml
  • src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py
🚧 Files skipped from review as they are similar to previous changes (2)
  • assets/game_data/screen_info/lost_void_entry.yml
  • assets/game_data/screen_info/_od_merged.yml

📝 Walkthrough

Walkthrough

迷失之地入口配置新增“探索收集”区域并补充按钮跳转目标。LostVoidApp 调整入口加载、悬赏委托进度识别、周期点击及矩阵行动目标副本跳转流程,移除相关导航冷却记录逻辑。

Changes

迷失之地导航

Layer / File(s) Summary
入口区域与跳转配置
assets/game_data/screen_info/lost_void_entry.yml, assets/game_data/screen_info/_od_merged.yml
调整更新弹窗关闭与常规按钮的 id_mark,补充战线肃清和特遣调查跳转目标,并新增“探索收集”区域。
入口加载与进度识别
src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py
入口加载改为等待识别迷失之地入口,移除初始化时的导航冷却重置,并在悬赏委托进度识别前探测常规按钮。
周期与矩阵行动导航
src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py
周期点击改为等待前往挑战按钮出现;矩阵行动流程改为检测目标入口、点击常规并直接跳转目标副本,同时删除导航冷却辅助方法。

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant LostVoidApp
  participant ScreenInfo
  participant GameUI
  LostVoidApp->>ScreenInfo: 查找入口按钮
  ScreenInfo-->>LostVoidApp: 返回按钮识别结果
  LostVoidApp->>GameUI: 点击周期或常规按钮
  GameUI-->>ScreenInfo: 显示前往挑战或目标副本入口
  LostVoidApp->>GameUI: 跳转目标副本屏幕
Loading

Possibly related PRs

Suggested reviewers: usagi-wusaqi

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了本次对迷失之地入口判断与相关流程的重构,并与兼容新账户这一改动方向一致。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/lost-void-entry

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py (1)

139-142: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

更新注释以匹配实际代码逻辑。

注释中提到“到达入口的判定只认‘常规’”,但下方的代码逻辑实际使用的是 按钮-战线肃清。建议修正注释以保持图文一致,避免给后续维护带来困扰。

♻️ 建议的修改
-        # 新入口UI:战线肃清/特遣调查需要先在“矩阵探索”页点击“常规”再点目标副本
-        # 到达入口的判定只认“常规”,后续分流由入口导航节点按副本目标处理
+        # 新入口UI:战线肃清/特遣调查需要先在“矩阵探索”页点击“常规”再点目标副本
+        # 到达入口的判定使用“战线肃清”作为锚点,后续分流由入口导航节点按副本目标处理
         if self.config.mission_name in ['战线肃清', '特遣调查']:
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py` around lines
139 - 142, 更新 lost_void_app.py
中该入口导航条件前的注释,使其准确描述代码通过“按钮-战线肃清”进行入口判定的实际逻辑,并移除或修正“只认常规”的表述;不要修改下方的
round_by_find_area 调用或其他分流逻辑。
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py`:
- Around line 171-174: 在 LostVoid 应用中更新 round_by_find_area 的结果判断:将
result.is_fail 改为检查 not result.is_success,使未识别到“按钮-常规”时的 RETRY 和 FAIL 都立即调用
round_retry 并返回;成功状态保持现有 OCR 流程不变。

---

Nitpick comments:
In `@src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py`:
- Around line 139-142: 更新 lost_void_app.py
中该入口导航条件前的注释,使其准确描述代码通过“按钮-战线肃清”进行入口判定的实际逻辑,并移除或修正“只认常规”的表述;不要修改下方的
round_by_find_area 调用或其他分流逻辑。
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 86aab9c5-c906-445d-93ae-db0147aa9996

📥 Commits

Reviewing files that changed from the base of the PR and between 2260c05 and 89a1964.

📒 Files selected for processing (3)
  • assets/game_data/screen_info/_od_merged.yml
  • assets/game_data/screen_info/lost_void_entry.yml
  • src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py

Comment thread src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py
@ShadowLemoon
ShadowLemoon force-pushed the refactor/lost-void-entry branch from 89a1964 to 172108a Compare July 17, 2026 01:51

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py (1)

164-167: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

这里应直接判断成功状态。

round_by_find_area 未命中时返回的是 RETRYresult.is_fail 只会拦截 FAIL,会漏掉“未识别到常规按钮”的分支并继续执行后面的 OCR。建议改成 not result.is_success 更稳妥。

💻 建议修复
-        if result.is_fail:
+        if not result.is_success:
             return self.round_retry('未识别到常规按钮', wait=0.5)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py` around lines
164 - 167, Update the result check in the flow around round_by_find_area to use
result.is_success as the success condition, returning round_retry when the
result is not successful. This must handle both RETRY and FAIL outcomes before
continuing to the subsequent OCR processing.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py`:
- Around line 164-167: Update the result check in the flow around
round_by_find_area to use result.is_success as the success condition, returning
round_retry when the result is not successful. This must handle both RETRY and
FAIL outcomes before continuing to the subsequent OCR processing.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9382f623-f683-4cd4-a236-2dcb9dce5ab5

📥 Commits

Reviewing files that changed from the base of the PR and between 89a1964 and 172108a.

📒 Files selected for processing (3)
  • assets/game_data/screen_info/_od_merged.yml
  • assets/game_data/screen_info/lost_void_entry.yml
  • src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • assets/game_data/screen_info/lost_void_entry.yml

Comment thread src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py
@ShadowLemoon
ShadowLemoon force-pushed the refactor/lost-void-entry branch from 172108a to b306a32 Compare July 17, 2026 05:47
@ShadowLemoon
ShadowLemoon force-pushed the refactor/lost-void-entry branch from b306a32 to c7b3719 Compare July 17, 2026 05:47
@ShadowLemoon
ShadowLemoon merged commit ab8da6a into main Jul 18, 2026
9 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 21, 2026
@ShadowLemoon
ShadowLemoon deleted the refactor/lost-void-entry branch July 29, 2026 03:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants