![]() |
Routines |
| Prev: EBFF | Up: Map | Next: EC1F |
|
Take the carpet and reveal the jewelled key the first time.
|
||||
| Take_Carpet | EC04 | LD A,$27 | Call Take_IsPlayerHoldingItem with item 27: "A carpet.". | |
| EC06 | CALL Take_IsPlayerHoldingItem | |||
| EC09 | CALL TakeItem | Call TakeItem. | ||
| EC0C | LD HL,$AE76 | Return if bit 2 of *Flags_RoomChange is set, which relates to revealing the jewelled key. | ||
| EC0F | BIT 2,(HL) | |||
| EC11 | RET NZ | |||
| EC12 | SET 2,(HL) | Set bit 2 of *Flags_RoomChange to signify that the jewelled key has been revealed. | ||
| EC14 | LD A,$28 | Call HandlerUpdateItemEventForTheCurrentRoom with item 28: "A jewelled key.". | ||
| EC16 | CALL HandlerUpdateItemEventForTheCurrentRoom | |||
|
Print "A jewelled key is revealed.".
|
||||
| EC19 | LD HL,$D2A7 | HL=Messaging_AJewelledKeyIsRevealed. | ||
| EC1C | JP PrintResponse | Jump to PrintResponse. | ||
| Prev: EBFF | Up: Map | Next: EC1F |