Fixes oxygen related alerts sticking in your hud if you loose the need to breath (#27731)

* Fixes oxygen related alerts sticking if you loose the ability to breath

* random runtime?

* random runtime i guess?

* Update code/modules/mob/living/carbon/human/species/_species.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>

---------

Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
1080pCat
2024-12-25 07:38:08 +10:00
committed by GitHub
parent cc9b5fbb03
commit a652f57985
@@ -269,7 +269,9 @@
new mutantears(H)
/datum/species/proc/breathe(mob/living/carbon/human/H)
if(HAS_TRAIT(H, TRAIT_NOBREATH))
var/datum/organ/lungs/lung = H.get_int_organ_datum(ORGAN_DATUM_LUNGS)
if(HAS_TRAIT(H, TRAIT_NOBREATH) && lung)
lung.clear_alerts(H)
return TRUE
////////////////