mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-21 07:42:21 +00:00
* makes rod form not work while jaunting
* Revert "makes rod form not work while jaunting"
This reverts commit fb1be0f482.
* prevents eternal rod form
* hal9000 review
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
/obj/effect/proc_holder/spell/rod_form
|
|
name = "Rod Form"
|
|
desc = "Take on the form of an immovable rod, destroying all in your path."
|
|
clothes_req = TRUE
|
|
human_req = FALSE
|
|
base_cooldown = 600
|
|
cooldown_min = 200
|
|
invocation = "CLANG!"
|
|
invocation_type = "shout"
|
|
action_icon_state = "immrod"
|
|
centcom_cancast = FALSE
|
|
|
|
sound = 'sound/effects/whoosh.ogg'
|
|
var/rod_delay = 2
|
|
|
|
/obj/effect/proc_holder/spell/rod_form/create_new_targeting()
|
|
return new /datum/spell_targeting/self
|
|
|
|
/obj/effect/proc_holder/spell/rod_form/cast(list/targets,mob/user = usr)
|
|
if(get_turf(user) != user.loc)
|
|
to_chat(user, "<span class='warning'>You cannot summon a rod in the ether, the spell fizzles out!</span>")
|
|
revert_cast()
|
|
return FALSE
|
|
for(var/mob/living/M in targets)
|
|
var/turf/start = get_turf(M)
|
|
var/obj/effect/immovablerod/wizard/W = new(start, get_ranged_target_turf(M, M.dir, (15 + spell_level * 3)), rod_delay)
|
|
W.wizard = M
|
|
W.max_distance += spell_level * 3 //You travel farther when you upgrade the spell
|
|
W.start_turf = start
|
|
M.forceMove(W)
|
|
M.notransform = TRUE
|
|
M.status_flags |= GODMODE
|
|
|
|
//Wizard Version of the Immovable Rod
|
|
|
|
/obj/effect/immovablerod/wizard
|
|
var/max_distance = 13
|
|
var/mob/living/wizard
|
|
var/turf/start_turf
|
|
notify = FALSE
|
|
|
|
/obj/effect/immovablerod/wizard/Move()
|
|
if(get_dist(start_turf, get_turf(src)) >= max_distance)
|
|
qdel(src)
|
|
..()
|
|
|
|
/obj/effect/immovablerod/wizard/Destroy()
|
|
if(wizard)
|
|
wizard.status_flags &= ~GODMODE
|
|
wizard.notransform = FALSE
|
|
wizard.forceMove(get_turf(src))
|
|
return ..()
|