mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Adds more admin memery and deadchat_control options to immovable rods. (#56888)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
/// 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 = alert("Would you like this rod to force-loop across space z-levels?", "Loopy McLoopface", "Yes", "No")
|
||||
|
||||
force_looping = (loop_input == "Yes")
|
||||
|
||||
/datum/smite/rod/effect(client/user, mob/living/target)
|
||||
. = ..()
|
||||
@@ -8,4 +14,4 @@
|
||||
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)
|
||||
new /obj/effect/immovablerod(start_turf, end_turf, target, force_looping)
|
||||
|
||||
Reference in New Issue
Block a user