From 5894cf210713ca73f8aab9c6bf92d1975251d9fa Mon Sep 17 00:00:00 2001 From: Danny Kay Date: Sun, 18 Aug 2024 12:53:32 -0700 Subject: [PATCH 1/2] chud: dischuddle latechud chudue chund forchud everychud tchud chawn chus chudstomer. also disables the potluck, cus it doesnt exist --- code/controllers/subsystem/job.dm | 2 ++ code/modules/holiday/party_time.dm | 4 ++++ code/modules/mob/dead/new_player/new_player.dm | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystem/job.dm b/code/controllers/subsystem/job.dm index 077f23d1e6..16de064a12 100644 --- a/code/controllers/subsystem/job.dm +++ b/code/controllers/subsystem/job.dm @@ -19,6 +19,8 @@ SUBSYSTEM_DEF(job) var/list/level_order = list(JP_HIGH,JP_MEDIUM,JP_LOW) + var/force_customer = TRUE + /datum/controller/subsystem/job/Initialize(timeofday) SSmapping.HACK_LoadMapConfig() if(!occupations.len) diff --git a/code/modules/holiday/party_time.dm b/code/modules/holiday/party_time.dm index 7f851a45df..369da345b1 100644 --- a/code/modules/holiday/party_time.dm +++ b/code/modules/holiday/party_time.dm @@ -6,8 +6,11 @@ /datum/holiday/weekly /// Which day(s) of the week this holiday is celebrated on var/list/weekdays = list() + var/enabled = TRUE /datum/holiday/weekly/shouldCelebrate(dd, mm, yy, ww, ddd) + if(!enabled) + return FALSE var/adjustedDDD = time2text(world.realtime, "DDD", -6) //Fenny doesn't wanna use UTC, but instead Central Standard Time return (adjustedDDD in weekdays) // ez @@ -23,6 +26,7 @@ var/sparkling var/pizza_time = 5 MINUTES var/pillar_johned + enabled = FALSE /datum/holiday/weekly/potluck/celebrate() . = ..() diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm index 1eac123b15..ccccd43d89 100644 --- a/code/modules/mob/dead/new_player/new_player.dm +++ b/code/modules/mob/dead/new_player/new_player.dm @@ -68,7 +68,10 @@ output += "

(Fit Viewport)

" else // output += "

View Character Directory

" - output += "

Join in!

" + if(SSjob.force_customer) + output += "

Join in!

" + else + output += "

Join in!

" //output += "

[LINKIFY_READY("Observe", PLAYER_READY_TO_OBSERVE)]

" output += "

(Fix Chat Window)

" output += "

(Fit Viewport)

" From 61b7fa5c65409bf344f86349f7212d2be5181aa8 Mon Sep 17 00:00:00 2001 From: Danny Kay Date: Sun, 18 Aug 2024 13:06:57 -0700 Subject: [PATCH 2/2] chore: Fix conditional check for negativwe sanity in medicine_reagents.dm --- code/modules/reagents/chemistry/reagents/medicine_reagents.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm index b63b60f4c6..64f73bc31c 100644 --- a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm @@ -1662,7 +1662,7 @@ M.confused = max(0, M.confused-6*REM) M.disgust = max(0, M.disgust-6*REM) var/datum/component/mood/mood = M.GetComponent(/datum/component/mood) - if(mood.sanity <= SANITY_NEUTRAL) // only take effect if in negative sanity and then... + if(mood && mood.sanity <= SANITY_NEUTRAL) // only take effect if in negative sanity and then... mood.setSanity(min((mood.sanity+5)*REM, SANITY_NEUTRAL)) // set minimum to prevent unwanted spiking over neutral ..() . = 1