![]() |
Routines |
| Prev: 62515 | Up: Map | Next: 62557 |
|
Used by the routine at Validate_Take_Skull.
Was the player trying to take the spear?
|
||||
| Validate_Take_Spear | 62531 | LD HL,59910 | Call MatchPhraseTokens with PhraseTokens_Spear. | |
| 62534 | CALL MatchPhraseTokens | |||
| 62537 | JR NZ,Validate_Take_Parrot | Jump to Validate_Take_Parrot if the token isn't for the spear. | ||
|
Which spear is present?
|
||||
| 62539 | LD HL,59552 | Call CheckActiveScenicEvents with Data_ItemGroup_Spear. | ||
| 62542 | CALL CheckActiveScenicEvents | |||
| 62545 | CALL Take_IsPlayerHoldingItem | Call Take_IsPlayerHoldingItem. | ||
| 62548 | LD A,B | Copy the object ID back into A. | ||
| 62549 | CP 26 | Compare A with "A spear". | ||
| 62551 | JP Z,TakeItem | Jump to TakeItem if this is "A spear". | ||
|
The natives still have the spear.
|
||||
| 62554 | JP Response_YouCant_Duplicate | Jump to Response_YouCant_Duplicate. | ||
| Prev: 62515 | Up: Map | Next: 62557 |