Skip to content

Feat/lunar adventure - #1701

Open
carroarmato0 wants to merge 3 commits into
libretro:masterfrom
carroarmato0:feat/lunar_adventure
Open

Feat/lunar adventure#1701
carroarmato0 wants to merge 3 commits into
libretro:masterfrom
carroarmato0:feat/lunar_adventure

Conversation

@carroarmato0

Copy link
Copy Markdown
Contributor

No description provided.

carroarmato0 and others added 3 commits August 5, 2026 11:58
…ies for

Alex, Luna, Nash and Ramu), and max Sil (money).

Signed-off-by: Christophe Vanlancker <carroarmato0@gmail.com>
The counter at 0x030025D4 (u16, IWRAM) holds the number of frames of held
movement input remaining until the next random encounter. It decrements once
per movement frame and the encounter fires when the decrement lands exactly on
zero. Pinning it at 999 means it can never land there.

The address was found by diffing RAM across using the in-game item "Perfume"
("Keeps monsters away!"), which turned out to add 300 to this same counter,
once -- it delays encounters rather than suppressing them.

Verified causally in both directions through retro_cheat_set, on two different
saves in two different areas: 830025D4 03E7 gives zero encounters across
400-step walks and a 30,510-frame soak, while 830025D4 0001 forces a battle
within four steps. Poking the counter to N produces the encounter after
exactly N frames of held movement, confirmed across 17 distinct predictions.

Combat is unaffected -- a battle entered by other means fights and resolves
normally with the cheat active -- and the counter is not battle scratch memory:
it holds a stable value for the duration of a fight.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Christophe Vanlancker <carroarmato0@gmail.com>
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