![]() |
Routines |
| Prev: 61357 | Up: Map | Next: 61416 |
|
Used by the routine at Validate_Take_Horn.
Was the player trying to take ... the open chest?
|
||||
| Validate_Take_OpenChest | 61373 | LD HL,59433 | Call Parser_AdvanceToSeparator with 59433. | |
| 61376 | CALL Parser_AdvanceToSeparator | |||
| 61379 | JR NZ,Validate_Take_Key | Jump to Validate_Take_Key if the token isn't for the open chest. | ||
| 61381 | LD HL,59142 | Call Parser_SkipToken with 59142. | ||
| 61384 | CALL Parser_SkipToken | |||
| 61387 | CALL IsObjectCarried | Call IsObjectCarried; jump to Validate_Take_OpenChest_NotHeld if not held. | ||
| 61390 | JR NZ,Validate_Take_OpenChest_NotHeld | |||
| 61392 | LD E,15 | E=15; jump to Take_IsPlayerHoldingItem_0. | ||
| 61394 | JP Take_IsPlayerHoldingItem_0 | |||
|
The player is not holding the open chest, so open it before picking it up.
|
||||
| Validate_Take_OpenChest_NotHeld | 61397 | CALL Take_InventoryFull | Call Take_InventoryFull. | |
| 61400 | LD A,E | Jump to Validate_Take_OpenChest_PickUp if E is 15. | ||
| 61401 | CP 15 | |||
| 61403 | JR Z,Validate_Take_OpenChest_PickUp | |||
| 61405 | LD BC,3342 | Call TransformItem to transform "An open chest containing the Crystals of Vulcan" into "An empty chest". | ||
| 61408 | CALL TransformItem | |||
|
Pick up the open chest.
|
||||
| Validate_Take_OpenChest_PickUp | 61411 | LD B,15 | B=15; jump to TakeItem. | |
| 61413 | JP TakeItem | |||
| Prev: 61357 | Up: Map | Next: 61416 |