mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +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
|
@ -4,12 +4,12 @@ require("modifiers")
|
|||
--Guessing it scales with level. If I had to guess it's either 2.1 * level or (2 * level) + 5.
|
||||
--I'm going to guess the latter since it always leaves you with a whole number. I could be completely wrong though
|
||||
--The party_battle_leve has rampart giving 36? defense. It's from an earlier patch so probably useless
|
||||
function onGain(target, effect)
|
||||
effect.SetMagnitude(2 * target.GetLevel() + 5);
|
||||
function onGain(owner, effect, actionContainer)
|
||||
effect.SetMagnitude(2 * owner.GetLevel() + 5);
|
||||
|
||||
target.AddMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
||||
owner.AddMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
target.SubtractMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
||||
function onLose(owner, effect, actionContainer)
|
||||
owner.SubtractMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue