Skip to content
Snippets Groups Projects
Commit 50d73f40 authored by DarkGod's avatar DarkGod
Browse files

fix

parent 286fdd16
No related branches found
No related tags found
No related merge requests found
......@@ -1556,6 +1556,7 @@ end
--- Gets the 'power' portion of the damage
function _M:combatDamagePower(weapon_combat, add)
if not weapon_combat then return 1 end
local power = math.max((weapon_combat.dam or 1) + (add or 0), 1)
return (math.sqrt(power / 10) - 1) * 0.5 + 1
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment