Reviewed the game map section

This commit is contained in:
Kayne Ruse
2014-05-24 00:25:25 +10:00
parent 32063f657d
commit e011baae1a
2 changed files with 2 additions and 0 deletions
+2
View File
@@ -36,6 +36,8 @@ end
function CalcDamage(A, D, t)
-- if t == attackType.PHYSICAL then
--TODO: test min & max of the rng
--TODO: overall, this needs tweaking for balance
return math.max(1, ( A.attack*3 + A.attack*(math.random(A.luck*100)/10) ) - (D.defence + D.defence*D.evasion))
-- end
-- if t == attackType.MAGICAL then