mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-14 00:22:21 +01:00
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
/datum/targetable/spell/mutate
|
|
name = "Empower"
|
|
desc = "Temporarily superpowers your body and mind."
|
|
icon_state = "mutate"
|
|
targeted = 0
|
|
cooldown = 400
|
|
requires_robes = 1
|
|
offensive = 1
|
|
voice_grim = "sound/voice/wizard/MutateGrim.ogg"
|
|
voice_fem = "sound/voice/wizard/MutateFem.ogg"
|
|
voice_other = "sound/voice/wizard/MutateLoud.ogg"
|
|
|
|
cast()
|
|
if(!holder)
|
|
return
|
|
holder.owner.say("BIRUZ BENNAR")
|
|
..()
|
|
|
|
boutput(holder.owner, "<span style=\"color:blue\">Your mind and muscles are magically empowered!</span>")
|
|
holder.owner.visible_message("<span style=\"color:red\">[holder.owner] glows with a POWERFUL aura!</span>")
|
|
|
|
if (!holder.owner.bioHolder.HasEffect("hulk"))
|
|
holder.owner.bioHolder.AddEffect("hulk", 0, 0, 1)
|
|
if (!holder.owner.bioHolder.HasEffect("telekinesis") && holder.owner.wizard_spellpower())
|
|
holder.owner.bioHolder.AddEffect("telekinesis", 0, 0, 1)
|
|
var/SPtime = 150
|
|
if (holder.owner.wizard_spellpower())
|
|
SPtime = 300
|
|
else
|
|
boutput(holder.owner, "<span style=\"color:red\">Your spell doesn't last as long without a staff to focus it!</span>")
|
|
SPAWN_DBG (SPtime)
|
|
if (holder.owner.bioHolder.HasEffect("telekinesis"))
|
|
holder.owner.bioHolder.RemoveEffect("telekinesis")
|
|
if (holder.owner.bioHolder.HasEffect("hulk"))
|
|
holder.owner.bioHolder.RemoveEffect("hulk")
|