![]()  | 
Routines | 
| Prev: F001 | Up: Map | Next: F01C | 
| 
 | 
||||
| 
 
The player wants to drop the torc, check which version of it is in the players inventory/ current room.
 
 | 
||||
| Process_DropTorc | F006 | LD HL,$E366 | Call CheckItemGroupPresent with Data_ItemGroup_Torc. | |
| F009 | CALL CheckItemGroupPresent | |||
| 
 
The player wants to drop the torc but are they wearing it?
 
 | 
||||
| F00C | CP $6A | Just jump straight to Handler_DropItem if the player is not wearing the torc (so the current item is not "A torc (worn)"). | ||
| F00E | JP NZ,Handler_DropItem | |||
| 
 
Else the player is wearing the torc, so "un-wear" it first before dropping it.
 
Change the torc state!
 
 | 
||||
| F011 | LD BC,$6A69 | Call TransformItem to transform item 6A ("A torc (worn)") into item 69 ("A torc"). | ||
| F014 | CALL TransformItem | |||
| F017 | LD A,$69 | Jump to Handler_DropItem with item 69: "A torc". | ||
| F019 | JP Handler_DropItem | |||
| Prev: F001 | Up: Map | Next: F01C |