Files
Polaris/code/datums/spells/genetic.dm
uporotiy b7db69b6f8 Object spell system v1.1
Completely revamped the classes, it's even more streamlined now. Got a few bugs and tweaks (namely, blind doesn't work, fireball got buffed up as compensation for not dealing additional damage to the target), but it's okay, since nobody uses those anyway.
 Fixed the bug with emagged borg laws.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1465 316c924e-a436-60f5-8080-3fe189b3f50e
2011-04-17 18:49:46 +00:00

34 lines
746 B
Plaintext

/obj/spell/targeted/genetic
name = "Genetic"
desc = "This spell inflicts a set of mutations and disabilities upon the target."
var/disabilities = 0 //bits
var/mutations = 0 //bits
var/duration = 100 //deciseconds
/*
Disabilities
1st bit - ?
2nd bit - ?
3rd bit - ?
4th bit - ?
5th bit - ?
6th bit - ?
Mutations
1st bit - portals
2nd bit - cold resist
3rd bit - xray
4th bit - hulk
5th bit - clown
6th bit - fat
*/
/obj/spell/targeted/genetic/cast(list/targets)
for(var/mob/target in targets)
target.mutations |= mutations
target.disabilities |= disabilities
spawn(duration)
target.mutations &= ~mutations
target.disabilities &= ~disabilities
return