![]() |
Routines |
| Prev: 61974 | Up: Map | Next: 62095 |
|
Eat the food, if it is being carried.
|
||||
| Action_Eat | 62061 | CALL Parser_ValidateDirectObject | Return if the words after the verb are not valid for this command. | |
| 62064 | RET C | |||
| 62065 | LD HL,59414 | Jump to Action_Eat_Next unless the player named the rope on the overhang. | ||
| 62068 | CALL Parser_AdvanceToSeparator | |||
| 62071 | JR NZ,Action_Eat_Next | |||
| 62073 | LD A,0 | Jump to Action_Eat_Next if the player is not carrying object 0 (the food). | ||
| 62075 | CALL IsObjectCarried | |||
| 62078 | JR NZ,Action_Eat_Next | |||
| 62080 | LD HL,47720 | Count one fewer thing carried. | ||
| 62083 | DEC (HL) | |||
| Action_Eat_Next | 62084 | LD A,0 | Destroy object 0 (the food). | |
| 62086 | CALL Handler_DestroyItem | |||
|
Reply with "You eat the food.
That was delicious!".
|
||||
| 62089 | LD HL,56907 | Print "You eat the food. That was delicious!" and return to the game loop. | ||
| 62092 | JP PrintResponse | |||
| Prev: 61974 | Up: Map | Next: 62095 |