![]()  | 
Routines | 
| Prev: 61441 | Up: Map | Next: 61468 | 
| 
 | 
||||
| 
 
The player wants to drop the torc, check which version of it is in the players inventory/ current room.
 
 | 
||||
| Process_DropTorc | 61446 | LD HL,58214 | Call CheckItemGroupPresent with Data_ItemGroup_Torc. | |
| 61449 | CALL CheckItemGroupPresent | |||
| 
 
The player wants to drop the torc but are they wearing it?
 
 | 
||||
| 61452 | CP 106 | Just jump straight to Handler_DropItem if the player is not wearing the torc (so the current item is not "A torc (worn)"). | ||
| 61454 | JP NZ,Handler_DropItem | |||
| 
 
Else the player is wearing the torc, so "un-wear" it first before dropping it.
 
Change the torc state!
 
 | 
||||
| 61457 | LD BC,27241 | Call TransformItem to transform item 106 ("A torc (worn)") into item 105 ("A torc"). | ||
| 61460 | CALL TransformItem | |||
| 61463 | LD A,105 | Jump to Handler_DropItem with item 105: "A torc". | ||
| 61465 | JP Handler_DropItem | |||
| Prev: 61441 | Up: Map | Next: 61468 |