Prev: F518 Up: Map Next: F544
F52E: Process: Eat Meat
Input
E The item ID currently being acted on
Process_EatMeat F52E LD A,$3A Call IsPlayerCarryingItem with item 3A: "Some meat".
F530 CALL IsPlayerCarryingItem
The player has the meat in their inventory, so eat it!
F533 LD A,E Call Handler_DestroyItemEvent with the item ID of the originally requsted item.
F534 CALL Handler_DestroyItemEvent
F537 LD HL,$A790 Decrease *Count_InventoryItems by one.
F53A DEC (HL)
Print "O.K.".
F53B CALL Response_OK_Duplicate Call Response_OK_Duplicate.
Print "It was a little tough.".
F53E LD HL,$DC41 HL=Messaging_WasLittleTough.
F541 JP $ED6D Jump to ED6D.
Prev: F518 Up: Map Next: F544