Files
Bubberstation/code/modules/admin/smites/rod.dm
Celotajs 190d0a0384 Replace alert usage with tgui_alert (#58419)
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?
2021-05-20 22:43:27 +12: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)