![]() |
Routines |
| Prev: 62486 | Up: Map | Next: 62528 |
|
||||||||
|
The player was trying to wear the torc, but is it either in the room or in the players inventory?
|
||||||||
| Process_WearTorc | 62504 | LD HL,58214 | Call CheckItemGroupPresent with Data_ItemGroup_Torc. | |||||
| 62507 | CALL CheckItemGroupPresent | |||||||
|
The torc is present but is the player already wearing it?
|
||||||||
| 62510 | CALL IsPlayerCarryingItem | Call IsPlayerCarryingItem. | ||||||
|
The torc is in the players inventory.
Restore the original item ID to check which item was found in the item group.
|
||||||||
| 62513 | LD A,E | Jump to Response_YouAreAlreadyWearingIt if the original requested item ID is not equal to item 105: "A torc" (so the found item is 106: "A torc (worn)"). | ||||||
| 62514 | CP 105 | |||||||
| 62516 | JP NZ,Response_YouAreAlreadyWearingIt | |||||||
|
Change the torc state!
|
||||||||
| 62519 | LD BC,26986 | Call TransformItem to transform item 105 ("A torc") into item 106 ("A torc (worn)"). | ||||||
| 62522 | CALL TransformItem | |||||||
|
Print "O.K.".
|
||||||||
| 62525 | JP Response_OK_Duplicate | Jump to Response_OK_Duplicate. | ||||||
| Prev: 62486 | Up: Map | Next: 62528 |