mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
40
Data/scripts/effects/power_surge_II.lua
Normal file
40
Data/scripts/effects/power_surge_II.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
require("modifiers")
|
||||
require("battleutils")
|
||||
|
||||
--https://www.bluegartr.com/threads/107403-Stats-and-how-they-work/page22
|
||||
function onGain(owner, effect, actionContainer)
|
||||
local attackGained = 210;
|
||||
local defenseLost = 158;
|
||||
|
||||
--Enhanced Power Surge: Increases effect of Power Surge by 10% (assuming this doesn't lower defense further)
|
||||
if owner.HasTrait(27281) then
|
||||
attackGained = attackGained * 1.1;
|
||||
end
|
||||
|
||||
effect.SetMagnitude(attackGained);
|
||||
effect.SetExtra(defenseLost);
|
||||
|
||||
owner.AddMod(modifiersGlobal.Attack, effect.GetMagnitude());
|
||||
owner.SubtractMod(modifiersGlobal.Defense, effect.GetExtra());
|
||||
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, 223214, 1, 1, 60);
|
||||
actionContainer.AddAction(action);
|
||||
else
|
||||
effect.RefreshTime();
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function onLose(owner, effect, actionContainer)
|
||||
owner.SubtractMod(modifiersGlobal.Attack, effect.GetMagnitude());
|
||||
owner.AddMod(modifiersGlobal.Defense, effect.GetExtra());
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue