Prev: F07C Up: Map Next: F0A7
F091: Process: Drop Cloak
The player wants to drop the cloak, check which version of it is in the players inventory/ current room.
Process_DropCloak F091 LD HL,$E3DD Call CheckItemGroupPresent with Data_ItemGroup_Cloak.
F094 CALL CheckItemGroupPresent
The player wants to drop the cloak but are they wearing it?
F097 CP $6D Jump to Handler_DropItem if the item is not item 6D: "A cloak (worn)".
F099 JP NZ,Handler_DropItem
Else the player is wearing the cloak, so "un-wear" it first before dropping it.
Change the cloak state!
F09C LD BC,$6D64 Call TransformItem to transform item 6D ("A cloak (worn)") into item 64 ("A white cloak").
F09F CALL TransformItem
F0A2 LD A,$64 Jump to Handler_DropItem with item 64: "A white cloak".
F0A4 JP Handler_DropItem
Prev: F07C Up: Map Next: F0A7