![]() |
Routines |
| Prev: EEB9 | Up: Map | Next: EEF3 |
|
Drop the copper key and close the copper gates.
|
||||
| Drop_CopperKey | EED2 | LD A,$6C | Call IsObjectInInventory with item 6C: "A copper key.". | |
| EED4 | CALL IsObjectInInventory | |||
| EED7 | LD A,$6C | Jump to Drop_IsPlayerHoldingItem with item 6C: "A copper key." if the Z flag is not set. | ||
| EED9 | JP NZ,Drop_IsPlayerHoldingItem | |||
| EEDC | CALL Drop_IsPlayerHoldingItem | Call Drop_IsPlayerHoldingItem. | ||
| EEDF | XOR A | Write 00 to close the matching map exits. | ||
| EEE0 | LD ($E81D),A | |||
| EEE3 | LD ($E84C),A | |||
| EEE6 | LD BC,$0A0B | Call TransformItem to transform "The gates are open." into "The gates are closed.". | ||
| EEE9 | CALL TransformItem | |||
| EEEC | LD BC,$0D0E | Call TransformItem to transform "The gates are open." into "The gates are closed.". | ||
| EEEF | CALL TransformItem | |||
| EEF2 | RET | Return. | ||
| Prev: EEB9 | Up: Map | Next: EEF3 |