![]() |
Routines |
| Prev: F216 | Up: Map | Next: F28F |
|
Eat the food, if it is being carried.
|
||||
| Action_Eat | F26D | CALL Parser_ValidateDirectObject | Return if the words after the verb are not valid for this command. | |
| F270 | RET C | |||
| F271 | LD HL,$E816 | Jump to Action_Eat_Next unless the player named the rope on the overhang. | ||
| F274 | CALL Parser_AdvanceToSeparator | |||
| F277 | JR NZ,Action_Eat_Next | |||
| F279 | LD A,$00 | Jump to Action_Eat_Next if the player is not carrying object 00 (the food). | ||
| F27B | CALL IsObjectCarried | |||
| F27E | JR NZ,Action_Eat_Next | |||
| F280 | LD HL,$BA68 | Count one fewer thing carried. | ||
| F283 | DEC (HL) | |||
| Action_Eat_Next | F284 | LD A,$00 | Destroy object 00 (the food). | |
| F286 | CALL Handler_DestroyItem | |||
|
Reply with "You eat the food.
That was delicious!".
|
||||
| F289 | LD HL,$DE4B | Print "You eat the food. That was delicious!" and return to the game loop. | ||
| F28C | JP PrintResponse | |||
| Prev: F216 | Up: Map | Next: F28F |