mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
64 lines
1.6 KiB
Plaintext
64 lines
1.6 KiB
Plaintext
/*
|
|
Other mutation or disability spells can be found in
|
|
code\game\dna\genes\vg_powers.dm //hulk is in this file
|
|
code\game\dna\genes\goon_disabilities.dm
|
|
code\game\dna\genes\goon_powers.dm
|
|
*/
|
|
/spell/targeted/genetic
|
|
name = "Genetic modifier"
|
|
desc = "This spell inflicts a set of mutations and disabilities upon the target."
|
|
|
|
var/disabilities = 0 //bits
|
|
var/list/mutations = list() //mutation strings
|
|
duration = 100 //deciseconds
|
|
|
|
|
|
/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
|
|
|
|
/spell/targeted/genetic/blind
|
|
name = "Blind"
|
|
disabilities = 1
|
|
duration = 300
|
|
|
|
charge_max = 300
|
|
|
|
spell_flags = 0
|
|
invocation = "STI KALY"
|
|
invocation_type = "whisper"
|
|
message = "<span class='danger'>Your eyes cry out in pain!</span>"
|
|
cooldown_min = 50
|
|
|
|
range = 7
|
|
max_targets = 0
|
|
|
|
amt_eye_blind = 10
|
|
amt_eye_blurry = 20
|
|
|
|
/spell/targeted/genetic/mutate
|
|
name = "Mutate"
|
|
desc = "This spell causes you to turn into a hulk and gain laser vision for a short while."
|
|
|
|
school = "transmutation"
|
|
charge_max = 400
|
|
spell_flags = Z2NOCAST | NEEDSCLOTHES | INCLUDEUSER
|
|
invocation = "BIRUZ BENNAR"
|
|
invocation_type = "shout"
|
|
message = "\blue You feel strong! You feel a pressure building behind your eyes!"
|
|
range = 0
|
|
max_targets = 1
|
|
|
|
mutations = list(M_LASER, M_HULK)
|
|
duration = 300
|
|
cooldown_min = 300 //25 deciseconds reduction per rank |