Prev: F216 Up: Map Next: F28F
F26D: Action: Eat
Eat the food, if it is being carried.
Action_Eat F26D CALL Parser_ValidateDirectObject Call Parser_ValidateDirectObject.
F270 RET C Return if the direct object is malformed.
Was the player trying to eat ... the food?
F271 LD HL,$E816 Call Parser_AdvanceToSeparator with E816.
F274 CALL Parser_AdvanceToSeparator
F277 JR NZ,Eat_Consume Jump to Eat_Consume if the token isn't for the food.
F279 LD A,$00 Call IsObjectCarried with item 00: "Some food".
F27B CALL IsObjectCarried
F27E JR NZ,Eat_Consume Jump to Eat_Consume if "Some food" isn't held.
F280 LD HL,$BA68 Decrease *Count_InventoryItems by one.
F283 DEC (HL)
Eat_Consume F284 LD A,$00 Call Handler_DestroyItem with item 00: "Some food".
F286 CALL Handler_DestroyItem
Print "You eat the food. That was delicious!".
F289 LD HL,$DE4B HL=Messaging_YouEatTheFood.
F28C JP PrintResponse Jump to PrintResponse.
Prev: F216 Up: Map Next: F28F