mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Removed snoflek
Removed snoflek
This commit is contained in:
@@ -12,15 +12,15 @@
|
||||
/client/MouseUp(object, location, control, params)
|
||||
selected_target = null
|
||||
|
||||
/client/MouseDrag(src_object,over_object,src_location,over_location,src_control,over_control,params)
|
||||
if(selected_target && !istype(over_object, /obj/screen))
|
||||
/client/MouseDrag(src_object,atom/over_object,src_location,over_location,src_control,over_control,params)
|
||||
if(selected_target && over_object.IsAutoclickable())
|
||||
selected_target = over_object
|
||||
|
||||
/mob/proc/CanMobAutoclick(object, location, params)
|
||||
|
||||
/mob/living/CanMobAutoclick(object, location, params)
|
||||
if(istype(object, /obj/screen))
|
||||
return 0
|
||||
/mob/living/carbon/CanMobAutoclick(atom/object, location, params)
|
||||
if(!object.IsAutoclickable())
|
||||
return
|
||||
var/obj/item/h = get_active_hand()
|
||||
if(h)
|
||||
. = h.CanItemAutoclick(object, location, params)
|
||||
@@ -31,4 +31,13 @@
|
||||
var/automatic = 0 //can gun use it, 0 is no, anything above 0 is the delay between clicks in ds
|
||||
|
||||
/obj/item/weapon/gun/CanItemAutoclick(object, location, params)
|
||||
. = automatic
|
||||
. = automatic
|
||||
|
||||
/atom/proc/IsAutoclickable()
|
||||
. = 1
|
||||
|
||||
/obj/screen/IsAutoclickable()
|
||||
. = 0
|
||||
|
||||
/obj/screen/click_catcher/IsAutoclickable()
|
||||
. = 1
|
||||
Reference in New Issue
Block a user