diff options
| author | Sylvie <35663410+Rangi42@users.noreply.github.com> | 2024-09-18 21:41:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-18 21:41:58 -0400 |
| commit | 5a622f628de6908210091a05956b0d8ce3620237 (patch) | |
| tree | 9cc32420b50f09531c58f4c5019ef167e133b95c /engine/items/tms.asm | |
| parent | Split `hSpriteIndexOrTextID` into `hSpriteIndex` and `hTextID` (#462) (diff) | |
| download | pokeyellow-5a622f628de6908210091a05956b0d8ce3620237.tar.gz pokeyellow-5a622f628de6908210091a05956b0d8ce3620237.tar.xz pokeyellow-5a622f628de6908210091a05956b0d8ce3620237.zip | |
Identify remaining uses of `wd0b5` and `wd11e` (#463)
Diffstat (limited to 'engine/items/tms.asm')
| -rw-r--r-- | engine/items/tms.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/items/tms.asm b/engine/items/tms.asm index f3c6db98..2da15fab 100644 --- a/engine/items/tms.asm +++ b/engine/items/tms.asm @@ -1,7 +1,7 @@ ; tests if mon [wCurPartySpecies] can learn move [wMoveNum] CanLearnTM: ld a, [wCurPartySpecies] - ld [wd0b5], a + ld [wCurSpecies], a call GetMonHeader ld hl, wMonHLearnset push hl @@ -20,17 +20,17 @@ CanLearnTM: ld b, FLAG_TEST predef_jump FlagActionPredef -; converts TM/HM number in wd11e into move number +; converts TM/HM number in [wTempTMHM] into move number ; HMs start at 51 TMToMove: - ld a, [wd11e] + ld a, [wTempTMHM] dec a ld hl, TechnicalMachines ld b, $0 ld c, a add hl, bc ld a, [hl] - ld [wd11e], a + ld [wTempTMHM], a ret INCLUDE "data/moves/tmhm_moves.asm" |
