![]() |
Routines |
| Prev: F433 | Up: Map | Next: F45D |
|
Used by the routine at Validate_Take_Skull.
Was the player trying to take the spear?
|
||||
| Validate_Take_Spear | F443 | LD HL,$EA06 | Call MatchPhraseTokens with PhraseTokens_Spear. | |
| F446 | CALL MatchPhraseTokens | |||
| F449 | JR NZ,Validate_Take_Parrot | Jump to Validate_Take_Parrot if the token isn't for the spear. | ||
|
Which spear is present?
|
||||
| F44B | LD HL,$E8A0 | Call CheckActiveScenicEvents with Data_ItemGroup_Spear. | ||
| F44E | CALL CheckActiveScenicEvents | |||
| F451 | CALL Take_IsPlayerHoldingItem | Call Take_IsPlayerHoldingItem. | ||
| F454 | LD A,B | Copy the object ID back into A. | ||
| F455 | CP $1A | Compare A with "A spear". | ||
| F457 | JP Z,TakeItem | Jump to TakeItem if this is "A spear". | ||
|
The natives still have the spear.
|
||||
| F45A | JP Response_YouCant_Duplicate | Jump to Response_YouCant_Duplicate. | ||
| Prev: F433 | Up: Map | Next: F45D |