Prev: E9FA Up: Map Next: EA44
EA0B: Routine at EA0B
EA0B LD A,$03 Call Handler_DestroyItemEvent with N/A.
EA0D CALL Handler_DestroyItemEvent
EA10 LD A,$02 Call Handler_UpdateItemEventCurrentRoom with N/A.
EA12 CALL Handler_UpdateItemEventCurrentRoom
Print " The Roman suddenly appears and he attacks you...".
EA15 LD HL,$C9AF HL=Messaging_RomanSuddenlyAppears.
EA18 CALL PrintStringAndNewline Call PrintStringAndNewline.
EA1B LD B,$14 B=14.
EA1D LD A,$22 A=22.
EA1F CALL $AED1 Call AED1.
EA22 AND A Jump to EA2D if A is equal to A.
EA23 JR Z,$EA2D
Print " You shouldn't fight on an empty stomach...".
EA25 LD HL,$CA1A HL=Messaging_ShouldntFightOnEmptyStomach.
EA28 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll.
EA2B LD B,$0A B=0A.
EA2D LD A,B Call GenerateRandomNumber using the maximum value held in B.
EA2E CALL GenerateRandomNumber
EA31 JR Z,$EA38 Jump to EA38 if the random number was zero.
Print " You are too fast for him and you easily avoid the blow.".
EA33 LD HL,$C9E1 HL=Messaging_YouAreTooFastForHim.
EA36 JR $EA40 Jump to EA40.
EA38 POP HL Restore HL from the stack.
Bad luck!
EA39 LD HL,$E9B2 Switch GameOver onto the stack so the next return actions a "game over".
EA3C EX (SP),HL
Print " You are taken by surprise. The blow strikes true.".
EA3D LD HL,$CA46 HL=Messaging_YouAreTakenBySurpriseBlowStrikesTrue.
EA40 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll.
EA43 RET Return.
Prev: E9FA Up: Map Next: EA44