Skip to content

Commit

Permalink
Fixes oxygen related alerts sticking in your hud if you loose the nee…
Browse files Browse the repository at this point in the history
…d 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>
  • Loading branch information
1080pCat and DGamerL authored Dec 24, 2024
1 parent cc9b5fb commit a652f57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/human/species/_species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

////////////////
Expand Down

0 comments on commit a652f57

Please sign in to comment.