mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Combat additions
Added formulas for base EXP gain and chain experience Added basic scripts for most player abilities and effects Added stat gains for some abilities Changed status flags Fixed bug with player death Fixed bug where auto attacks didnt work when not locked on Added traits
This commit is contained in:
@@ -26,4 +26,9 @@ function getDistanceBetweenActors(actor1, actor2)
|
||||
local dz = pos1[2] - pos2[2]
|
||||
|
||||
return math.sqrt(dx * dx + dy * dy + dz *dz);
|
||||
end
|
||||
|
||||
function math.Clamp(val, lower, upper)
|
||||
if lower > upper then lower, upper = upper, lower end -- swap if boundaries supplied the wrong way
|
||||
return math.max(lower, math.min(upper, val))
|
||||
end
|
||||
Reference in New Issue
Block a user