diff --git a/GainStation13/code/datums/mood_events/needs_events.dm b/GainStation13/code/datums/mood_events/needs_events.dm new file mode 100644 index 0000000000..880b45f95f --- /dev/null +++ b/GainStation13/code/datums/mood_events/needs_events.dm @@ -0,0 +1,7 @@ +/datum/mood_event/fat_bad + description = "I'm so fat...\n" + mood_change = -4 + +/datum/mood_event/fat_good + description = "I'm so fat!\n" + mood_change = 4 diff --git a/code/datums/components/mood.dm b/code/datums/components/mood.dm index e28e108677..2a64b54407 100644 --- a/code/datums/components/mood.dm +++ b/code/datums/components/mood.dm @@ -169,6 +169,7 @@ setSanity(sanity+0.4, maximum=SANITY_AMAZING) HandleNutrition(owner) + HandleFatness(owner) //GS13 EDIT /datum/component/mood/proc/setSanity(amount, minimum=SANITY_INSANE, maximum=SANITY_NEUTRAL)//I'm sure bunging this in here will have no negative repercussions. var/mob/living/master = parent @@ -315,6 +316,19 @@ /datum/component/mood/proc/hud_click(datum/source, location, control, params, mob/user) print_mood(user) +//GS13 EDIT START +/datum/component/mood/proc/HandleFatness(mob/living/carbon/L) // GS13 + if(!L) + return FALSE + + switch(L.fatness) + if(FATNESS_LEVEL_FAT to INFINITY) + if(HAS_TRAIT(L, TRAIT_FAT_GOOD)) + add_event(null, "fatness", /datum/mood_event/fat_good) + else if(HAS_TRAIT(L, TRAIT_FAT_BAD)) + add_event(null, "fatness", /datum/mood_event/fat_bad) + +//GS13 EDIT END /datum/component/mood/proc/HandleNutrition(mob/living/L) if(isethereal(L)) diff --git a/tgstation.dme b/tgstation.dme index 146bbc947f..4664a21096 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3924,6 +3924,7 @@ #include "GainStation13\code\datums\diseases\advance\presets.dm" #include "GainStation13\code\datums\diseases\advance\symptoms\berry.dm" #include "GainStation13\code\datums\diseases\advance\symptoms\weight_gain.dm" +#include "GainStation13\code\datums\mood_events\needs_events.dm" #include "GainStation13\code\datums\mutations\fatfang.dm" #include "GainStation13\code\datums\mutations\radfat.dm" #include "GainStation13\code\datums\status_effects\fatstun.dm"