Skip to content

Commit

Permalink
fixes Anomalous Air Supply gene (#4870)
Browse files Browse the repository at this point in the history
Smol fix for a rarely used gene. Simply switches it over to using race flags rather then cursed old genetics stuff. Tested fully and works.
  • Loading branch information
benj8560 authored Nov 28, 2023
1 parent d45c15d commit f15f124
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion code/modules/genetics/mutations/disability.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,25 @@
desc = "Removes the need for oxygen."
gain_text="Your lungs feel a little minty..."
instability = 5
mutation = mNobreath
var/existed_prior = FALSE

/datum/genetics/mutation/disability/nobreathe/onMobImplant()
if(!istype(container.holder,/mob/living/carbon))
return
var/mob/living/carbon/target = container.holder
if(!(target.species.flags & NO_BREATHE))
target.species.flags |= NO_BREATHE
else
existed_prior = TRUE

/datum/genetics/mutation/disability/nobreathe/onMobRemove()
if(!istype(container.holder,/mob/living/carbon))
return
if(existed_prior)
return
var/mob/living/carbon/target = container.holder
target.species.flags &= ~NO_BREATHE


/datum/genetics/mutation/disability/hulk
name = "H.U.L.K."
Expand Down

0 comments on commit f15f124

Please sign in to comment.