Skip to content

feat(SellProduct): 新增两个优先物品选项#1744

Merged
MistEO merged 8 commits intov2from
feat/more-item
Mar 30, 2026
Merged

feat(SellProduct): 新增两个优先物品选项#1744
MistEO merged 8 commits intov2from
feat/more-item

Conversation

@he0119
Copy link
Copy Markdown
Contributor

@he0119 he0119 commented Mar 30, 2026

现在可以选择售卖次数,和每次售卖的优先物品。

close #1665
#1687

Summary by Sourcery

在 SellProduct 流程中新增两个具有优先级的商品选项,并将其串联至相关的流水线和任务中。

新功能:

  • 在 SellProduct 任务的配置和逻辑中,引入两个额外的优先级商品选项。

增强与改进:

  • 更新 SellProduct 流水线,使其在相关产品变体中支持新的优先级商品选项。
  • 刷新本地化条目,在所有支持的语言中展示新的 SellProduct 优先级商品选项。
Original summary in English

Summary by Sourcery

Add two new prioritized item options to the SellProduct flow and wire them through related pipelines and tasks.

New Features:

  • Introduce two additional priority item options in the SellProduct task configuration and logic.

Enhancements:

  • Update SellProduct pipelines to support the new priority item options across relevant product variants.
  • Refresh localization entries to surface the new SellProduct priority item options in all supported languages.

Copilot AI review requested due to automatic review settings March 30, 2026 12:18
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - 我已经审查了你的更改,一切看起来都很棒!


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

Hey - I've reviewed your changes and they look great!


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.

@he0119 he0119 requested a review from Joe-Bao March 30, 2026 12:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

该 PR 为 SellProduct 任务新增“售卖尝试”机制,将原先基于“优先物品开关”的逻辑扩展为最多 4 次按优先级换货并尝试售卖的流程,并补齐多语言文案以支持新 UI 配置项。

Changes:

  • 将据点内售卖逻辑重构为 SellProductSellLoop,按 Attempt1-4 依次换货并进入售卖检查。
  • 为 ValleyIV / Wuling 等据点新增 Attempt3/4 与 PriorityItem3/4 选择项,并同步对应 pipeline 节点。
  • 新增/更新多语言文案:售卖尝试标题、说明、优先物品 3/4 标签。

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
assets/tasks/SellProduct.json 将“优先物品开关”改为 Attempt1-4 开关,并新增 PriorityItem3/4 配置入口
assets/resource/pipeline/SellProduct/Wuling.json 接入 SellLoop 与 Attempt1-4,新增 SelectItem3/4 与对应锚点
assets/resource/pipeline/SellProduct/ValleyIV.json 接入 SellLoop 与 Attempt1-4,新增 SelectItem3/4 与对应锚点
assets/resource/pipeline/SellProduct/SellCore.json 新增 SellLoop 主循环,调整缺货分支回到循环以继续后续尝试
assets/resource/pipeline/SellProduct/ChangeGoods.json 将换货中继改为通过统一锚点选择“配置货品/默认货品”
assets/locales/interface/*.json 新增 SellAttempt1-4 与说明文案,新增 PriorityItem3/4 标签

@Joe-Bao
Copy link
Copy Markdown
Contributor

Joe-Bao commented Mar 30, 2026

看了看,感觉没什么问题

@MistEO MistEO merged commit d269a39 into v2 Mar 30, 2026
18 checks passed
@MistEO MistEO deleted the feat/more-item branch March 30, 2026 13:36
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.

售卖产品希望添加更多的优先产品选项

4 participants