mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 00:21:52 +00:00
* 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>
18 lines
684 B
Plaintext
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)
|