mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
69 lines
1.7 KiB
Plaintext
69 lines
1.7 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 = SpI_WHISPER
|
|
message = span_danger("Your eyes cry out in pain!")
|
|
cooldown_min = 50
|
|
|
|
range = 7
|
|
max_targets = 0
|
|
|
|
amt_eye_blind = 10
|
|
amt_eye_blurry = 20
|
|
|
|
hud_state = "wiz_blind"
|
|
|
|
/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 = SpI_SHOUT
|
|
message = span_notice("You feel strong! You feel a pressure building behind your eyes!")
|
|
range = 0
|
|
max_targets = 1
|
|
|
|
mutations = list(LASER, HULK)
|
|
duration = 300
|
|
cooldown_min = 300 //25 deciseconds reduction per rank
|
|
|
|
hud_state = "wiz_hulk"
|