428a28a440
Fixes NOCLONE and CLUMSY being in both disabilities and mutations. they're now only disabilities. Fixes minttoxin not gibbing people with the fat disabilities. Fixes some runtimes, replacing usr by user in some places. Fixes mutation overlays being removed when updating overlays. Remove the now unused mob/var/list/mutations and human/var/blood_type Fixed some formatting in preferences.dm
32 lines
825 B
Plaintext
32 lines
825 B
Plaintext
/obj/effect/proc_holder/spell/targeted/genetic
|
|
name = "Genetic"
|
|
desc = "This spell inflicts a set of mutations and disabilities upon the target."
|
|
|
|
var/disabilities = 0 //bits
|
|
var/list/mutations = list() //mutation strings
|
|
var/duration = 100 //deciseconds
|
|
/*
|
|
Disabilities
|
|
1st bit - ?
|
|
2nd bit - ?
|
|
3rd bit - ?
|
|
4th bit - ?
|
|
5th bit - ?
|
|
6th bit - ?
|
|
*/
|
|
|
|
/obj/effect/proc_holder/spell/targeted/genetic/cast(list/targets)
|
|
playMagSound()
|
|
for(var/mob/living/carbon/target in targets)
|
|
if(!target.dna)
|
|
continue
|
|
for(var/A in mutations)
|
|
target.dna.add_mutation(A)
|
|
target.disabilities |= disabilities
|
|
spawn(duration)
|
|
if(target && !target.gc_destroyed)
|
|
for(var/A in mutations)
|
|
target.dna.remove_mutation(A)
|
|
target.disabilities &= ~disabilities
|
|
|
|
return |