From 506f6b19be1fa715e42a1eb55abce1a74ce0387a Mon Sep 17 00:00:00 2001
From: QuoteFox <49098813+quotefox@users.noreply.github.com>
Date: Mon, 22 Feb 2021 19:12:01 +0000
Subject: [PATCH] Thirst, mood buff for qunching, No longer spawn thirsty, no
longer suicidal if starving and dehydrated alone.
---
code/datums/components/mood.dm | 4 +++-
code/datums/mood_events/needs_events.dm | 12 ++++++++----
code/modules/mob/mob_defines.dm | 2 +-
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/code/datums/components/mood.dm b/code/datums/components/mood.dm
index 21a3c37c..dbce0072 100644
--- a/code/datums/components/mood.dm
+++ b/code/datums/components/mood.dm
@@ -307,7 +307,9 @@
/datum/component/mood/proc/HandleThirst(mob/living/L)
switch(L.thirst)
- if(NUTRITION_LEVEL_HUNGRY to INFINITY)
+ if(NUTRITION_LEVEL_WELL_FED to INFINITY)
+ add_event(null, "thirst", /datum/mood_event/quenched)
+ if(NUTRITION_LEVEL_HUNGRY to NUTRITION_LEVEL_WELL_FED)
clear_event(null, "thirst")
if(NUTRITION_LEVEL_STARVING to NUTRITION_LEVEL_HUNGRY)
add_event(null, "thirst", /datum/mood_event/thirsty)
diff --git a/code/datums/mood_events/needs_events.dm b/code/datums/mood_events/needs_events.dm
index d9564d73..a19b9541 100644
--- a/code/datums/mood_events/needs_events.dm
+++ b/code/datums/mood_events/needs_events.dm
@@ -7,25 +7,29 @@
description = "I'm stuffed!\n"
mood_change = 6
+/datum/mood_event/quenched
+ description = "I'm quenched!\n"
+ mood_change = 6
+
/datum/mood_event/fed
description = "I have recently had some food.\n"
mood_change = 3
/datum/mood_event/hungry
description = "I'm getting a bit hungry.\n"
- mood_change = -8
+ mood_change = -5
/datum/mood_event/starving
description = "I'm starving!\n"
- mood_change = -15
+ mood_change = -10
/datum/mood_event/thirsty
description = "I'm getting a bit thirsty.\n"
- mood_change = -8
+ mood_change = -5
/datum/mood_event/dehydrated
description = "I'm dehydrated!\n"
- mood_change = -15
+ mood_change = -10
//Disgust
/datum/mood_event/gross
diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm
index 9c07bffc..7bd7e76f 100644
--- a/code/modules/mob/mob_defines.dm
+++ b/code/modules/mob/mob_defines.dm
@@ -57,7 +57,7 @@
var/dizziness = 0//Carbon
var/jitteriness = 0//Carbon
var/nutrition = NUTRITION_LEVEL_START_MIN // randomised in Initialize
- var/thirst = NUTRITION_LEVEL_START_MIN // randomised in Initialize
+ var/thirst = 300
var/satiety = 0//Carbon
var/overeatduration = 0 // How long this guy is overeating //Carbon