Hello, I'm attempting to recreate Noita's want system but am stuck on a some parts of the implementation. Currently, I have an Inventory component that stores the equipped Spell structs. I use a custom Command to build the spell projectile entity by attaching different components depending on the spell and clone the entity when a Multi-cast is used. The part where this impl seems to fall short is when trying to add "Trigger" spells. I can't use the Bundle of the next spell as I can't spawn in the projectile until after the spell is triggered and iirc you can't store Bundles. Triggers basically build the next spell in front of it.
I could have an enum of spell traits that is added to list then can be used to construct a spell entity? Is there a better way to think about the data structure of spells that I may be missing?