Skip to content

Dev rich man - #1717

Merged
runhey merged 3 commits into
runhey:devfrom
LGG686:dev-RichMan
Aug 6, 2026
Merged

Dev rich man#1717
runhey merged 3 commits into
runhey:devfrom
LGG686:dev-RichMan

Conversation

@LGG686

@LGG686 LGG686 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary by Sourcery

在《大富翁·千本事》中新增可选的自动赚金币流程,并增强大蛇副本流程以可选地检测和安排真·大蛇任务,同时优化大富翁秤与通用购买交互。

New Features:

  • 为千本事新增可配置的“自动赚金币”子任务,可自动借用式神、领取奖励并退出。
  • 在大蛇战斗结束后新增真·大蛇检测步骤,在启用时可自动安排 TrueOrochi 任务。
  • 在大富翁秤中新增配置开关,用于控制是否自动购买图鉴碎片。

Bug Fixes:

  • 调整大富翁秤中与海洋相关计数器和六星奖励的图片及 OCR 区域,使之更贴合当前 UI。
  • 优化通用 Buy 组件中的点击区域和 OCR 区域,以正确点击多次购买按钮并识别数量显示。

Enhancements:

  • 为大富翁·千本事资源新增与借用/配置/确认相关的模板,以支持新的自动赚金币流程。
  • 将 ScriptTask 接入 TrueOrochi 资源,以支持战斗结束后的真·大蛇检测。
  • 暴露配置开关,用于控制真·大蛇战后检测以及大富翁·千本事自动赚金币行为。
Original summary in English

Summary by Sourcery

Add optional automated money-earning flow in RichMan Thousand Things and enhance Orochi runs to optionally detect and schedule True Orochi, while refining RichMan scales and generic buy interactions.

New Features:

  • Add configurable earn-money subtask to Thousand Things that borrows shikigami, collects rewards, and exits automatically.
  • Introduce a True Orochi detection step after Orochi battles that can schedule the TrueOrochi task when enabled.
  • Add configuration toggle to control automatic picture book scrap purchases in RichMan scales.

Bug Fixes:

  • Adjust image and OCR regions for RichMan scales sea-related counters and six-star rewards to better match the UI.
  • Refine click and OCR regions in the generic Buy component to correctly target the multi-buy button and quantity display.

Enhancements:

  • Extend RichMan Thousand Things assets with borrow/configure/confirm-related templates to support the new earn-money flow.
  • Wire ScriptTask to TrueOrochi assets to support post-battle True Orochi detection.
  • Expose configuration flags for True Orochi post-run checks and RichMan Thousand Things earn-money behavior.

LGG686 added 3 commits August 5, 2026 14:56
- 新增 check_true_orochi_enable 配置项控制是否启用检测
- 御魂挑战结束后检测真蛇, 发现则立即触发 TrueOrochi 任务
- 新增 enable_book_auto 配置项, 控制永生之海是否使用自动选择
- _scales_sea 根据配置分支: 开启时使用 _scales_buy_more(自动选择),
  关闭时使用原 _scales_buy_sea_more(手动选魂)
- 补充 zh-CN 国际化文案
- config: 新增 earn_money 配置项控制是否执行借处流程
- thousand_things: 新增 tt_earn_money 方法,实现借出式神并领取500樱灯饰
- assets: 新增 borrow/configure/confirm/shikigami 等图像匹配资源
- i18n: 补充 zh-CN 国际化文案

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - 我在这里给出了一些高层次的反馈:

  • 新的 tt_earn_money 流程依赖于一个无限的 while 1 循环,只有在 I_TT_SHIKIGAMI_REPLACE 消失时才会退出;建议添加超时时间或最大迭代次数,以避免在 UI 进入意外状态时发生卡死。
  • I_TT_CONFIGUREI_TT_CONFIRM 使用了相同的 ROI 和文件路径;你可以复用同一个资源,或者添加说明性注释,以避免造成它们是不同按钮的误解。
给 AI 代理的提示
Please address the comments from this code review:

## Overall Comments
- The new `tt_earn_money` flow relies on an infinite `while 1` loop that only exits when `I_TT_SHIKIGAMI_REPLACE` disappears; consider adding a timeout or maximum iteration count to avoid hanging if the UI gets into an unexpected state.
- Both `I_TT_CONFIGURE` and `I_TT_CONFIRM` share identical ROI and file paths; you could reuse a single asset or add a clarifying comment to avoid confusion about whether they represent distinct buttons.

Sourcery 对开源项目是免费的——如果你觉得我们的代码审查有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会根据你的反馈改进后续的代码审查。
Original comment in English

Hey - I've left some high level feedback:

  • The new tt_earn_money flow relies on an infinite while 1 loop that only exits when I_TT_SHIKIGAMI_REPLACE disappears; consider adding a timeout or maximum iteration count to avoid hanging if the UI gets into an unexpected state.
  • Both I_TT_CONFIGURE and I_TT_CONFIRM share identical ROI and file paths; you could reuse a single asset or add a clarifying comment to avoid confusion about whether they represent distinct buttons.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The new `tt_earn_money` flow relies on an infinite `while 1` loop that only exits when `I_TT_SHIKIGAMI_REPLACE` disappears; consider adding a timeout or maximum iteration count to avoid hanging if the UI gets into an unexpected state.
- Both `I_TT_CONFIGURE` and `I_TT_CONFIRM` share identical ROI and file paths; you could reuse a single asset or add a clarifying comment to avoid confusion about whether they represent distinct buttons.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@LGG686

LGG686 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@runhey
buy_one和buy_more的点击范围不太好调整啊
比如海汐御魂的游戏加个自动选择导致购买按钮变矮了buy_more必须往下调整,否则可能点到自动选择
或者神秘商店购买调用buy_one点不到太鼓蓝票的购买,# 1718的卡购买判断好像是ms_check_blue的roi小了,好像ui变了,其他的check都需要调大点
调整buy的话可能会导致其他的物品购买点不了?
或许可以改成由任务自身资产传入作为buy的按钮?

@runhey

runhey commented Aug 6, 2026

Copy link
Copy Markdown
Owner

可以,大不了开一个新的函数,我当时图快,写这个好像就一天

@runhey
runhey merged commit 11ae64d into runhey:dev Aug 6, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants