Prev: EE63 Up: Map Next: EE90
EE74: Events: Match
Make the match inactive.
Event_Match EE74 LD HL,$BC66 Reset bit 6 of *Flag_TurnBasedEventState which relates to the match being active.
EE77 RES 6,(HL)
EE79 LD A,$03 Call CheckObjectInInventory with item 03: "A lighted match".
EE7B CALL CheckObjectInInventory
EE7E JR NZ,Event_Match_Return Jump to Event_Match_Return if the match is not in the players inventory.
The player is holding the lit match, and it's burned away so handle the messaging.
EE80 LD HL,$BC98 HL=Count_InventoryItems.
EE83 DEC (HL) Decrease *HL by one.
Print " Ouch!! The match has burned away, scorching your fingers.".
EE84 LD HL,$DB91 HL=DB91.
EE87 CALL PrintStringAndNewline Call PrintStringAndNewline.
The match can no longer be used, so destroy it.
Event_Match_Return EE8A LD A,$03 Call Handler_DestroyItemEvent using item: "A lighted match".
EE8C CALL Handler_DestroyItemEvent
EE8F RET Return.
Prev: EE63 Up: Map Next: EE90