Makes the Advanced Pinpointer easier to use (#19782)

* alt-click

* dead be gone
This commit is contained in:
Contrabang
2022-11-27 17:17:50 -05:00
committed by GitHub
parent 793f89569b
commit c00a6e8664
+7 -1
View File
@@ -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 \
<span class='notice'>Alt-click to toggle mode.</span>"
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"