project-meteor-server/data/scripts/effects/hp_penalty.lua
Yogurt afe1e59889 Fix hiteffect.lua to not use bor since we can't reference other members
of the same table

Change hp_penalty onGain and onLose to use the new function signature
2019-06-01 02:59:41 -07:00

11 lines
250 B
Lua

require("modifiers")
function onGain(owner, effect, actionContainer)
local newMaxHP = owner.GetMaxHP() * 0.75;
owner.SetMaxHP(newMaxHP);
end;
function onLose(owner, effect, actionContainer)
owner.SetMaxHP(owner.GetMaxHP() / 0.75);
end;