This commit is contained in:
silicons
2020-07-18 18:51:16 -07:00
parent 1a040dd2a6
commit b1ccccb322
8 changed files with 13 additions and 22 deletions
+3
View File
@@ -30,6 +30,9 @@
var/move_delay = 0
var/area = null
/// Last time we Click()ed. No clicking twice in one tick!
var/last_click = 0
///////////////
//SOUND STUFF//
///////////////
+3
View File
@@ -772,6 +772,9 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
ip_intel = res.intel
/client/Click(atom/object, atom/location, control, params, ignore_spam = FALSE)
if(last_click > world.time - world.tick_lag)
return
last_click = world.time
var/ab = FALSE
var/list/L = params2list(params)
if (object && object == middragatom && L["left"])
-3
View File
@@ -8,9 +8,6 @@
/mob
// CLICKDELAY AND RELATED
/// Last time we clicked. No clicking twice in one tick, please! This should be directly set and checked.
var/last_click = 0
/// Generic clickdelay variable. Marks down the last world.time we did something that should cause or impact generic clickdelay. This should be directly set or set using [DelayNextAction()]. This should only be checked using [CheckActionCooldown()].
var/last_action = 0
/// Generic clickdelay variable. Next world.time we should be able to do something that respects generic clickdelay. This should be set using [DelayNextAction()] This should only be checked using [CheckActionCooldown()].