mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 11:35:19 +01:00
Fix some missed click check stuff
This commit is contained in:
+3
-2
@@ -23,9 +23,10 @@
|
||||
|
||||
|
||||
/mob/living/silicon/ai/ClickOn(var/atom/A, params)
|
||||
if(world.time <= next_click)
|
||||
if(!checkClickCooldown())
|
||||
return
|
||||
next_click = world.time + 1
|
||||
|
||||
setClickCooldown(1)
|
||||
|
||||
if(client.buildmode) // comes after object.Click to allow buildmode gui objects to be clicked
|
||||
build_click(src, client.buildmode, params, A)
|
||||
|
||||
@@ -7,9 +7,10 @@
|
||||
*/
|
||||
|
||||
/mob/living/silicon/robot/ClickOn(var/atom/A, var/params)
|
||||
if(world.time <= next_click)
|
||||
if(!checkClickCooldown())
|
||||
return
|
||||
next_click = world.time + 1
|
||||
|
||||
setClickCooldown(1)
|
||||
|
||||
if(client.buildmode) // comes after object.Click to allow buildmode gui objects to be clicked
|
||||
build_click(src, client.buildmode, params, A)
|
||||
@@ -35,9 +36,6 @@
|
||||
if(stat || lockdown || weakened || stunned || paralysis)
|
||||
return
|
||||
|
||||
if(!checkClickCooldown())
|
||||
return
|
||||
|
||||
face_atom(A) // change direction to face what you clicked on
|
||||
|
||||
if(aiCamera && aiCamera.in_camera_mode)
|
||||
|
||||
@@ -154,10 +154,10 @@
|
||||
set category = "Object"
|
||||
set src = usr
|
||||
|
||||
if(world.time <= next_click) // This isn't really a 'click' but it'll work for our purposes.
|
||||
if(!checkClickCooldown())
|
||||
return
|
||||
|
||||
next_click = world.time + 1
|
||||
|
||||
setClickCooldown(1)
|
||||
|
||||
if(istype(loc,/obj/mecha)) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user