![]() |
Routines |
| Prev: EEF3 | Up: Map | Next: EF52 |
|
Used by the routine at Drop_Key.
Drop the jewelled key and close the jewelled gates.
|
||||
| Drop_JewelledKey | EF31 | LD A,$28 | Call IsObjectInInventory with item 28: "A jewelled key.". | |
| EF33 | CALL IsObjectInInventory | |||
| EF36 | LD A,$28 | Jump to Drop_IsPlayerHoldingItem with item 28: "A jewelled key." if the Z flag is not set. | ||
| EF38 | JP NZ,Drop_IsPlayerHoldingItem | |||
| EF3B | CALL Drop_IsPlayerHoldingItem | Call Drop_IsPlayerHoldingItem. | ||
| EF3E | XOR A | Write 00 to close the matching map exits. | ||
| EF3F | LD ($E860),A | |||
| EF42 | LD ($E867),A | |||
| EF45 | LD BC,$1011 | Call TransformItem to transform "The gates are open." into "The gates are closed.". | ||
| EF48 | CALL TransformItem | |||
| EF4B | LD BC,$1314 | Call TransformItem to transform "The gates are open." into "The gates are closed.". | ||
| EF4E | CALL TransformItem | |||
| EF51 | RET | Return. | ||
| Prev: EEF3 | Up: Map | Next: EF52 |