![]()  | 
Routines | 
| Prev: EC94 | Up: Map | Next: ECBE | 
| 
 | 
||||
| Process_PreEnterCauseway | ECA2 | LD A,$27 | Call ItemLocator with item 27: "An armed warrior (You may not pass)". | |
| ECA4 | CALL ItemLocator | |||
| ECA7 | CP $1B | Return if the armed warrior is not in room 1B: The Causeway. | ||
| ECA9 | RET NZ | |||
| 
 
To pass the armed warrior the player needs "A bronze helmet" in their inventory.
 
 | 
||||
| ECAA | LD A,$1F | Call CheckObjectInInventory with item 1F: "A bronze helmet". | ||
| ECAC | CALL CheckObjectInInventory | |||
| ECAF | JR Z,Process_PreEnterCauseway_0 | Jump to Process_PreEnterCauseway_0 if the player has "A bronze helmet" in their inventory. | ||
| 
 
The player doesn't have "A bronze helmet" in their inventory, but do they have "A bronze helmet (worn)" instead?
 
 | 
||||
| ECB1 | LD A,$20 | Call CheckObjectInInventory with item 20: "A bronze helmet (worn)". | ||
| ECB3 | CALL CheckObjectInInventory | |||
| ECB6 | RET NZ | Return if the player doesn't have "A bronze helmet (worn)" in their inventory. | ||
| 
 
Change the warrior state!
 
 | 
||||
| Process_PreEnterCauseway_0 | ECB7 | LD BC,$2728 | Call TransformItem to transform item 27 ("An armed warrior (You may not pass)") into item 28 ("An armed warrior (Welcome Warlor)"). | |
| ECBA | CALL TransformItem | |||
| ECBD | RET | Return. | ||
| Prev: EC94 | Up: Map | Next: ECBE |