![]() |
Routines |
| Prev: 62164 | Up: Map | Next: 62191 |
|
Print the attack, then sometimes announce that it missed.
|
||||
| Handler_ResolveAttack | 62170 | PUSH AF | The sword swings, with "You swing the sword:-". | |
| 62171 | LD HL,57180 | |||
|
This entry point is used by the routine at Handler_AnnounceArrow.
|
||||
| Handler_ResolveAttack_Print | 62174 | CALL PrintStringAndANewline | Print that message and start a new line. | |
| 62177 | POP AF | Restore the miss flag from the stack. | ||
| 62178 | AND A | Return when this attack cannot miss. | ||
| 62179 | RET Z | |||
| 62180 | CALL GenerateRandomNumber | Call GenerateRandomNumber to roll the miss chance, and return when the blow lands. | ||
| 62183 | RET NZ | |||
| 62184 | LD HL,57081 | The blow missed. Print "Bad luck.You missed.". | ||
| 62187 | POP DE | Discard the return address on the stack. | ||
| 62188 | JP PauseAndPrintResponse | Jump back to PauseAndPrintResponse to return to the game loop. | ||
| Prev: 62164 | Up: Map | Next: 62191 |