Removed snoflek

Removed snoflek
This commit is contained in:
Razharas
2016-05-04 19:20:22 +03:00
parent 39f0cfa4c5
commit 445b689a1d
+15 -6
View File
@@ -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