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:
30
data/scripts/effects/power_surge_I.lua
Normal file
30
data/scripts/effects/power_surge_I.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
require("modifiers")
|
||||
require("hiteffect")
|
||||
require("battleutils")
|
||||
|
||||
--https://www.bluegartr.com/threads/107403-Stats-and-how-they-work/page22
|
||||
function onGain(owner, effect)
|
||||
owner.AddMod(modifiersGlobal.Attack, 115);
|
||||
owner.SubtractMod(modifiersGlobal.Defense, 158);
|
||||
end
|
||||
|
||||
function onCommandStart(effect, owner, command, actionContainer)
|
||||
--if command is a weaponskill or jump
|
||||
--27266: jump
|
||||
if command.GetCommandType() == CommandType.Weaponskill or command.id == 27266 then
|
||||
effect.SetTier(effect.GetTier() + 1);
|
||||
|
||||
--Takes 10 weaponskills/jumps to increase level
|
||||
if effect.GetTier() > 10 then
|
||||
local action = owner.statusEffects.ReplaceEffect(effect, 223213, 1, 1, 60);
|
||||
actionContainer.AddAction(action);
|
||||
else
|
||||
effect.RefreshTime();
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function onLose(owner, effect)
|
||||
owner.SubtractMod(modifiersGlobal.Attack, 115);
|
||||
owner.AddMod(modifiersGlobal.Defense, 158);
|
||||
end
|
Reference in New Issue
Block a user