![]()  | 
Routines | 
| Prev: 60564 | Up: Map | Next: 60606 | 
| 
 | 
||||
| Process_PreEnterCauseway | 60578 | LD A,39 | Call ItemLocator with item 39: "An armed warrior (You may not pass)". | |
| 60580 | CALL ItemLocator | |||
| 60583 | CP 27 | Return if the armed warrior is not in room 27: The Causeway. | ||
| 60585 | RET NZ | |||
| 
 
To pass the armed warrior the player needs "A bronze helmet" in their inventory.
 
 | 
||||
| 60586 | LD A,31 | Call CheckObjectInInventory with item 31: "A bronze helmet". | ||
| 60588 | CALL CheckObjectInInventory | |||
| 60591 | 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?
 
 | 
||||
| 60593 | LD A,32 | Call CheckObjectInInventory with item 32: "A bronze helmet (worn)". | ||
| 60595 | CALL CheckObjectInInventory | |||
| 60598 | RET NZ | Return if the player doesn't have "A bronze helmet (worn)" in their inventory. | ||
| 
 
Change the warrior state!
 
 | 
||||
| Process_PreEnterCauseway_0 | 60599 | LD BC,10024 | Call TransformItem to transform item 39 ("An armed warrior (You may not pass)") into item 40 ("An armed warrior (Welcome Warlor)"). | |
| 60602 | CALL TransformItem | |||
| 60605 | RET | Return. | ||
| Prev: 60564 | Up: Map | Next: 60606 |