[MIRROR] removes unnecessary species breath code (#6588)

* Remove unnecessary species breath code (#59864)

Human code override breathe(), called the species datum which checked if the human had NO_BREATH. I just made it check for NOBREATH directly, since it is apparently a human only trait.

If someone wants to implement special breathing checks/behaviour, make custom lungs

* removes unnecessary species breath code

Co-authored-by: Time-Green <timkoster1@hotmail.com>
This commit is contained in:
SkyratBot
2021-06-29 18:39:21 +02:00
committed by GitHub
parent 3ff513f971
commit 5fdd99aba6
3 changed files with 4 additions and 12 deletions
+2 -2
View File
@@ -79,8 +79,8 @@
..()
/mob/living/carbon/human/breathe()
if(!dna.species.breathe(src))
..()
if(!HAS_TRAIT(src, TRAIT_NOBREATH))
return ..()
/mob/living/carbon/human/check_breath(datum/gas_mixture/breath)
@@ -1657,14 +1657,6 @@ GLOBAL_LIST_EMPTY(roundstart_races)
// called before a projectile hit
return 0
/////////////
//BREATHING//
/////////////
/datum/species/proc/breathe(mob/living/carbon/human/H)
if(HAS_TRAIT(H, TRAIT_NOBREATH))
return TRUE
//////////////////////////
// ENVIRONMENT HANDLERS //
//////////////////////////