Chillu1 / ModiBuff

Buff/Debuff/Modifier library focused on feature set and performance, while maintaining 0 GC. Fully pooled
Mozilla Public License 2.0
139 stars 4 forks source link

Stack Timer(s) #27

Closed Chillu1 closed 10 months ago

Chillu1 commented 11 months ago

Right now, stacks can be reset by modifier action (usually callbacks). But this is limiting

Features It would be nice to have a stack-only timer, that starts ticking when there's 1 or more stacks, and resets the stack count to 0 after it's finished (most likely also reverting the effects).

The other possible feature is to have independent stack timer timeouts. Each time a new stack gets added, a new timer will start. When that timer goes down to 0, we decrement the stacks.

It's important to handle the stack effects correctly here, since it's easy to double the effect.