mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Function2f79 is PickUpItem
This commit is contained in:
parent
c402a16def
commit
b333b18dbd
@ -2363,7 +2363,7 @@ Script_checkitem: ; 0x97812
|
|||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld [$d106], a
|
ld [$d106], a
|
||||||
ld hl, $d892
|
ld hl, $d892
|
||||||
call Function2f79
|
call PickUpItem
|
||||||
ret nc
|
ret nc
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [$c2dd], a
|
ld [$c2dd], a
|
||||||
|
14
main.asm
14
main.asm
@ -5549,20 +5549,20 @@ Function2f66: ; 2f66
|
|||||||
ret
|
ret
|
||||||
; 2f79
|
; 2f79
|
||||||
|
|
||||||
Function2f79: ; 2f79
|
PickUpItem: ; 2f79
|
||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
push bc
|
push bc
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(Functiond244)
|
ld a, BANK(_PickUpItem)
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
call Functiond244
|
call _PickUpItem
|
||||||
|
|
||||||
pop bc
|
pop bc
|
||||||
ld a, b
|
ld a, b
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
pop bc
|
pop bc
|
||||||
pop de
|
pop de
|
||||||
pop hl
|
pop hl
|
||||||
@ -20275,7 +20275,7 @@ Functiond20d: ; d20d
|
|||||||
jp Functiond2ff
|
jp Functiond2ff
|
||||||
; d244
|
; d244
|
||||||
|
|
||||||
Functiond244: ; d244
|
_PickUpItem: ; d244
|
||||||
call Functiond27b
|
call Functiond27b
|
||||||
jr nz, .asm_d278
|
jr nz, .asm_d278
|
||||||
push hl
|
push hl
|
||||||
@ -32235,7 +32235,7 @@ Function24c64: ; 24c64
|
|||||||
push hl
|
push hl
|
||||||
ld [CurItem], a
|
ld [CurItem], a
|
||||||
ld hl, NumItems
|
ld hl, NumItems
|
||||||
call Function2f79
|
call PickUpItem
|
||||||
pop hl
|
pop hl
|
||||||
jr nc, .asm_24c89
|
jr nc, .asm_24c89
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@ -55485,7 +55485,7 @@ Function8adef: ; 8adef
|
|||||||
ld a, WATER_STONE
|
ld a, WATER_STONE
|
||||||
ld [CurItem], a
|
ld [CurItem], a
|
||||||
ld hl, NumItems
|
ld hl, NumItems
|
||||||
call Function2f79
|
call PickUpItem
|
||||||
jr c, .asm_8ae24
|
jr c, .asm_8ae24
|
||||||
|
|
||||||
ld a, [PartyCount]
|
ld a, [PartyCount]
|
||||||
|
Loading…
Reference in New Issue
Block a user