Refactors DNA Mutations; Refactors Mutations to use Traits (#15483)

* Refactors Mutations

* traits

* more work

* styling fix

* yet even more work

* oh hush

* almost there

* it continues yet further

* and that's genetics done

* and that's it folks

* last bit and golem fixup

* oof

* oops

* tweaks and fixes

* styling
This commit is contained in:
Fox McCloud
2021-02-21 21:25:19 +00:00
committed by GitHub
parent 324af7454c
commit 02b9445b9b
223 changed files with 2908 additions and 3049 deletions
+5 -7
View File
@@ -68,12 +68,10 @@
/obj/effect/mine/dnascramble/mineEffect(mob/living/victim)
victim.rad_act(radiation_amount)
if(ishuman(victim))
var/mob/living/carbon/human/V = victim
if(NO_DNA in V.dna.species.species_traits)
return
if(!victim.dna || HAS_TRAIT(victim, TRAIT_GENELESS))
return
randmutb(victim)
domutcheck(victim ,null)
domutcheck(victim)
/obj/effect/mine/gas
name = "oxygen mine"
@@ -179,7 +177,7 @@
if(!victim.client || !istype(victim))
return
to_chat(victim, "<span class='notice'>You feel fast!</span>")
victim.status_flags |= GOTTAGOFAST
ADD_TRAIT(victim, TRAIT_GOTTAGOFAST, "mine")
spawn(duration)
victim.status_flags &= ~GOTTAGOFAST
REMOVE_TRAIT(victim, TRAIT_GOTTAGOFAST, "mine")
to_chat(victim, "<span class='notice'>You slow down.</span>")