Jump to content

Recommended Posts

So I'm making a summoned item like Maxwell's shadow book. But it costs maxHealth instead of maxSanity. 
Found nothing inside the CodexUmbra's lua. But I think Meat Effigy's lua ""resurrectionstatue"" might be helpful. though I can't yet :(

Health_lowered.png

 

resurrectionstatue.lua

Edited by Hiru315
function Health:DeltaPenalty(delta)
    self:SetPenalty(self.penalty + delta)
    self:ForceUpdateHUD(false) --handles capping health at max with penalty
end

Yes when you use a negative it should remove that amount.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...