Prev: 5F38 Up: Map Next: 5F53
5F40: Reset Flower And Leaves
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 5F40 LD HL,$5F26 Copy 08 bytes of data from DefaultState_Flower to State_Flower.
5F43 LD DE,$5E8C
5F46 LD BC,$0008
5F49 LDIR
5F4B LD HL,$5E94 HL=Leaf_1_State (the first leaf object).
5F4E LD B,$04 Set the leaf counter to 04.
5F50 JP SetObjectInactive Jump to SetObjectInactive to set all four leaf objects inactive.
Prev: 5F38 Up: Map Next: 5F53