Should a human receive enough instantaneous burn damage, they ash

This commit is contained in:
madmanmartian
2019-03-29 22:32:45 +00:00
parent bf864c0dc1
commit 6700ebbd7e
2 changed files with 6 additions and 0 deletions

View File

@@ -113,6 +113,7 @@
var/health_threshold_softcrit = 0 var/health_threshold_softcrit = 0
var/health_threshold_crit = 0 var/health_threshold_crit = 0
var/health_threshold_dead = -100 var/health_threshold_dead = -100
var/burn_damage_ash = 0
var/organ_health_multiplier = 1 var/organ_health_multiplier = 1
var/organ_regeneration_multiplier = 1 var/organ_regeneration_multiplier = 1
@@ -606,6 +607,8 @@
config.health_threshold_softcrit = value config.health_threshold_softcrit = value
if("health_threshold_dead") if("health_threshold_dead")
config.health_threshold_dead = value config.health_threshold_dead = value
if("burn_damage_ash")
config.burn_damage_ash = value
if("revival_pod_plants") if("revival_pod_plants")
config.revival_pod_plants = value config.revival_pod_plants = value
if("revival_cloning") if("revival_cloning")

View File

@@ -72,6 +72,9 @@
if(amount > 0) if(amount > 0)
take_overall_damage(0, amount) take_overall_damage(0, amount)
if(config.burn_damage_ash && amount >= config.burn_damage_ash)
dust()
return
else else
heal_overall_damage(0, -amount) heal_overall_damage(0, -amount)
hud_updateflag |= 1 << HEALTH_HUD hud_updateflag |= 1 << HEALTH_HUD