2018-06-24 07:09:41 -07:00
|
|
|
DoItemEffect::
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall _DoItemEffect
|
2013-09-07 22:45:54 -07:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
CheckTossableItem::
|
2013-09-07 22:45:54 -07:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall _CheckTossableItem
|
2013-09-07 22:45:54 -07:00
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
TossItem::
|
2013-09-07 22:45:54 -07:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
|
|
|
ld a, [hROMBank]
|
|
|
|
push af
|
|
|
|
ld a, BANK(_TossItem)
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
call _TossItem
|
|
|
|
|
|
|
|
pop bc
|
|
|
|
ld a, b
|
|
|
|
rst Bankswitch
|
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
ReceiveItem::
|
2013-09-07 22:45:54 -07:00
|
|
|
push bc
|
|
|
|
ld a, [hROMBank]
|
|
|
|
push af
|
|
|
|
ld a, BANK(_ReceiveItem)
|
|
|
|
rst Bankswitch
|
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
|
|
|
|
call _ReceiveItem
|
|
|
|
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
pop bc
|
|
|
|
ld a, b
|
|
|
|
rst Bankswitch
|
|
|
|
pop bc
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
CheckItem::
|
2013-09-07 22:45:54 -07:00
|
|
|
push hl
|
|
|
|
push de
|
|
|
|
push bc
|
|
|
|
ld a, [hROMBank]
|
|
|
|
push af
|
|
|
|
ld a, BANK(_CheckItem)
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
call _CheckItem
|
|
|
|
|
|
|
|
pop bc
|
|
|
|
ld a, b
|
|
|
|
rst Bankswitch
|
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
pop hl
|
|
|
|
ret
|