Replaces some ore box, sleeper, and body scanner verbs with click combinations (#20085)

* Replaces some verbs with alt-click and alt-shift-click

* ryan's review
This commit is contained in:
GDN
2023-01-13 09:28:59 -06:00
committed by GitHub
parent 748405409d
commit 9e7d8b23ea
3 changed files with 41 additions and 32 deletions
+12 -14
View File
@@ -78,26 +78,24 @@
O.forceMove(loc)
CHECK_TICK
/obj/structure/ore_box/examine(mob/user)
. = ..()
if(Adjacent(user))
. += "<span class='notice'>You can <b>Alt-Shift-Click</b> to empty the ore box.</span>"
/obj/structure/ore_box/onTransitZ()
return
/obj/structure/ore_box/verb/empty_box()
set name = "Empty Ore Box"
set category = "Object"
set src in view(1)
if(usr.incapacitated())
/obj/structure/ore_box/AltShiftClick(mob/user)
if(!Adjacent(user) || !ishuman(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
to_chat(user, "You cannot interact with the ore box.")
return
if(!Adjacent(usr))
to_chat(usr, "You cannot reach the ore box.")
return
add_fingerprint(user)
add_fingerprint(usr)
if(contents.len < 1)
to_chat(usr, "<span class='warning'>The ore box is empty.</span>")
if(length(contents) < 1)
to_chat(user, "<span class='warning'>The ore box is empty.</span>")
return
dump_box_contents()
to_chat(usr, "<span class='notice'>You empty the ore box.</span>")
to_chat(user, "<span class='notice'>You empty the ore box.</span>")