POE like spell sytem

Consider looking into the strategy or decorator software design pattern.

I recently wrote a post about the strategy pattern here, specifically in the context of RPGs. (Code examples are in C++, but the concept should translate well to any language of your choice that supports inheritance.)

The decorator pattern is also pretty neat; it allows you to add new behaviors to existing objects, which sounds a lot like what you’re describing your code should do.

1 Like