Skip to content

PLZA: share InPlaceCatcher's lock-on sweep - #655

Draft
dayfine wants to merge 3 commits into
mainfrom
plza/lock-on-sweep
Draft

dayfine wants to merge 3 commits into
mainfrom
plza/lock-on-sweep

Conversation

@dayfine

@dayfine dayfine commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Shares InPlaceCatcher's lock-on camera sweep so other PLZA programs can lock on to a wild Pokemon the same way.

  • New PokemonLZA_LockOnSweep: sweep_camera_for_lock_on() is InPlaceCatcher's loop body (right stick turn 1 s, D-pad up, ZL mashed 1 s and held 0.5 s, per round; then L), with the stick direction and round count as arguments. lock_on_by_sweep() runs it until the move effectiveness symbols show and returns whether they did.
  • InPlaceCatcher calls sweep_camera_for_lock_on(context, -0.5, 10) in its loop: same presses, timings and order as before.
  • lock_on_by_sweep() is used by AutoStory's catch stop (plza/lean, PLZA AutoStory: 01.00 to 03.11 (lean branch) #644).

Testing: compiled the touched files; fork CI builds and runs the unit tests. Needs a console check of InPlaceCatcher.

dayfine and others added 3 commits November 18, 2026 04:28
Moves InPlaceCatcher's sweep (right stick turn, D-pad up, ZL mash and
hold, then L) into PokemonLZA_LockOnSweep with the same presses and
timings, and adds lock_on_by_sweep() that runs it until the move
effectiveness symbols show.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
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.

1 participant