tModLoader How would I go about applying a permanent debuff to the player?

pototo

Terrarian
For the mod that I'm making for me and my friends, I made debuff that changes your max life to 1/3 of what it could have been, however I can't figure out how to do this and so you need to re-apply the debuff every time you heal at the nurse or die. How would I go around this problem?
 
Back
Top Bottom