mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-04 22:11:27 +00:00
Pretty much every alert() call is replaced with tgui_alert, except one I replaced with tgalert as a fallback. If tgui_alert exists, why not use it?
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)
|