mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
fix variable naming
This commit is contained in:
parent
b85d7c65f3
commit
fc9af362ae
106 changed files with 773 additions and 671 deletions
|
|
@ -556,11 +556,11 @@ ItemUseSurfboard: ; d9b4 (3:59b4)
|
|||
jp PrintText
|
||||
.tryToStopSurfing
|
||||
xor a
|
||||
ld [$ff8c],a
|
||||
ld [hSpriteIndexOrTextID],a
|
||||
ld d,16 ; talking range in pixels (normal range)
|
||||
call IsSpriteInFrontOfPlayer2
|
||||
res 7,[hl]
|
||||
ld a,[$ff8c]
|
||||
ld a,[hSpriteIndexOrTextID]
|
||||
and a ; is there a sprite in the way?
|
||||
jr nz,.cannotStopSurfing
|
||||
ld hl,TilePairCollisionsWater
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
GetMachinePrice: ; 7bf86 (1e:7f86)
|
||||
; Input: [wcf91] = Item Id of a TM
|
||||
; Output: Stores the 2-byte TM price in [H_DOWNARROWBLINKCNT1] and [H_DOWNARROWBLINKCNT2]
|
||||
; as a BCD
|
||||
; Output: Stores the TM price at hItemPrice
|
||||
ld a, [wcf91] ; a contains TM item id
|
||||
sub TM_01
|
||||
ret c
|
||||
|
|
@ -17,10 +16,10 @@ GetMachinePrice: ; 7bf86 (1e:7f86)
|
|||
swap a
|
||||
.highNybbleIsPrice
|
||||
and $f0
|
||||
ld [H_DOWNARROWBLINKCNT2], a
|
||||
ld [hItemPrice + 1], a
|
||||
xor a
|
||||
ld [H_DOWNARROWBLINKCNT1], a
|
||||
ld [$ff8d], a
|
||||
ld [hItemPrice], a
|
||||
ld [hItemPrice + 2], a
|
||||
ret
|
||||
|
||||
INCLUDE "data/tm_prices.asm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue