🔦 Use COOLDOWN defines for paramedic penlights

Uses the new COOLDOWN_ defines for the penlight's cooldown, which
functions exactly the same as the `world.time` code, but is slightly
cleaner and less prone to mistakes.
This commit is contained in:
Jack Edge
2020-06-23 12:56:34 +01:00
parent 0b45f5903c
commit 41a8b8490c
2 changed files with 3 additions and 3 deletions
@@ -188,7 +188,7 @@
desc = "A high-powered UV penlight intended to help stave off infection in the field on serious burned patients. Probably really bad to look into."
icon_state = "penlight_surgical"
/// Our current UV cooldown
var/uv_cooldown = 0
COOLDOWN_DECLARE(uv_cooldown)
/// How long between UV fryings
var/uv_cooldown_length = 1 MINUTES
/// How much sanitization to apply to the burn wound