mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
clean up wram aliases
This commit is contained in:
parent
c34156c5fb
commit
04a6c306dc
11 changed files with 124 additions and 93 deletions
|
|
@ -29,7 +29,7 @@ FoundHiddenItemText: ; 7675b (1d:675b)
|
|||
call GiveItem
|
||||
jr nc, .BagFull
|
||||
ld hl, wObtainedHiddenItemsFlags
|
||||
ld a, [wTrainerScreenX]
|
||||
ld a, [wHiddenItemOrCoinsIndex]
|
||||
ld c, a
|
||||
ld b, FLAG_SET
|
||||
predef FlagActionPredef
|
||||
|
|
@ -100,7 +100,7 @@ HiddenCoins: ; 76799 (1d:6799)
|
|||
ld c, $2
|
||||
predef AddBCDPredef
|
||||
ld hl, wObtainedHiddenCoinsFlags
|
||||
ld a, [wTrainerScreenX]
|
||||
ld a, [wHiddenItemOrCoinsIndex]
|
||||
ld c, a
|
||||
ld b, FLAG_SET
|
||||
predef FlagActionPredef
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ ReadTrainerScreenPosition: ; 5698e (15:698e)
|
|||
; a: distance player to sprite
|
||||
CheckSpriteCanSeePlayer: ; 569af (15:69af)
|
||||
ld b, a
|
||||
ld a, [wTrainerEngageDistance] ; sprite line of sight (engage distance)
|
||||
ld a, [wTrainerEngageDistance] ; how far the trainer can see
|
||||
cp b
|
||||
jr nc, .checkIfLinedUp
|
||||
jr .notInLine ; player too far away
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue