Files
Bubberstation/code/modules/admin/smites/rod.dm
SkyratBot ea9aed5554 [MIRROR] Replace alert usage with tgui_alert (#5815)
* Replace alert usage with tgui_alert

* a

* Update observer.dm

Co-authored-by: Celotajs <81999976+celotajstg@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-05-21 00:06:09 +01:00

18 lines
684 B
Plaintext

/// Throw an immovable rod at the target
/datum/smite/rod
name = "Immovable Rod"
var/force_looping = FALSE
/datum/smite/rod/configure(client/user)
var/loop_input = tgui_alert(usr,"Would you like this rod to force-loop across space z-levels?", "Loopy McLoopface", list("Yes", "No"))
force_looping = (loop_input == "Yes")
/datum/smite/rod/effect(client/user, mob/living/target)
. = ..()
var/turf/target_turf = get_turf(target)
var/startside = pick(GLOB.cardinals)
var/turf/start_turf = spaceDebrisStartLoc(startside, target_turf.z)
var/turf/end_turf = spaceDebrisFinishLoc(startside, target_turf.z)
new /obj/effect/immovablerod(start_turf, end_turf, target, force_looping)