Fixes issues caused when you don't need to breathe

Allows oxyloss regen (at normal raste) and turns off oxygen and toxin
hud warnings when you don't need to breathe
This commit is contained in:
VampyrBytes
2016-02-01 11:11:36 +00:00
parent c3973fff4c
commit 7ef6c917a3
+5 -5
View File
@@ -295,14 +295,14 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc
if(istype(O)) O.add_autopsy_data("Radiation Poisoning", damage)
/mob/living/carbon/human/breathe()
if(reagents.has_reagent("lexorin"))
if((NO_BREATH in mutations) || (species && (species.flags & NO_BREATHE)) || reagents.has_reagent("lexorin"))
adjustOxyLoss(-5)
oxygen_alert = 0
toxins_alert = 0
return
if(NO_BREATH in mutations)
return // No breath mutation means no breathing. //DID YOU REALLY NEED TO FUCKING STATE THIS?
if(istype(loc, /obj/machinery/atmospherics/unary/cryo_cell))
return
if(species && (species.flags & NO_BREATHE))
return
var/datum/gas_mixture/environment
if(loc)