mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Refactor StatusEffectContainer to better handle messages using
CommandResultContainer. Alter Modifiers to be the same as ParamNames. Add LoseOnClassChange flag for status effects. Add a few missing status effects. Fix EndTime for stance status effects to stop icon from blinking.
This commit is contained in:
11
data/scripts/effects/hp_penalty.lua
Normal file
11
data/scripts/effects/hp_penalty.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
require("modifiers")
|
||||
|
||||
function onGain(target, effect)
|
||||
local newMaxHP = target.GetMaxHP() * 0.75;
|
||||
|
||||
target.SetMaxHP(newMaxHP);
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
target.SetMaxHP(target.GetMaxHP() / 0.75);
|
||||
end;
|
||||
Reference in New Issue
Block a user