Merge pull request #8950 from Trilbyspaceclone/patch-195

Ports "Fixes slime lungs runtime. #45057"
This commit is contained in:
kevinz000
2019-07-29 04:50:49 -07:00
committed by GitHub
+1 -1
View File
@@ -451,6 +451,6 @@
/obj/item/organ/lungs/slime/check_breath(datum/gas_mixture/breath, mob/living/carbon/human/H)
. = ..()
if (breath.gases[/datum/gas/plasma])
if (breath && breath.gases[/datum/gas/plasma])
var/plasma_pp = breath.get_breath_partial_pressure(breath.gases[/datum/gas/plasma])
owner.blood_volume += (0.2 * plasma_pp) // 10/s when breathing literally nothing but plasma, which will suffocate you.