Renames COOLDOWN_CHECK, fixes some uses (#51763)

This commit is contained in:
LemonInTheDark
2020-06-23 00:57:20 +08:00
committed by GitHub
parent c89d7b188d
commit 48ca78ff94
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -537,7 +537,7 @@
if(!isturf(owner.loc)) //Don't let the player use this to escape mechs/welded closets.
to_chat(owner, "<span class='warning'>You need more space to activate this implant!</span>")
return
if(COOLDOWN_CHECK(src, box_cooldown))
if(!COOLDOWN_FINISHED(src, box_cooldown))
return
COOLDOWN_START(src, box_cooldown, 10 SECONDS)
var/box = new boxtype(owner.drop_location())
+1 -1
View File
@@ -51,7 +51,7 @@
damage *= 0.75
if(!COOLDOWN_CHECK(src, caltrop_cooldown))
if(COOLDOWN_FINISHED(src, caltrop_cooldown))
COOLDOWN_START(src, caltrop_cooldown, 1 SECONDS) //cooldown to avoid message spam.
var/atom/A = parent
if(!H.incapacitated(ignore_restraints = TRUE))