Scorched Earth (#8828)

Doing enough fire damage to a corpse will now turn it into ash.
This commit is contained in:
Geeves
2020-05-15 23:32:02 +03:00
committed by GitHub
parent ae5707c9b9
commit 8bc303f5a6
3 changed files with 13 additions and 5 deletions
@@ -91,7 +91,7 @@
mutations.Add(HUSK)
status_flags |= DISFIGURED //makes them unknown without fucking up other stuff like admintools
update_body(1)
update_body(TRUE)
return
/mob/living/carbon/human/proc/Drain()
@@ -110,7 +110,7 @@
mutations.Add(SKELETON)
status_flags |= DISFIGURED
update_body(0)
update_body(TRUE)
return
/mob/living/carbon/human/proc/vr_disconnect()
@@ -10,9 +10,11 @@
health = maxHealth - getBrainLoss()
//TODO: fix husking
if(((maxHealth - getFireLoss()) < config.health_threshold_dead) && stat == DEAD)
ChangeToHusk()
if(stat == DEAD)
if(getFireLoss() > maxHealth * 1.5)
ChangeToHusk()
if(getFireLoss() > maxHealth * 3)
ChangeToSkeleton()
UpdateDamageIcon() // to fix that darn overlay bug
return