ModiBuff icon indicating copy to clipboard operation
ModiBuff copied to clipboard

Dynamic Meta/Post effects

Open Chillu1 opened this issue 2 years ago • 0 comments

Describe the solution you'd like Being able to either add, or activate/deactivate meta and post effects on modifiers. Making it, so we can do custom logic while the effect is handled at runtime

Implementation There are two approaches:

  1. Removing and adding meta/post effects inside the effect.
  2. Activating and deactivating them instead.

Activation/deactivation is much better for our ram usage, amount of cloning, and generally preferred. We'd have an int that acts like a bitset that sets the flags of which meta and post effects are active. Storing the default bitset state, and defaulting to it on ResetState.

Chillu1 avatar Nov 11 '23 18:11 Chillu1