![]() |
Routines |
| Prev: 60524 | Up: Map | Next: 60660 |
|
Used by the routine at Take_Key.
Take the jewelled key and open the jewelled gates.
|
||||
| Take_JewelledKey | 60608 | LD A,40 | Call ValidateItemPresent with item 40: "A jewelled key.". | |
| 60610 | CALL ValidateItemPresent | |||
| 60613 | JP NZ,Response_ItIsntHere | Jump to Response_ItIsntHere if "A jewelled key." is not present. | ||
| 60616 | LD A,40 | Call Take_IsPlayerHoldingItem with item 40: "A jewelled key.". | ||
| 60618 | CALL Take_IsPlayerHoldingItem | |||
| 60621 | CALL TakeItem | Call TakeItem. | ||
|
This action changes the map:
|
||||
| 60624 | LD A,20 | Write 20 to open westbound access to The Hall of the Mountain King from The King's Anteroom. | ||
| 60626 | LD (59495),A | |||
| 60629 | LD A,21 | Write 21 to open eastbound access to The King's Anteroom from The Hall of the Mountain King. | ||
| 60631 | LD (59488),A | |||
| 60634 | LD BC,4368 | Call TransformItem to transform "The gates are closed." into "The gates are open.". | ||
| 60637 | CALL TransformItem | |||
| 60640 | LD BC,5139 | Call TransformItem to transform "The gates are closed." into "The gates are open.". | ||
| 60643 | CALL TransformItem | |||
| 60646 | LD HL,44662 | Return if bit 5 of *Flags_RoomChange is set, which relates to taking the jewelled key. | ||
| 60649 | BIT 5,(HL) | |||
| 60651 | RET NZ | |||
| 60652 | SET 5,(HL) | Set bit 5 of *Flags_RoomChange to signify that the jewelled key has been taken. | ||
| 60654 | LD A,2 | Call AddToScore with 2. | ||
| 60656 | CALL AddToScore | |||
| 60659 | RET | Return. | ||
| Prev: 60524 | Up: Map | Next: 60660 |