mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00

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
20 lines
No EOL
650 B
Lua
20 lines
No EOL
650 B
Lua
require("modifiers")
|
|
|
|
function onGain(target, effect)
|
|
--Traited increases speed by 20%. Assuming that means it actually increases speed instead of simply offsetting the negative speed it has by default
|
|
local speedModifier = 0.8;
|
|
if effect.GetTier() == 2 then
|
|
speedModifier = 1.2;
|
|
end
|
|
|
|
target.SetMod(modifiersGlobal.Speed, target.GetMod(modifiersGlobal.Speed) * speedModifier);
|
|
end;
|
|
|
|
function onLose(target, effect)
|
|
local speedModifier = 0.8;
|
|
if effect.GetTier() == 2 then
|
|
speedModifier = 1.2;
|
|
end
|
|
|
|
target.SetMod(modifiersGlobal.Speed, target.GetMod(modifiersGlobal.Speed) / speedModifier);
|
|
end; |