mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Should a human receive enough instantaneous burn damage, they ash
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user