![]() |
Routines |
Prev: 62709 | Up: Map | Next: 62744 |
|
||||||||
The player was trying to wear the cloak, but is it either in the room or in the players inventory?
|
||||||||
Process_WearCloak | 62720 | LD HL,58333 | Call CheckItemGroupPresent with Data_ItemGroup_Cloak. | |||||
62723 | CALL CheckItemGroupPresent | |||||||
The cloak is present but is the player already wearing it?
|
||||||||
62726 | CALL IsPlayerCarryingItem | Call IsPlayerCarryingItem. | ||||||
62729 | LD A,E | Jump to Response_YouAreAlreadyWearingIt if the item found in the group is not equal to item 100: "A white cloak" (so the found item is 109: "A cloak (worn)"). | ||||||
62730 | CP 100 | |||||||
62732 | JP NZ,Response_YouAreAlreadyWearingIt | |||||||
Change the cloak state!
|
||||||||
62735 | LD BC,25709 | Call TransformItem to transform item 100 ("A white cloak") into item 109 ("A cloak (worn)"). | ||||||
62738 | CALL TransformItem | |||||||
Print "O.K.".
|
||||||||
62741 | JP Response_OK_Duplicate | Jump to Response_OK_Duplicate. |
Prev: 62709 | Up: Map | Next: 62744 |