diff options
| author | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 02:18:41 +0200 |
|---|---|---|
| committer | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 02:18:41 +0200 |
| commit | defa142490b4bb8d89f655dce3149cc25adaedd2 (patch) | |
| tree | 78dd02e8b43890965a18a6c9b4961e2a5086236f /engine/battle | |
| parent | menu: cheat suite - MONEY, BADGES, DEX, MAXTEAM + ITEMS submenu (diff) | |
| download | pokeyellow-defa142490b4bb8d89f655dce3149cc25adaedd2.tar.gz pokeyellow-defa142490b4bb8d89f655dce3149cc25adaedd2.tar.xz pokeyellow-defa142490b4bb8d89f655dce3149cc25adaedd2.zip | |
menu: add NOWILD toggle + REPEL (and repurpose wc5d8 as the flag)
NOWILD toggles wild encounters off (hooked in TryDoWildEncounter, a banked
file) with an ON indicator drawn on its menu row; the flag lives in the unused
wc5d8 WRAM0 byte (renamed wSlopNoWild, always-accessible, defaults 0). REPEL
refills repel steps to 255. (A NOCLIP toggle was prototyped but its hook lands
in the full home bank - deferred until I free ROM0 budget.) SL0P MENU now: WARP
HEAL MONEY BADGES DEX MAXTEAM ITEMS NOWILD REPEL.
Diffstat (limited to 'engine/battle')
| -rw-r--r-- | engine/battle/wild_encounters.asm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/battle/wild_encounters.asm b/engine/battle/wild_encounters.asm index 9fe0c96c..6e29dd4c 100644 --- a/engine/battle/wild_encounters.asm +++ b/engine/battle/wild_encounters.asm @@ -1,6 +1,9 @@ ; try to initiate a wild pokemon encounter ; returns success in Z TryDoWildEncounter: + ld a, [wSlopNoWild] ; SL0P no-wild-encounters toggle + and a + jr nz, .CantEncounter ld a, [wNPCMovementScriptPointerTableNum] and a ret nz |
