Goonstation 13 - Modules - TypesDefine Details

_std/macros/cooldown.dm

ON_COOLDOWN
GET_COOLDOWNlike ON_COOLDOWN but only gets the cooldown, doesn't refresh it
OVERRIDE_COOLDOWNoverrides cooldown to this value
EXTEND_COOLDOWNoverrides cooldown to the maximum of the current cooldown and this value

Define Details

EXTEND_COOLDOWN

overrides cooldown to the maximum of the current cooldown and this value

GET_COOLDOWN

like ON_COOLDOWN but only gets the cooldown, doesn't refresh it

ON_COOLDOWN

Simple Cooldown System

Easy way to set cooldowns on an object.

Arguments:

Usage:

   if(!ON_COOLDOWN(global, "butt_talker", src.butt_cooldown))
   	speak(pick("butts", "butt"))

OVERRIDE_COOLDOWN

overrides cooldown to this value