From 32eab2257b8ff4c8f06468ac75e3e346ec728d05 Mon Sep 17 00:00:00 2001 From: Octus <62493359+OctusGit@users.noreply.github.com> Date: Mon, 27 Mar 2023 14:18:12 -0500 Subject: [PATCH] Functional cult structures have a cooldown upon creation (#20643) * Update cult_structures.dm * like this? * OORAH * ruh oh raggy * Update code/game/gamemodes/cult/cult_structures.dm Co-authored-by: Adri <33333517+Miraviel@users.noreply.github.com> --------- Co-authored-by: Adri <33333517+Miraviel@users.noreply.github.com> --- code/game/gamemodes/cult/cult_structures.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm index b848f3b8fc2..477d68cb22a 100644 --- a/code/game/gamemodes/cult/cult_structures.dm +++ b/code/game/gamemodes/cult/cult_structures.dm @@ -1,3 +1,6 @@ +/// The amount of time necessary for a structure to be able to produce items after being built +#define CULT_STRUCTURE_COOLDOWN 60 SECONDS + /obj/structure/cult density = TRUE anchored = TRUE @@ -155,6 +158,7 @@ /obj/structure/cult/functional/altar/Initialize(mapload) . = ..() icon_state = SSticker.cultdat?.altar_icon_state + cooldowntime = world.time + CULT_STRUCTURE_COOLDOWN /obj/structure/cult/functional/forge name = "daemon forge" @@ -346,3 +350,5 @@ GLOBAL_LIST_INIT(blacklisted_pylon_turfs, typecacheof(list( /obj/effect/gateway/Crossed(atom/movable/AM, oldloc) return + +#undef CULT_STRUCTURE_COOLDOWN