![]() |
Routines |
Prev: F40A | Up: Map | Next: F440 |
|
||||||||
The player was trying to wear the torc, but is it either in the room or in the players inventory?
|
||||||||
Process_WearTorc | F428 | LD HL,$E366 | Call CheckItemGroupPresent with Data_ItemGroup_Torc. | |||||
F42B | CALL CheckItemGroupPresent | |||||||
The torc is present but is the player already wearing it?
|
||||||||
F42E | 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.
|
||||||||
F431 | LD A,E | Jump to Response_YouAreAlreadyWearingIt if the original requested item ID is not equal to item 69: "A torc" (so the found item is 6A: "A torc (worn)"). | ||||||
F432 | CP $69 | |||||||
F434 | JP NZ,Response_YouAreAlreadyWearingIt | |||||||
Change the torc state!
|
||||||||
F437 | LD BC,$696A | Call TransformItem to transform item 69 ("A torc") into item 6A ("A torc (worn)"). | ||||||
F43A | CALL TransformItem | |||||||
Print "O.K.".
|
||||||||
F43D | JP Response_OK_Duplicate | Jump to Response_OK_Duplicate. |
Prev: F40A | Up: Map | Next: F440 |