Prev: ED75 Up: Map Next: EDB2
EDA6: Handler: Pick Up Item
Input
B Item ID
Handler_PickUpItem EDA6 LD C,$01 Call Handler_UpdateItemLocation using the item ID passed in B, to change the location to 01 (to the players inventory).
EDA8 CALL Handler_UpdateItemLocation
Player has picked up an item so handle the inventory count.
EDAB LD HL,$A790 Increment *Count_InventoryItems by one.
EDAE INC (HL)
Print "O.K.".
EDAF JP Response_OK_Duplicate Jump to Response_OK_Duplicate.
Prev: ED75 Up: Map Next: EDB2