mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-15 17:12:21 +01:00
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
/datum/targetable/spell/animatedead
|
|
name = "Animate Dead"
|
|
desc = "Turns a human corpse into a skeletal minion."
|
|
icon_state = "pet"
|
|
targeted = 1
|
|
max_range = 1
|
|
cooldown = 850
|
|
requires_robes = 1
|
|
offensive = 1
|
|
cooldown_staff = 1
|
|
sticky = 1
|
|
voice_grim = "sound/voice/wizard/AnimateDeadGrim.ogg"
|
|
voice_fem = "sound/voice/wizard/AnimateDeadFem.ogg"
|
|
voice_other = "sound/voice/wizard/AnimateDeadLoud.ogg"
|
|
|
|
cast(mob/target)
|
|
if(!holder)
|
|
return
|
|
if(!isdead(target))
|
|
boutput(holder.owner, "<span style=\"color:red\">That person is still alive! Find a corpse.</span>")
|
|
return 1 // No cooldown when it fails.
|
|
|
|
holder.owner.say("EI NECRIS")
|
|
..()
|
|
|
|
var/obj/critter/magiczombie/UMMACTUALLYITSASKELETONNOWFUCKZOMBIESFOREVER = new /obj/critter/magiczombie(get_turf(target)) // what the fuck
|
|
UMMACTUALLYITSASKELETONNOWFUCKZOMBIESFOREVER.CustomizeMagZom(target.real_name, ismonkey(target))
|
|
|
|
boutput(holder.owner, "<span style=\"color:blue\">You saturate [target] with dark magic!</span>")
|
|
holder.owner.visible_message("<span style=\"color:red\">[holder.owner] rips the skeleton from [target]'s corpse!</span>")
|
|
|
|
for(var/obj/item/I in target)
|
|
if(isitem(target))
|
|
target.u_equip(I)
|
|
if(I)
|
|
I.set_loc(target.loc)
|
|
I.dropped(target)
|
|
target.gib(1)
|