![]() |
Routines |
| Prev: 43792 | Up: Map | Next: 43834 |
|
Prints the forest warning and can sting the player. The forest record at 51905 calls this.
|
||||
| Event_DropsFromAbove | 43807 | LD HL,45841 | Point HL at 45841. | |
| 43810 | CALL PrintMessage | Call PrintMessage to print message. | ||
| 43813 | LD A,(49451) | Return if the current location is the one saved at 46835. | ||
| 43816 | LD C,A | |||
| 43817 | LD HL,46835 | |||
| 43820 | CP (HL) | |||
| 43821 | RET Z | |||
| 43822 | LD B,(HL) | Read a byte from the pointer into B. | ||
| 43823 | LD A,2 | Take 2, and jump to Event_DropsFromAbove_ReturnIfThisIsTheLocation unless *46835 is 2. | ||
| 43825 | CP B | |||
| 43826 | JR NZ,Event_DropsFromAbove_ReturnIfThisIsTheLocation | |||
| 43828 | LD A,3 | Take 3. | ||
| Event_DropsFromAbove_ReturnIfThisIsTheLocation | 43830 | CP C | Return if the current location is the one in A. | |
| 43831 | RET Z | |||
| 43832 | JR Event_StungFromAbove_PrintAndEnd | Jump to Event_StungFromAbove_PrintAndEnd to print "some thing drop(s|d|ing|es) from above and sting(s|d|ing|es)". | ||
| Prev: 43792 | Up: Map | Next: 43834 |