![]() |
Routines |
| Prev: 24376 | Up: Map | Next: 24403 |
|
Used by the routines at LevelNew and ResetPlayerData.
Restores the flower from its default state at DefaultState_Flower and sets the four leaf objects inactive.
|
||||
| ResetFlowerLeaf | 24384 | LD HL,24358 | Copy 8 bytes of data from DefaultState_Flower to State_Flower. | |
| 24387 | LD DE,24204 | |||
| 24390 | LD BC,8 | |||
| 24393 | LDIR | |||
| 24395 | LD HL,24212 | HL=Leaf_1_State (the first leaf object). | ||
| 24398 | LD B,4 | Set the leaf counter to 4. | ||
| 24400 | JP SetObjectInactive | Jump to SetObjectInactive to set all four leaf objects inactive. | ||
| Prev: 24376 | Up: Map | Next: 24403 |