![]()  | 
Routines | 
| Prev: 61027 | Up: Map | Next: 61072 | 
| 
 | 
||||
| 
 
Make the match inactive.
 
 | 
||||
| Event_Match | 61044 | LD HL,48230 | Reset bit 6 of *Flag_TurnBasedEventState which relates to the match being active. | |
| 61047 | RES 6,(HL) | |||
| 61049 | LD A,3 | Call CheckObjectInInventory with item 3: "A lighted match". | ||
| 61051 | CALL CheckObjectInInventory | |||
| 61054 | 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.
 
 | 
||||
| 61056 | LD HL,48280 | HL=Count_InventoryItems. | ||
| 61059 | DEC (HL) | Decrease *HL by one. | ||
| 
 
Print "
Ouch!!
The match has burned away,
scorching your fingers.".
 
 | 
||||
| 61060 | LD HL,56209 | HL=56209. | ||
| 61063 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| 
 
The match can no longer be used, so destroy it.
 
 | 
||||
| Event_Match_Return | 61066 | LD A,3 | Call Handler_DestroyItemEvent using item: "A lighted match". | |
| 61068 | CALL Handler_DestroyItemEvent | |||
| 61071 | RET | Return. | ||
| Prev: 61027 | Up: Map | Next: 61072 |