![]() |
Routines |
| Prev: F2A7 | Up: Map | Next: F2C7 |
|
Used by the routines at Handler_FightOpponent, Handler_KillTheWarrior, Handler_KillTheWitch and Handler_KillTheBlacksmith.
Require the bow, and an arrow, before combat continues.
|
||||
| Handler_CheckWeapon | F2AE | LD A,$03 | Jump to Handler_CheckWeapon_Next if the player is not carrying object 03 (the bow). | |
| F2B0 | CALL IsObjectCarried | |||
| F2B3 | JR NZ,Handler_CheckWeapon_Next | |||
| F2B5 | LD A,$04 | Return when the player is carrying object 04 (the arrows). | ||
| F2B7 | CALL IsObjectCarried | |||
| F2BA | RET Z | |||
| F2BB | LD HL,$DED1 | Print "You have no arrows." to say the arrows are missing. | ||
| F2BE | JR Handler_CheckWeapon_Reply | |||
| Handler_CheckWeapon_Next | F2C0 | LD HL,$DF29 | The bow is missing, so say "You're not carrying a bow.". | |
| Handler_CheckWeapon_Reply | F2C3 | POP DE | Discard the return address on the stack. | |
| F2C4 | JP PrintResponse | Jump back to PrintResponse to print that reply and return to the game loop. | ||
| Prev: F2A7 | Up: Map | Next: F2C7 |