Prev: 62744 Up: Map Next: 62788
62766: Process: Eat Meat
Input
E The item ID currently being acted on
Process_EatMeat 62766 LD A,58 Call IsPlayerCarryingItem with item 58: "Some meat".
62768 CALL IsPlayerCarryingItem
The player has the meat in their inventory, so eat it!
62771 LD A,E Call Handler_DestroyItemEvent with the item ID of the originally requsted item.
62772 CALL Handler_DestroyItemEvent
62775 LD HL,42896 Decrease *Count_InventoryItems by one.
62778 DEC (HL)
Print "O.K.".
62779 CALL Response_OK_Duplicate Call Response_OK_Duplicate.
Print "It was a little tough.".
62782 LD HL,56385 HL=Messaging_WasLittleTough.
62785 JP 60781 Jump to 60781.
Prev: 62744 Up: Map Next: 62788