Prev: 61974 Up: Map Next: 62095
62061: Action: Eat
Eat the food, if it is being carried.
Action_Eat 62061 CALL Parser_ValidateDirectObject Call Parser_ValidateDirectObject.
62064 RET C Return if the direct object is malformed.
Was the player trying to eat ... the food?
62065 LD HL,59414 Call Parser_AdvanceToSeparator with 59414.
62068 CALL Parser_AdvanceToSeparator
62071 JR NZ,Eat_Consume Jump to Eat_Consume if the token isn't for the food.
62073 LD A,0 Call IsObjectCarried with item 0: "Some food".
62075 CALL IsObjectCarried
62078 JR NZ,Eat_Consume Jump to Eat_Consume if "Some food" isn't held.
62080 LD HL,47720 Decrease *Count_InventoryItems by one.
62083 DEC (HL)
Eat_Consume 62084 LD A,0 Call Handler_DestroyItem with item 0: "Some food".
62086 CALL Handler_DestroyItem
Print "You eat the food. That was delicious!".
62089 LD HL,56907 HL=Messaging_YouEatTheFood.
62092 JP PrintResponse Jump to PrintResponse.
Prev: 61974 Up: Map Next: 62095