From c00a6e8664c39c38dec83267cd94b2c5a7b2e565 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Sun, 27 Nov 2022 17:17:50 -0500 Subject: [PATCH] Makes the Advanced Pinpointer easier to use (#19782) * alt-click * dead be gone --- code/game/gamemodes/nuclear/pinpointer.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm index 71835240aab..46292865889 100644 --- a/code/game/gamemodes/nuclear/pinpointer.dm +++ b/code/game/gamemodes/nuclear/pinpointer.dm @@ -149,7 +149,8 @@ /obj/item/pinpointer/advpinpointer name = "advanced pinpointer" - desc = "A larger version of the normal pinpointer, this unit features a helpful quantum entanglement detection system to locate various objects that do not broadcast a locator signal." + desc = "A larger version of the normal pinpointer, this unit features a helpful quantum entanglement detection system to locate various objects that do not broadcast a locator signal. \n \ + Alt-click to toggle mode." modes = list(MODE_ADV) var/modelocked = FALSE // If true, user cannot change mode. var/turf/location = null @@ -169,6 +170,11 @@ scandisk() point_at_target(the_disk) +/obj/item/pinpointer/advpinpointer/AltClick(mob/user) + if(!isliving(user) || !Adjacent(user)) + return ..() + toggle_mode() + /obj/item/pinpointer/advpinpointer/verb/toggle_mode() set category = "Object" set name = "Toggle Pinpointer Mode"