colin_greens @colingreens.dev · Sep 30

Stacking effects are a common but sneaky game mechanic. Not wanting to write a 3,000-line switch statement, I went to the whiteboard. ​With a factory and strategy pattern, you can design any kind of ability effect you want. To extend it, all you have to do is add an enum and a new file.

1 likes 0 replies

?