Small changeling tweaks (#9255)

This commit is contained in:
Decepteor
2020-07-06 13:53:26 +02:00
committed by GitHub
parent 6e92f88945
commit ef39964cbd
4 changed files with 18 additions and 3 deletions
+2 -2
View File
@@ -109,7 +109,7 @@
// Calculate how vulnerable the human is to under- and overpressure.
// Returns 0 (equals 0 %) if sealed in an undamaged suit, 1 if unprotected (equals 100%).
// Suitdamage can modifiy this in 10% steps.
/mob/living/carbon/human/proc/get_pressure_weakness()
/mob/living/carbon/human/get_pressure_weakness()
var/pressure_adjustment_coefficient = 1 // Assume no protection at first.
if(wear_suit && (wear_suit.item_flags & STOPPRESSUREDAMAGE) && head && (head.item_flags & STOPPRESSUREDAMAGE)) // Complete set of pressure-proof suit worn, assume fully sealed.
@@ -727,7 +727,7 @@
return 1
if(hallucination && !(species.flags & (NO_POISON|IS_PLANT)))
handle_hallucinations()
handle_hallucinations()
if(get_shock() >= (species.total_health * 0.75))
if(!stat)
+3
View File
@@ -987,6 +987,9 @@
/mob/proc/get_species(var/reference = 0)
return ""
/mob/proc/get_pressure_weakness()
return 1
/mob/proc/flash_weak_pain()
flick("weak_pain", pain)