Prev: 61564 Up: Map Next: 61607
61585: Process: Drop Cloak
The player wants to drop the cloak, check which version of it is in the players inventory/ current room.
Process_DropCloak 61585 LD HL,58333 Call CheckItemGroupPresent with Data_ItemGroup_Cloak.
61588 CALL CheckItemGroupPresent
The player wants to drop the cloak but are they wearing it?
61591 CP 109 Jump to Handler_DropItem if the item is not item 109: "A cloak (worn)".
61593 JP NZ,Handler_DropItem
Else the player is wearing the cloak, so "un-wear" it first before dropping it.
Change the cloak state!
61596 LD BC,28004 Call TransformItem to transform item 109 ("A cloak (worn)") into item 100 ("A white cloak").
61599 CALL TransformItem
61602 LD A,100 Jump to Handler_DropItem with item 100: "A white cloak".
61604 JP Handler_DropItem
Prev: 61564 Up: Map Next: 61607