mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
Ports the newest bay wizard version, with some additions and changes. General changes: -ported the newest bay wizard -wizards can select some school of magic, which also changes their spell selection as whole. -added several new spells, like raise dead, contracts that bind the person with the wizard, and more. -added wands, limited sources of certain types of effects/spell, also with their own bad effects for non wizards -changed the wizard checks to a faction check instead of a mind check -fixed wizards without certain slots due to race being fucked over due to it -added new artifacts -balanced some spells like the emp -added a lot of new sounds to spell, mostly from tg -remove horse mask from spell selection, also, you can melt the mask with acid now -wizard's spell are now displayed at round end like traitors and what they did buy -also fixes vaurca, and vox, antags spawning without a mask by default
83 lines
2.1 KiB
Plaintext
83 lines
2.1 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"
|
|
desc = "This spell inflicts a target with temporary blindness."
|
|
feedback = "BD"
|
|
disabilities = 1
|
|
duration = 300
|
|
cast_sound = 'sound/magic/Blind.ogg'
|
|
|
|
charge_max = 300
|
|
|
|
spell_flags = 0
|
|
invocation = "STI KALY"
|
|
invocation_type = SpI_WHISPER
|
|
message = "<span class='danger'>Your eyes cry out in pain!</span>"
|
|
level_max = list(Sp_TOTAL = 3, Sp_SPEED = 1, Sp_POWER = 3)
|
|
cooldown_min = 50
|
|
|
|
range = 7
|
|
max_targets = 0
|
|
|
|
amt_eye_blind = 10
|
|
amt_eye_blurry = 20
|
|
|
|
hud_state = "wiz_blind"
|
|
|
|
/spell/targeted/genetic/blind/empower_spell()
|
|
if(!..())
|
|
return 0
|
|
duration += 100
|
|
|
|
return "[src] will now blind for a longer period of time."
|
|
|
|
/spell/targeted/genetic/mutate
|
|
name = "Mutate"
|
|
desc = "This spell causes you to turn into a hulk and gain laser vision for a short while."
|
|
feedback = "MU"
|
|
school = "transmutation"
|
|
charge_max = 400
|
|
spell_flags = Z2NOCAST | NEEDSCLOTHES | INCLUDEUSER
|
|
invocation = "BIRUZ BENNAR"
|
|
invocation_type = SpI_SHOUT
|
|
message = "<span class='notice'>You feel strong! You feel a pressure building behind your eyes!</span>"
|
|
range = 0
|
|
max_targets = 1
|
|
cast_sound = 'sound/magic/Mutate.ogg'
|
|
|
|
mutations = list(LASER, HULK)
|
|
duration = 300
|
|
|
|
level_max = list(Sp_TOTAL = 1, Sp_SPEED = 1, Sp_POWER = 0)
|
|
cooldown_min = 300
|
|
|
|
hud_state = "wiz_hulk"
|