Prev: 61446 Up: Map Next: 61490
61468: Process: Drop Helmet
The player wants to drop the helmet, check which version of it is in the players inventory/ current room.
Process_DropHelmet 61468 LD HL,58219 Call CheckItemGroupPresent with Data_ItemGroup_Helmet.
61471 CALL CheckItemGroupPresent
The player wants to drop the helmet but are they wearing it?
61474 CP 32 Just jump straight to Handler_DropItem if the player is not wearing the helmet (so the current item is not "A bronze helmet (worn)").
61476 JP NZ,Handler_DropItem
Else the player is wearing the helmet, so "un-wear" it first before dropping it.
Change the helmet state!
61479 LD BC,8223 Call TransformItem to transform item 32 ("A bronze helmet (worn)") into item 31 ("A bronze helmet").
61482 CALL TransformItem
61485 LD A,31 Jump to Handler_DropItem with item 31: "A bronze helmet".
61487 JP Handler_DropItem
Prev: 61446 Up: Map Next: 61490