Allow cryo to fix all clone damage on limbs

This commit is contained in:
nicetoolbox
2018-08-21 22:40:15 -07:00
parent e161aeaa4b
commit 0478c609d0
3 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -123,7 +123,7 @@
..()
if(autoeject)
if(occupant)
if(!occupant.has_organic_damage())
if(!occupant.has_organic_damage() && !occupant.has_mutated_organs())
on = 0
go_out()
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
@@ -367,7 +367,7 @@
if(air_contents.total_moles() < 10)
return
if(occupant)
if(occupant.stat == 2 || occupant.health >= 100) //Why waste energy on dead or healthy people
if(occupant.stat == 2 || (occupant.health >= 100 && !occupant.has_mutated_organs())) //Why waste energy on dead or healthy people
occupant.bodytemperature = T0C
return
occupant.bodytemperature += 2*(air_contents.temperature - occupant.bodytemperature)*current_heat_capacity/(current_heat_capacity + air_contents.heat_capacity())
+4
View File
@@ -78,6 +78,10 @@
#undef STOMACH_ATTACK_DELAY
/mob/living/carbon/proc/has_mutated_organs()
return FALSE
/mob/living/carbon/proc/vomit(var/lost_nutrition = 10, var/blood = 0, var/stun = 1, var/distance = 0, var/message = 1)
if(src.is_muzzled())
if(message)
@@ -1768,6 +1768,12 @@ Eyes need to have significantly high darksight to shine unless the mob has the X
else
return FALSE
/mob/living/carbon/human/has_mutated_organs()
for(var/obj/item/organ/external/E in bodyparts)
if(E.status & ORGAN_MUTATED)
return TRUE
return FALSE
/mob/living/carbon/human/InCritical()
return (health <= config.health_threshold_crit && stat == UNCONSCIOUS)