So i'm adding new class to my game which do all damages by presents But not of max hp but of current hp.
For example if monster has max hp of 1000 but the player already caused some damage, now the monster has 500 hp, Then the new class uses skill which deals 50% damage of the current hp,
Now the monster left with 250 hp.
Same on hp recovery, for example, The player max hp is 700 but he left with 500, Now the new class uses skill which recovers 25% of the current hp so the recovery effect stands on 125
How do i pull this off? It seems kinda easy i'm just not advance enough in damage formula feature
For example if monster has max hp of 1000 but the player already caused some damage, now the monster has 500 hp, Then the new class uses skill which deals 50% damage of the current hp,
Now the monster left with 250 hp.
Same on hp recovery, for example, The player max hp is 700 but he left with 500, Now the new class uses skill which recovers 25% of the current hp so the recovery effect stands on 125
How do i pull this off? It seems kinda easy i'm just not advance enough in damage formula feature