Not the biggest deal out there, but it means loading basically restarts the whole process for bees (which do persist when saving and loading).
self.flowers also stores flower insts and keeps them even after they're removed (like when picking flowers for petals).
This is fine, but maybe self.flowers should store prefab names instead? And a separate self.flower_ents table should keep track of which ones have been pollinated (and remove them when they get removed through "onremove" listeners)?
Just a suggestion mainly to avoid keeping stale references to invalid entities.
Steps to Reproduce
- Have a bee pollinate a few flowers.
- Save and load the game.
- Notice how their amount of pollinated flowers is back down to 0.
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now