mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Start of TG Click Code Port (#12071)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c3efdda013
commit
f7de0bb70b
@@ -116,7 +116,7 @@
|
||||
else
|
||||
toggle(user)
|
||||
|
||||
/obj/structure/closet/secure_closet/AltClick()
|
||||
/obj/structure/closet/secure_closet/click_alt()
|
||||
..()
|
||||
verb_togglelock()
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
if(health <= 0)
|
||||
puncture()
|
||||
|
||||
/obj/structure/inflatable/CtrlClick()
|
||||
/obj/structure/inflatable/click_ctrl()
|
||||
hand_deflate()
|
||||
|
||||
/obj/item/inflatable/proc/inflate(var/mob/user,var/location)
|
||||
|
||||
@@ -190,7 +190,7 @@ GLOBAL_LIST_BOILERPLATE(all_janitorial_carts, /obj/structure/janitorialcart)
|
||||
//New Altclick functionality!
|
||||
//Altclick the cart with a mop to stow the mop away
|
||||
//Altclick the cart with a reagent container to pour things into the bucket without putting the bottle in trash
|
||||
/obj/structure/janitorialcart/AltClick(mob/living/user)
|
||||
/obj/structure/janitorialcart/click_alt(mob/living/user)
|
||||
if(user.incapacitated() || !Adjacent(user)) return
|
||||
var/obj/I = user.get_active_hand()
|
||||
if(istype(I, /obj/item/mop))
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
setAngle(SIMPLIFY_DEGREES(new_angle))
|
||||
return TRUE
|
||||
|
||||
/obj/structure/reflector/AltClick(mob/user)
|
||||
/obj/structure/reflector/click_alt(mob/user)
|
||||
if(!CanUseTopic(user))
|
||||
return
|
||||
else if(finished)
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
return TryToSwitchState(user)
|
||||
|
||||
/* // CHOMPEDIT: disabling becaue alt-clicking to view a turf is pretty important.
|
||||
/obj/structure/simple_door/AltClick(mob/user as mob)
|
||||
/obj/structure/simple_door/click_alt(mob/user as mob)
|
||||
. = ..()
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
if(!Adjacent(user))
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
user_unbuckle_mob(A, user)
|
||||
return
|
||||
|
||||
/obj/structure/bed/chair/wheelchair/CtrlClick(var/mob/user)
|
||||
/obj/structure/bed/chair/wheelchair/click_ctrl(mob/user)
|
||||
if(in_range(src, user))
|
||||
if(!ishuman(user)) return
|
||||
if(has_buckled_mobs() && (user in buckled_mobs))
|
||||
|
||||
Reference in New Issue
Block a user