click fixes (#18987)

right click fixes
This commit is contained in:
Cameron Lennox
2026-01-05 14:17:44 -05:00
committed by GitHub
parent c6c07dd5ef
commit 233b582c74
4 changed files with 31 additions and 18 deletions
+3
View File
@@ -149,6 +149,9 @@
if(.)
return TRUE
var/turf/T = get_turf(user)
if(!T)
to_chat(user, span_warning("You must be standing on solid ground to deploy an extraction beacon!"))
return
if(do_after(user, 1.5 SECONDS, target = user) && !QDELETED(src))
new /obj/structure/extraction_point(get_turf(user))
qdel(src)
+16 -12
View File
@@ -153,23 +153,27 @@
set category = "Object"
set src = usr
if(ismecha(loc))
return
if(INCAPACITATED_IGNORING(src, INCAPABLE_GRAB))
return
if(stat || paralysis || stunned)
return
if(restrained())
return
if(!checkClickCooldown())
return
setClickCooldown(1)
if(istype(loc,/obj/mecha)) return
if(hand)
var/obj/item/W = l_hand
if (W)
W.attack_self(src)
update_inv_l_hand()
else
var/obj/item/W = r_hand
if (W)
W.attack_self(src)
update_inv_r_hand()
var/obj/item/inhand = get_active_hand()
if(inhand)
inhand.attack_self(src)
update_inv_active_hand()
return
/mob/living/abiotic(var/full_body = 0)