Merge pull request #8867 from Seris02/augmentfix

fixes augment implants so you can't spam the fuck out of them
This commit is contained in:
Atermonera
2023-01-02 16:06:55 -08:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

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

View File

@@ -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

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