![]()  | 
Routines | 
| Prev: EA0B | Up: Map | Next: EA60 | 
| 
 | 
||||
| 
 
Print "
A Fomorian attacks you...".
 
 | 
||||
| Event_Fomorian | EA44 | LD HL,$CA79 | HL=Messaging_FomorianAttacksYou. | |
| EA47 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| EA4A | LD A,$14 | Call GenerateRandomNumber using 14 as a maximum value. | ||
| EA4C | CALL GenerateRandomNumber | |||
| 
 
Print "
You match the evil creature's
speed and avoid the blow.".
 
 | 
||||
| EA4F | LD HL,$CA94 | HL=Messaging_MatchEvilCreaturesSpeed. | ||
| EA52 | JR NZ,Fomorian_Return | Jump to Fomorian_Return if the generated number was non-zero. | ||
| EA54 | POP HL | Discard the return address on the stack. | ||
| 
 
Bad luck!
 
 | 
||||
| EA55 | LD HL,$E9B2 | Switch GameOver onto the stack so the next return actions a "game over". | ||
| EA58 | EX (SP),HL | |||
| 
 
Print "
You are taken by surprise.
The blow strikes true.".
 
 | 
||||
| EA59 | LD HL,$CA46 | HL=Messaging_YouAreTakenBySurpriseBlowStrikesTrue. | ||
| Fomorian_Return | EA5C | CALL PausePrintStringAndScroll | Call PausePrintStringAndScroll. | |
| EA5F | RET | Return. | ||
| Prev: EA0B | Up: Map | Next: EA60 |