I plan to develop an RPG, and I struggle with my weapon damage calculation.
I'd like to be able to attach modifiers to swords, like life steal, damage buff, fire damage over time, make the enemies slower, increase attack speed, and so on.
I can't find a proper way to apply these modifiers where the "hit" method is called.
For the moment, I manage it with a "GearType" switch, and do different things to the enemies at this point but it doesn't really follow the Object Oriented logic. I would prefer something more scalable where I could easily add new buff/debuff.
If you have any tips or experience on this, it will be appreciated.