Prev: F71B Up: Map Next: F7C2
F79D: Action: Wear
Wear the ring.
Action_Wear F79D CALL Parser_ValidateDirectObject Call Parser_ValidateDirectObject.
F7A0 RET C Return if the direct object is malformed.
Was the player trying to wear ... the ring?
F7A1 LD HL,$E821 Call Parser_AdvanceToSeparator with E821.
F7A4 CALL Parser_AdvanceToSeparator
F7A7 JR NZ,Wear_YouCant Jump to Wear_YouCant if the token isn't for the ring.
F7A9 LD A,$43 Jump to Wear_Ring if "A ring,which you are wearing" isn't held.
F7AB CALL IsObjectCarried
F7AE JR NZ,Wear_Ring
Print "You're wearing it already!".
F7B0 LD HL,$E1B1 HL=Messaging_YoureWearingItAlready.
F7B3 JP PrintResponse Jump to PrintResponse.
Change the ring state!
Wear_Ring F7B6 LD BC,$0743 Call TransformItem to transform "A ring" into "A ring,which you are wearing".
F7B9 CALL TransformItem
F7BC JP Response_OK_GameLoop Jump to Response_OK_GameLoop.
Nothing else is valid.
Wear_YouCant F7BF JP Response_YouCant_GameLoop Jump to Response_YouCant_GameLoop.
Prev: F71B Up: Map Next: F7C2