mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 19:43:16 +00:00
Merge pull request #6331 from Nalarac/patch-4
Makes Husking Require More Burn
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user