Skip to content

fix: 粉爪方案二调整延迟时间和添加定位点以优化操作流畅性#260

Merged
1bananachicken merged 4 commits into
1bananachicken:devfrom
CCYellowStar2:pph
Jun 2, 2026
Merged

fix: 粉爪方案二调整延迟时间和添加定位点以优化操作流畅性#260
1bananachicken merged 4 commits into
1bananachicken:devfrom
CCYellowStar2:pph

Conversation

@CCYellowStar2
Copy link
Copy Markdown
Contributor

@CCYellowStar2 CCYellowStar2 commented May 31, 2026

Summary by Sourcery

调整 PinkPawHeistScheme2Action 的移动和交互时序,以提升抢劫流程的可靠性和流畅度。

Enhancements:

  • 调整 PinkPawHeistScheme2Action 中多次按键的延迟间隔和交互循环,使角色移动与激光轨迹和展品位置更加精准对齐。
  • 在二楼流程中加入额外的横向微调移动,以在收集展品前进一步优化站位。
Original summary in English

Summary by Sourcery

Tune PinkPawHeistScheme2Action movement and interaction timings to improve the reliability and smoothness of the heist sequence.

Enhancements:

  • Adjust multiple keypress delay intervals and interaction loops in PinkPawHeistScheme2Action to better align character movement with laser patterns and exhibit positions.
  • Insert an additional lateral adjustment movement in the second floor sequence to refine positioning before collecting exhibits.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented May 31, 2026

审阅者指南

此 PR 通过微调 PinkPawHeistScheme2Action 中移动、跳跃、交互以及镜头操作的时序(调整若干延迟和循环次数,并插入一个短暂的修正侧移片段),以提升整套自动化流程的流畅度和稳定性。

更新后的 PinkPawHeistScheme2Action 走廊接近与战利品交互流程时序图

sequenceDiagram
    participant PinkPawHeistScheme2Action as Action
    participant ah
    participant Controller

    Action->>ah: key_down(D)
    Action->>ah: delay(7000)
    Action->>ah: key_up(D)
    Action->>ah: delay(100)
    Action->>ah: key_down(A)
    Action->>ah: delay(300)
    Action->>ah: key_up(A)
    Action->>ah: delay(100)
    loop loot_right_front_showcase
        Action->>ah: click_key(F)
        Action->>ah: delay(200)
    end
    Action->>ah: key_down(S)
    Action->>ah: delay(1950)
    Action->>ah: key_up(S)
    loop loot_backward
        Action->>ah: click_key(F)
        Action->>ah: delay(200)
    end
Loading

文件级变更

变更 详情 文件
重新调校移动与激光闪避的时间,以更好地将角色动作与激光模式对齐。
  • 在靠近激光区段的 W/D/A/S 按键周围,调整了多处 ah.delay(...) 间隔,以略微拉长或缩短移动窗口
  • 微调 key_up 事件前后延迟,在穿越或等待激光时收紧时间裕度
agent/custom/action/pinkpaw/pinkpaw_core2.py
优化跳跃与交互的节奏,以提高与展柜交互和通过障碍物时的成功率。
  • 减少部分 controller.post_key_down(32) / post_key_up(32)(空格/跳跃)调用之间的延迟,使跳跃响应更灵敏
  • 略微缩短连续 ah.click_key("F") 拾取调用之间的延迟,在不破坏流程的前提下加快交互速度
  • 调整鼠标右键(controller.post_key_down(2)) 操作及其后续移动动作周围的延迟,使其与游戏内动画节奏更同步
agent/custom/action/pinkpaw/pinkpaw_core2.py
调整后期移动阶段的路径与节奏,包括增加一个修正侧移动作以及对上层楼路线的时间微调。
  • 延长一段较长的 D 向移动延迟,然后新增一小段 A 向侧移,以在开始拾取序列前精细调整最终站位
  • 对上层楼部分多处 S 向移动延迟进行微调(略微增减),以对齐展柜位置和激光空隙
  • 在一段 W 向移动中增加 F 交互的迭代次数,确保所有目标物品都被拾取
agent/custom/action/pinkpaw/pinkpaw_core2.py

提示与命令

与 Sourcery 交互

  • 触发新一次审阅: 在 Pull Request 中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审阅评论。
  • 从审阅评论生成 GitHub issue: 回复某条审阅评论,要求 Sourcery 用该评论创建一个 issue。你也可以直接回复该评论 @sourcery-ai issue 来从中创建 issue。
  • 生成 Pull Request 标题: 在 Pull Request 标题中任意位置写上 @sourcery-ai,即可随时生成标题。你也可以在 Pull Request 中评论 @sourcery-ai title 来(重新)生成标题。
  • 生成 Pull Request 总结: 在 Pull Request 正文任意位置写上 @sourcery-ai summary,即可在该位置生成 PR 总结。你也可以在 Pull Request 中评论 @sourcery-ai summary 来在任意时间(重新)生成总结。
  • 生成审阅者指南: 在 Pull Request 中评论 @sourcery-ai guide,即可随时(重新)生成审阅者指南。
  • 一次性解决所有 Sourcery 评论: 在 Pull Request 中评论 @sourcery-ai resolve,即可将所有 Sourcery 评论标记为已解决。如果你已经处理了所有评论且不想再看到它们,这非常有用。
  • 全部撤销 Sourcery 审阅: 在 Pull Request 中评论 @sourcery-ai dismiss,即可撤销所有现有的 Sourcery 审阅。如果你想从头开始一次新的审阅,这尤其有用——别忘了再评论 @sourcery-ai review 来触发新审阅!

