![]() |
Routines |
Prev: F21E | Up: Map | Next: F239 |
|
||||
The player wants to give the helmet to either the guard or the druid.
|
||||
Process_GiveHelmetToGuardOrDruid | F223 | LD HL,$E36B | Call CheckItemGroupPresent with Data_ItemGroup_Helmet. | |
F226 | CALL CheckItemGroupPresent | |||
If "A bronze helmet" is present either in the current room or in the players inventory, print "He doesn't want it.
He's dropped it.".
|
||||
F229 | CP $20 | Jump to Response_HeDoesntWantIt if the item is not "A bronze helmet (worn)" (so is "A bronze helmet"). | ||
F22B | JP NZ,Response_HeDoesntWantIt | |||
Else it's "A bronze helmet (worn)", so first have the player remove the helmet in order to give it to someone.
Change the helmet state!
|
||||
F22E | LD BC,$201F | Call TransformItem to transform item 20 ("A bronze helmet (worn)") into item 1F ("A bronze helmet"). | ||
F231 | CALL TransformItem | |||
Print "He doesn't want it.
He's dropped it.".
|
||||
F234 | LD A,$1F | Jump to Response_HeDoesntWantIt with item 1F: "A bronze helmet". | ||
F236 | JP Response_HeDoesntWantIt |
Prev: F21E | Up: Map | Next: F239 |