![]() |
Routines |
| Prev: F71B | Up: Map | Next: F7C2 |
|
Wear the ring.
|
||||
| Action_Wear | F79D | CALL Parser_ValidateDirectObject | Return if the words after the verb are not valid for this command. | |
| F7A0 | RET C | |||
| F7A1 | LD HL,$E821 | Jump to Action_Wear_YouCant unless the player named the furnace. | ||
| F7A4 | CALL Parser_AdvanceToSeparator | |||
| F7A7 | JR NZ,Action_Wear_YouCant | |||
| F7A9 | LD A,$43 | Jump to Action_Wear_Next if the player is not carrying object 43 (the ring being worn). | ||
| F7AB | CALL IsObjectCarried | |||
| F7AE | JR NZ,Action_Wear_Next | |||
|
Reply with "You're wearing it already!".
|
||||
| F7B0 | LD HL,$E1B1 | Print "You're wearing it already!" and return to the game loop. | ||
| F7B3 | JP PrintResponse | |||
| Action_Wear_Next | F7B6 | LD BC,$0743 | Replace object 07 (the ring) with object 43 (the ring being worn). | |
| F7B9 | CALL TransformItem | |||
| F7BC | JP Response_OK | Jump back to Response_OK to confirm. | ||
| Action_Wear_YouCant | F7BF | JP Response_YouCant_GameLoop | Tell the player the command is impossible. | |
| Prev: F71B | Up: Map | Next: F7C2 |