Hi, i was just trying to re-write the codes for calculations of attacks for all kinds (Melee, Magic, Ranged), but i missed up with some stuff.
For the logic, it should be something like :*
Damage = (*Random between min attack and max attack ) - defence * (Gems effects) - (AzureDamage if exists) + (Breakthrough which gets with random success of rate ( that rate - the rate of anti breakthrough) ) * 2 ( if criticalstrike ( rate - anti criticalstike) )
Something for (Phy-Attack + and - (Tower and fan damages) ) ==> didn't know what should i put for these calulcations.
And the main thing BattlePower ==> What the calculations for it? got no idea about that one!
If i miss something please tell me about it, i'm trying to get it fine so i help people with it too! Anyone that can help,*Hope you guys help me. <3*
Thank you very much!*
For the logic, it should be something like :*
Damage = (*Random between min attack and max attack ) - defence * (Gems effects) - (AzureDamage if exists) + (Breakthrough which gets with random success of rate ( that rate - the rate of anti breakthrough) ) * 2 ( if criticalstrike ( rate - anti criticalstike) )
Something for (Phy-Attack + and - (Tower and fan damages) ) ==> didn't know what should i put for these calulcations.
And the main thing BattlePower ==> What the calculations for it? got no idea about that one!
If i miss something please tell me about it, i'm trying to get it fine so i help people with it too! Anyone that can help,*Hope you guys help me. <3*
Thank you very much!*