Merge pull request #6331 from Nalarac/patch-4

Makes Husking Require More Burn
This commit is contained in:
Atermonera
2019-07-27 11:09:31 -08:00
committed by GitHub
2 changed files with 38 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
//Updates the mob's health from organs and mob damage variables
/mob/living/carbon/human/updatehealth()
var/huskmodifier = 1.5 // With 1.5, you need 250 burn instead of 200 to husk a human.
if(status_flags & GODMODE)
health = getMaxHealth()
@@ -17,7 +18,7 @@
health = getMaxHealth() - getOxyLoss() - getToxLoss() - getCloneLoss() - total_burn - total_brute
//TODO: fix husking
if( ((getMaxHealth() - total_burn) < config.health_threshold_dead) && stat == DEAD)
if( ((getMaxHealth() - total_burn) < config.health_threshold_dead * huskmodifier) && stat == DEAD)
ChangeToHusk()
return