mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
[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:
@@ -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 //
|
||||
//////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user