Prev: F8D9 Up: Map Next: F946
F91B: Action: Shoot
Action_Shoot F91B CALL Parser_ValidateDirectObject Call Parser_ValidateDirectObject.
F91E RET C Return if the direct object is malformed.
F91F LD A,$0F Call CheckObjectInInventory with item: "A gun".
F921 CALL CheckObjectInInventory
F924 JR Z,PlayerHasGun Jump to PlayerHasGun if the player has the gun in their inventory.
Print "You haven't got a gun.".
F926 LD HL,$E15E HL=E15E.
F929 JP PrintStringAndNewline_Alias Jump to PrintStringAndNewline_Alias.
PlayerHasGun F92C LD HL,$EAA6 Call MatchPhraseTokens with PhraseTokens_PirateWithGun_2.
F92F CALL MatchPhraseTokens
F932 JP Z,Action_Kill_3 Jump to Action_Kill_3 if the token is for the .
F935 LD HL,$EAAC Call MatchPhraseTokens with PhraseTokens_ParrotWithGun_2.
F938 CALL MatchPhraseTokens
F93B JR NZ,Shooting_Invalid Jump to Shooting_Invalid if the token isn't for the .
Print "It's already dead.".
F93D LD HL,$E14B HL=E14B.
F940 JP PrintStringAndNewline_Alias Jump to PrintStringAndNewline_Alias.
Nothing else is valid.
Shooting_Invalid F943 JP Response_ItHasNoApparentEffect Jump to Response_ItHasNoApparentEffect.
Prev: F8D9 Up: Map Next: F946