mirror of https://github.com/pret/pokecrystal.git
Every diff line starts with +, -, or space
This commit is contained in:
parent
366330e981
commit
e346cc7b41
|
@ -161,12 +161,12 @@ Modify `GetFrontpicPointer`:
|
||||||
ld d, BANK(PokemonPicPointers)
|
ld d, BANK(PokemonPicPointers)
|
||||||
jr .ok
|
jr .ok
|
||||||
|
|
||||||
.unown
|
.unown
|
||||||
ld a, [wUnownLetter]
|
ld a, [wUnownLetter]
|
||||||
+ ld hl, UnownPicPointers
|
+ ld hl, UnownPicPointers
|
||||||
ld d, BANK(UnownPicPointers)
|
ld d, BANK(UnownPicPointers)
|
||||||
|
|
||||||
.ok
|
.ok
|
||||||
- ld hl, PokemonPicPointers ; UnownPicPointers
|
- ld hl, PokemonPicPointers ; UnownPicPointers
|
||||||
dec a
|
dec a
|
||||||
ld bc, 6
|
ld bc, 6
|
||||||
|
@ -175,7 +175,7 @@ Modify `GetFrontpicPointer`:
|
||||||
|
|
||||||
And `GetMonBackpic`:
|
And `GetMonBackpic`:
|
||||||
|
|
||||||
```asm
|
```diff
|
||||||
- ; These are assumed to be at the same address in their respective banks.
|
- ; These are assumed to be at the same address in their respective banks.
|
||||||
- ld hl, PokemonPicPointers ; UnownPicPointers
|
- ld hl, PokemonPicPointers ; UnownPicPointers
|
||||||
ld a, b
|
ld a, b
|
||||||
|
@ -186,7 +186,7 @@ And `GetMonBackpic`:
|
||||||
ld a, c
|
ld a, c
|
||||||
+ ld hl, UnownPicPointers
|
+ ld hl, UnownPicPointers
|
||||||
ld d, BANK(UnownPicPointers)
|
ld d, BANK(UnownPicPointers)
|
||||||
.ok
|
.ok
|
||||||
dec a
|
dec a
|
||||||
ld bc, 6
|
ld bc, 6
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
|
@ -359,8 +359,8 @@ Move `ITEM_C3` and `ITEM_DC` above all the TMs in every table of item data.
|
||||||
Modify engine/items/items.asm:
|
Modify engine/items/items.asm:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
GetTMHMNumber::
|
GetTMHMNumber::
|
||||||
; Return the number of a TM/HM by item id c.
|
; Return the number of a TM/HM by item id c.
|
||||||
ld a, c
|
ld a, c
|
||||||
-; Skip any dummy items.
|
-; Skip any dummy items.
|
||||||
- cp ITEM_C3 ; TM04-05
|
- cp ITEM_C3 ; TM04-05
|
||||||
|
@ -376,8 +376,8 @@ GetTMHMNumber::
|
||||||
ld c, a
|
ld c, a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GetNumberedTMHM:
|
GetNumberedTMHM:
|
||||||
; Return the item id of a TM/HM by number c.
|
; Return the item id of a TM/HM by number c.
|
||||||
ld a, c
|
ld a, c
|
||||||
-; Skip any gaps.
|
-; Skip any gaps.
|
||||||
- cp ITEM_C3 - (TM01 - 1)
|
- cp ITEM_C3 - (TM01 - 1)
|
||||||
|
|
Loading…
Reference in New Issue