![]() |
Routines |
| Prev: 62360 | Up: Map | Next: 62421 |
|
Used by the routine at Validate_Take_Coconut.
Was the player trying to take the gun?
|
||||
| Validate_Take_Gun | 62376 | LD HL,59887 | Call MatchPhraseTokens with PhraseTokens_Gun. | |
| 62379 | CALL MatchPhraseTokens | |||
| 62382 | JR NZ,Validate_Take_Eyepatch | Jump to Validate_Take_Eyepatch if the token isn't for the gun. | ||
|
Pick up the gun.
|
||||
| 62384 | LD A,15 | Call Take_IsPlayerHoldingItem with item 15: "A gun". | ||
| 62386 | CALL Take_IsPlayerHoldingItem | |||
|
Is the parrot present?
|
||||
| 62389 | LD A,39 | Call ValidateItemPresent with item 39: "A parrot (alive)". | ||
| 62391 | CALL ValidateItemPresent | |||
| 62394 | JR Z,Validate_Take_Gun_BadLuck | Jump to Validate_Take_Gun_BadLuck if "A parrot (alive)" is present. | ||
|
The parrot is gone; take the gun and wake the beach pirate.
|
||||
| 62396 | LD A,34 | Call Handler_DestroyItemEvent with item 34: "A sleeping pirate". | ||
| 62398 | CALL Handler_DestroyItemEvent | |||
| 62401 | LD A,136 | Call Handler_PutScenicEventIntoPlay with 136 (the pirate from the beach). | ||
| 62403 | CALL Handler_PutScenicEventIntoPlay | |||
| 62406 | LD B,15 | Load B with "A gun". | ||
| 62408 | JP TakeItem | Jump to TakeItem. | ||
|
Bad luck!
|
||||
| Validate_Take_Gun_BadLuck | 62411 | LD HL,60887 | Switch GameOver onto the stack so the next return actions a "game over". | |
| 62414 | EX (SP),HL | |||
|
Print "As you start to move,
the parrot squawks...
The pirate wakes
and quickly shoots you.".
|
||||
| 62415 | LD HL,56268 | HL=Messaging_ParrotSquawks. | ||
| 62418 | JP PrintStringAndNewline_Alias | Jump to PrintStringAndNewline_Alias. | ||
| Prev: 62360 | Up: Map | Next: 62421 |