Hi All,
I would like the overkill bonus to show up when you drop an enemy 50% of their max hp below zero. Currently it just does 50% of their max hp and thats it. So I was wondering if anyone knew how to adjust the damage formula on this to make it include the current hp the enemy has left. For example if the enemies max hp is 100 and has 20 hp left the player would have to do 70 points of damage to cause an overkill.
I believe I could store a variable at the begining of every skill or in every troop turn, and call that, but I feel like it would be way simpler if I could write a function or call for the targets hp before damage is calculated directly in the js.
Any help would be greatly appreciated.
I would like the overkill bonus to show up when you drop an enemy 50% of their max hp below zero. Currently it just does 50% of their max hp and thats it. So I was wondering if anyone knew how to adjust the damage formula on this to make it include the current hp the enemy has left. For example if the enemies max hp is 100 and has 20 hp left the player would have to do 70 points of damage to cause an overkill.
I believe I could store a variable at the begining of every skill or in every troop turn, and call that, but I feel like it would be way simpler if I could write a function or call for the targets hp before damage is calculated directly in the js.
Any help would be greatly appreciated.