Merge pull request #14291 from VOREStation/upstream-merge-8867

[MIRROR] fixes augment implants so you can't spam the fuck out of them
This commit is contained in:
Heroman3003
2023-01-03 16:53:55 +10:00
committed by GitHub
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -28,7 +28,7 @@
var/radial_state = null // Icon state for the augment's radial icon.
var/aug_cooldown = 30 SECONDS
var/last_activate = null
var/cooldown = null
/obj/item/organ/internal/augment/Initialize()
. = ..()
@@ -59,8 +59,8 @@
return
if(aug_cooldown)
if(last_activate <= world.time + aug_cooldown)
last_activate = world.time
if(cooldown <= world.time)
cooldown = world.time + aug_cooldown
else
return
@@ -135,8 +135,8 @@
return
if(aug_cooldown)
if(last_activate <= world.time + aug_cooldown)
last_activate = world.time
if(cooldown <= world.time)
cooldown = world.time + aug_cooldown
else
return
+2 -2
View File
@@ -93,8 +93,8 @@
return
if(aug_cooldown)
if(last_activate <= world.time + aug_cooldown)
last_activate = world.time
if(cooldown <= world.time)
cooldown = world.time + aug_cooldown
else
return