mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
New scripts
New scripts for commands and effects that use the new function signatures and work with the new statuseffectcontainer
This commit is contained in:
parent
4f80023156
commit
00017468cc
129 changed files with 884 additions and 396 deletions
|
@ -1,6 +1,6 @@
|
|||
require("modifiers")
|
||||
|
||||
function onGain(target, effect)
|
||||
function onGain(owner, effect, actionContainer)
|
||||
--Magnitude is caster's Enhancing Magic Potency.
|
||||
--http://forum.square-enix.com/ffxiv/threads/41900-White-Mage-A-Guide
|
||||
--5-4-5-4-5-4-5-4-5 repeating points of Enhancing for 1 defense
|
||||
|
@ -8,29 +8,29 @@ function onGain(target, effect)
|
|||
local defenseBuff = 4.56 * effect.GetMagnitude();
|
||||
local magicDefenseBuff = 0;
|
||||
|
||||
target.AddMod(modifiersGlobal.Defense, defenseBuff);
|
||||
owner.AddMod(modifiersGlobal.Defense, defenseBuff);
|
||||
|
||||
--27365: Enhanced Protect: Increases magic defense gained from Protect.
|
||||
--There is no "magic defense" stat, instead it gives stats to each resist stat.
|
||||
magicDefenseBuff = 6.67 * effect.GetMagnitude();
|
||||
for i = modifiersGlobal.ResistFire, modifiersGlobal.ResistWater do
|
||||
target.AddMod(i, magicDefenseBuff);
|
||||
for i = modifiersGlobal.FireResistance, modifiersGlobal.WaterResistance do
|
||||
owner.AddMod(i, magicDefenseBuff);
|
||||
end
|
||||
|
||||
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
function onLose(owner, effect, actionContainer)
|
||||
local defenseBuff = 4.56 * effect.GetMagnitude();
|
||||
local magicDefenseBuff = 0;
|
||||
|
||||
target.SubtractMod(modifiersGlobal.Defense, defenseBuff);
|
||||
owner.SubtractMod(modifiersGlobal.Defense, defenseBuff);
|
||||
|
||||
--27365: Enhanced Protect: Increases magic defense gained from Protect.
|
||||
--There is no "magic defense" stat, instead it gives stats to each resist stat.
|
||||
magicDefenseBuff = 6.67 * effect.GetMagnitude();
|
||||
for i = modifiersGlobal.ResistFire, modifiersGlobal.ResistWater do
|
||||
target.SubtractMod(i, magicDefenseBuff);
|
||||
for i = modifiersGlobal.FireResistance, modifiersGlobal.WaterResistance do
|
||||
owner.SubtractMod(i, magicDefenseBuff);
|
||||
end
|
||||
end;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue