From 147f148c789a274c0294dc4484aadaf69cb9d744 Mon Sep 17 00:00:00 2001 From: Blue Wildrose Date: Fri, 25 Dec 2020 19:05:13 -0700 Subject: [PATCH] Nyctophobia quirk: Effect now triggers in 0.2 seconds instead of instantly --- code/datums/traits/negative.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/datums/traits/negative.dm b/code/datums/traits/negative.dm index fe27cc2baf..0cae5222bf 100644 --- a/code/datums/traits/negative.dm +++ b/code/datums/traits/negative.dm @@ -137,8 +137,12 @@ GLOBAL_LIST_EMPTY(family_heirlooms) var/lums = T.get_lumcount() if(lums <= 0.2) if(quirk_holder.m_intent == MOVE_INTENT_RUN) - to_chat(quirk_holder, "Easy, easy, take it slow... you're in the dark...") - quirk_holder.toggle_move_intent() + sleep(2) //0.2 seconds of being in the dark + T = get_turf(quirk_holder) + lums = T.get_lumcount() + if(lums <= 0.2) //check again + to_chat(quirk_holder, "Easy, easy, take it slow... you're in the dark...") + quirk_holder.toggle_move_intent() SEND_SIGNAL(quirk_holder, COMSIG_ADD_MOOD_EVENT, "nyctophobia", /datum/mood_event/nyctophobia) else SEND_SIGNAL(quirk_holder, COMSIG_CLEAR_MOOD_EVENT, "nyctophobia")