From 866220aefb156368849ef79ee86029dddef067d1 Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Sun, 13 Dec 2020 02:33:57 +0000 Subject: [PATCH] better cooldown --- code/__HELPERS/custom_holoforms.dm | 3 +++ code/modules/mob/living/silicon/custom_holoform.dm | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/__HELPERS/custom_holoforms.dm b/code/__HELPERS/custom_holoforms.dm index 08413b1614..34b31cc1c7 100644 --- a/code/__HELPERS/custom_holoforms.dm +++ b/code/__HELPERS/custom_holoforms.dm @@ -62,6 +62,9 @@ characters[name] = i var/chosen_name = input(C, "Which character do you wish to use as your appearance.") as anything in characters if(chosen_name) + if(C.prefs.last_custom_holoform > world.time - CUSTOM_HOLOFORM_DELAY) + to_chat(C.mob, "You are attempting to set your custom holoform too fast!") + return target_prefs = new(C) if(!target_prefs.load_character(characters[chosen_name], TRUE)) target_prefs = C.prefs diff --git a/code/modules/mob/living/silicon/custom_holoform.dm b/code/modules/mob/living/silicon/custom_holoform.dm index 0e0af7e308..38cb4b7b2a 100644 --- a/code/modules/mob/living/silicon/custom_holoform.dm +++ b/code/modules/mob/living/silicon/custom_holoform.dm @@ -2,9 +2,6 @@ if(!client.prefs) to_chat(src, "No preferences datum on your client, contact an admin/coder!") return - if(client.prefs.last_custom_holoform > world.time - CUSTOM_HOLOFORM_DELAY) - to_chat(src, "You are attempting to change custom holoforms too fast!") - return client.prefs.last_custom_holoform = world.time var/icon/new_holoform = user_interface_custom_holoform(client) if(new_holoform)