mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4654 316c924e-a436-60f5-8080-3fe189b3f50e
31 lines
818 B
Plaintext
31 lines
818 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)
|
|
|
|
for(var/mob/living/target in targets)
|
|
for(var/x in mutations)
|
|
target.mutations.Add(x)
|
|
target.disabilities |= disabilities
|
|
target.update_mutations() //update target's mutation overlays
|
|
spawn(duration)
|
|
for(var/x in mutations)
|
|
target.mutations.Remove(x)
|
|
target.disabilities &= ~disabilities
|
|
target.update_mutations()
|
|
|
|
return |