project-meteor-server/data/scripts/effects/hp_penalty.lua
Yogurt 26ef649a6c 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.
2019-05-27 23:05:20 -07:00

11 lines
222 B
Lua

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;