Ability and Skill Tree System Series

Part 15

In todays episode, I show you how to set up a damage system using interfaces and function libraries so that both our enemy and player class have access to it. The system includes damage calculation, critical strikes, effectiveness based on the element of the attack and the defender and some random variation to make the damage numbers a little bit more interesting. Further, we extend the functionality of our master enemy class so that it is actually able to hit the player with attacks and apply damage to him.