![]() |
Routines |
Prev: F006 | Up: Map | Next: F032 |
|
||||
The player wants to drop the helmet, check which version of it is in the players inventory/ current room.
|
||||
Process_DropHelmet | F01C | LD HL,$E36B | Call CheckItemGroupPresent with Data_ItemGroup_Helmet. | |
F01F | CALL CheckItemGroupPresent | |||
The player wants to drop the helmet but are they wearing it?
|
||||
F022 | CP $20 | Just jump straight to Handler_DropItem if the player is not wearing the helmet (so the current item is not "A bronze helmet (worn)"). | ||
F024 | JP NZ,Handler_DropItem | |||
Else the player is wearing the helmet, so "un-wear" it first before dropping it.
Change the helmet state!
|
||||
F027 | LD BC,$201F | Call TransformItem to transform item 20 ("A bronze helmet (worn)") into item 1F ("A bronze helmet"). | ||
F02A | CALL TransformItem | |||
F02D | LD A,$1F | Jump to Handler_DropItem with item 1F: "A bronze helmet". | ||
F02F | JP Handler_DropItem |
Prev: F006 | Up: Map | Next: F032 |