Skip to content

Commit

Permalink
drain softcap (#5090)
Browse files Browse the repository at this point in the history
adds a soft cap of 200 hp to drain to keep players from becoming demi gods. Crayon magic was supposed to be non viable to actual gear like armor.
  • Loading branch information
LongSleeves authored Feb 29, 2024
1 parent 2c39b6c commit b1cd790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/effects/decals/crayon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@
return

to_chat(M, "<span class='warning'>The sacrifice vanishes to dust before you. You feel an ominous warm wind envelop your form as you absorb its lifeforce unto your own.</span>")
if(able_to_cast)
if(able_to_cast && M.maxHealth < 200)
M.maxHealth += 1
M.health += 1
M.unnatural_mutations.total_instability += 1 //A soft cap
Expand All @@ -946,7 +946,7 @@
return

to_chat(M, "<span class='warning'>The sacrifice vanishes to dust before you. You feel an ominous warm wind envelop your form as you absorb its lifeforce unto your own.</span>")
if(able_to_cast)
if(able_to_cast && M.maxHealth < 200)
M.maxHealth += 1
M.health += 1
M.unnatural_mutations.total_instability += 1 //A soft cap
Expand Down

0 comments on commit b1cd790

Please sign in to comment.