自定义你的体验

打开你的 控制面板 以:

  • 启用或禁用审阅功能,例如 Sourcery 自动生成的 Pull Request 总结、审阅者指南等。
  • 更改审阅语言。
  • 添加、删除或编辑自定义审阅指令。
  • 调整其他审阅设置。

获取帮助

Original review guide in English

Reviewer's Guide

This PR fine-tunes the timing of movement, jumping, interaction, and camera actions in PinkPawHeistScheme2Action by adjusting delays and a few loop counts, plus inserting a small corrective strafe segment, to improve the smoothness and reliability of the automation sequence.

Sequence diagram for updated PinkPawHeistScheme2Action corridor approach and loot interaction

sequenceDiagram
    participant PinkPawHeistScheme2Action as Action
    participant ah
    participant Controller

    Action->>ah: key_down(D)
    Action->>ah: delay(7000)
    Action->>ah: key_up(D)
    Action->>ah: delay(100)
    Action->>ah: key_down(A)
    Action->>ah: delay(300)
    Action->>ah: key_up(A)
    Action->>ah: delay(100)
    loop loot_right_front_showcase
        Action->>ah: click_key(F)
        Action->>ah: delay(200)
    end
    Action->>ah: key_down(S)
    Action->>ah: delay(1950)
    Action->>ah: key_up(S)
    loop loot_backward
        Action->>ah: click_key(F)
        Action->>ah: delay(200)
    end
Loading

File-Level Changes

Change Details Files
Retuned movement and laser-dodging timings to better align character motion with laser patterns.
  • Adjusted multiple ah.delay(...) intervals between W/D/A/S key presses around laser sections to slightly lengthen or shorten movement windows
  • Tweaked delays before and after key_up events to tighten the timing margins when passing through or waiting for lasers
agent/custom/action/pinkpaw/pinkpaw_core2.py
Refined jump and interaction timing to improve success rate when interacting with showcases and traversing obstacles.
  • Reduced certain delays between controller.post_key_down(32) / post_key_up(32) (space/jump) calls to make jumps more responsive
  • Slightly reduced delays between repeated ah.click_key("F") calls when looting to speed up interactions without breaking flow
  • Adjusted delays around mouse right-click (controller.post_key_down(2)) actions and follow-up movement to better sync with in-game animations
agent/custom/action/pinkpaw/pinkpaw_core2.py
Adjusted pathing and pacing in late-phase movement, including an extra corrective strafe and timing tweaks in upper-floor routes.
  • Increased a long D movement delay, then added a short A strafe segment to fine-tune final positioning before starting a loot sequence
  • Fine-tuned several S movement delays (slightly increased or decreased) in upper-floor sections to align with showcase positions and laser gaps
  • Increased the number of F interaction iterations in a W movement segment to ensure all target items are collected
agent/custom/action/pinkpaw/pinkpaw_core2.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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 - 我在这里给出了一些总体反馈:

  • 这里出现了很多被不断调节的硬编码延迟值;建议把这些时间参数集中到命名常量或配置结构中,这样可以更容易在一个地方理解和调整整体行为。
  • 重复出现的 key_down/key_up 和延迟模式(尤其是在跳跃以及与 F/空格 交互相关的部分)可以重构为一些小的辅助函数,以减少重复代码,并让每段动作序列的意图更清晰。
给 AI Agent 的提示
请根据这次代码评审中的评论进行修改:

## 总体评论
- 这里出现了很多被不断调节的硬编码延迟值;建议把这些时间参数集中到命名常量或配置结构中,这样可以更容易在一个地方理解和调整整体行为。
- 重复出现的 key_down/key_up 和延迟模式(尤其是在跳跃以及与 F/空格 交互相关的部分)可以重构为一些小的辅助函数,以减少重复代码,并让每段动作序列的意图更清晰。

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

Hey - I've left some high level feedback:

  • There are many hard-coded delay values being tuned here; consider centralizing these timings into named constants or a config structure so the behavior is easier to understand and adjust in one place.
  • The repeated key_down/key_up and delay patterns (especially around jumping and interacting with F/space) could be refactored into small helper functions to reduce duplication and make the intent of each action sequence clearer.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- There are many hard-coded delay values being tuned here; consider centralizing these timings into named constants or a config structure so the behavior is easier to understand and adjust in one place.
- The repeated key_down/key_up and delay patterns (especially around jumping and interacting with F/space) could be refactored into small helper functions to reduce duplication and make the intent of each action sequence clearer.

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.

@CCYellowStar2 CCYellowStar2 changed the title fix: 调整延迟时间以优化 PinkPawHeistScheme2Action 的操作流畅性 fix: 粉爪方案二调整延迟时间以优化操作流畅性 Jun 2, 2026
@CCYellowStar2 CCYellowStar2 changed the title fix: 粉爪方案二调整延迟时间以优化操作流畅性 fix: 粉爪方案二调整延迟时间和添加定位点以优化操作流畅性 Jun 2, 2026
@1bananachicken 1bananachicken merged commit e87fdb0 into 1bananachicken:dev Jun 2, 2026
9 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