From d150f7f4f49e9dda08c52199159b30ae9b4f00e8 Mon Sep 17 00:00:00 2001 From: Yoann Fievez Date: Wed, 24 Jun 2026 20:43:48 +0200 Subject: Identify `wPikachuSpawnStateFlags` and `wPikachuMapScriptFlags` bits, and `PIKAMOVEMENT_*` constants (#158) - Rename `wd471` to` wPikachuSpawnStateFlags`, with `BIT_PIKACHU_SPAWN_*` bits - Rename `wd492` to `wPikachuMapScriptFlags`, with `BIT_PIKACHU_MAP_*` bits - Introduce `PIKAMOVEMENT_*` constants for `ApplyPikachuMovementData` - Refactor `BillsHouse` scripts and Pikachu/Bill movement data --- constants/pikachu_emotion_constants.asm | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'constants') diff --git a/constants/pikachu_emotion_constants.asm b/constants/pikachu_emotion_constants.asm index 98d0e6e2..41e5f7ba 100644 --- a/constants/pikachu_emotion_constants.asm +++ b/constants/pikachu_emotion_constants.asm @@ -224,3 +224,37 @@ MACRO pikapic_looptofinish pikapic_waitbgmap pikapic_jump .loop\@ ENDM + +; wPikachuSpawnStateFlags bits + const_def + const BIT_PIKACHU_SPAWN_0 + const BIT_PIKACHU_SPAWN_1 + const BIT_PIKACHU_SPAWN_2 + const BIT_PIKACHU_SPAWN_3 + const BIT_PIKACHU_SPAWN_4 + const BIT_PIKACHU_SPAWN_FOLLOWING + const BIT_PIKACHU_SPAWN_SURFING + const BIT_PIKACHU_SPAWN_STARTER + +; wPikachuMapScriptFlags bits + const_def + const BIT_PIKACHU_MAP_PAUSE_IGT + const BIT_PIKACHU_MAP_SURF_SELECT + const BIT_PIKACHU_MAP_2 + const BIT_PIKACHU_MAP_3 + const BIT_PIKACHU_MAP_4 + const BIT_PIKACHU_MAP_5 + const BIT_PIKACHU_MAP_6 + const BIT_PIKACHU_MAP_SCRIPT_ACTIVE + +; Pikachu movement commands +DEF PIKAMOVEMENT_DELAY EQU $00 +DEF PIKAMOVEMENT_STEP_DOWN EQU $1d +DEF PIKAMOVEMENT_STEP_UP EQU $1e +DEF PIKAMOVEMENT_STEP_LEFT EQU $1f +DEF PIKAMOVEMENT_STEP_RIGHT EQU $20 +DEF PIKAMOVEMENT_LOOK_DOWN EQU $35 +DEF PIKAMOVEMENT_LOOK_UP EQU $36 +DEF PIKAMOVEMENT_LOOK_LEFT EQU $37 +DEF PIKAMOVEMENT_LOOK_RIGHT EQU $38 +DEF PIKAMOVEMENT_END EQU $3f -- cgit v1.3.1-sl0p