Prev: EC3D Up: Map Next: EC99
EC5F: Events: Wolves
Wolves attack. The bow drives them off; otherwise the player dies.
Print " A pack of wolves appears.".
Events_Wolves EC5F LD HL,$DA61 HL=Messaging_APackOfWolvesAppears.
EC62 CALL PrintStringAndNewline Call PrintStringAndNewline.
EC65 LD A,$03 Call IsObjectCarried with item 03: "A bow".
EC67 CALL IsObjectCarried
EC6A JR NZ,Events_Wolves_Next Jump to Events_Wolves_Next if "A bow" isn't held.
EC6C LD A,$04 Call IsObjectCarried with item 04: "Some arrows".
EC6E CALL IsObjectCarried
EC71 JR Z,Events_Wolves_FightOff Jump to Events_Wolves_FightOff if "Some arrows" is held.
Print "You have nothing to fight with. They pounce upon you.".
Events_Wolves_Next EC73 LD HL,$DA7C HL=Messaging_YouHaveNothingToFightWith.
EC76 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll.
EC79 LD HL,$EB23 Switch GameOver onto the stack so the next return actions a "game over".
EC7C EX (SP),HL
EC7D RET Return.
Print "You successfully fight them off and kill some of them,but you are badly wounded.".
Events_Wolves_FightOff EC7E LD HL,$DAB2 HL=Messaging_YouSuccessfullyFightThemOff.
EC81 CALL PausePrintStringAndScroll Call PausePrintStringAndScroll.
EC84 LD A,$48 Call Handler_UpdateItemForTheCurrentRoom with item 48: "You are seriously injured".
EC86 CALL Handler_UpdateItemForTheCurrentRoom
EC89 LD A,$8B Call Handler_DestroyItem with 8B.
EC8B CALL Handler_DestroyItem
EC8E LD A,$1B Call Handler_UpdateItemForTheCurrentRoom with item 1B: "Some dead wolves".
EC90 CALL Handler_UpdateItemForTheCurrentRoom
EC93 LD A,$8A Call Handler_RemoveItemFromPlay with 8A.
EC95 CALL Handler_RemoveItemFromPlay
EC98 RET Return.
Prev: EC3D Up: Map Next: EC99