diff options
| author | Yoann Fievez <yoann.fievez@gmail.com> | 2026-06-24 20:43:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-24 14:43:48 -0400 |
| commit | d150f7f4f49e9dda08c52199159b30ae9b4f00e8 (patch) | |
| tree | e0c81ae315ccdf2952c10713312427f2c55e1fea /constants | |
| parent | Use OAM constants and decimal coordinates in surfing_pikachu_oam.asm (#157) (diff) | |
| download | pokeyellow-d150f7f4f49e9dda08c52199159b30ae9b4f00e8.tar.gz pokeyellow-d150f7f4f49e9dda08c52199159b30ae9b4f00e8.tar.xz pokeyellow-d150f7f4f49e9dda08c52199159b30ae9b4f00e8.zip | |
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
Diffstat (limited to 'constants')
| -rw-r--r-- | constants/pikachu_emotion_constants.asm | 34 |
1 files changed, 34 insertions, 0 deletions
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 |
