Add fatness mood quirks

Add Fat Affinity and Fat Aversion neutral quirks
Split fat mood_event into fat_good and fat_bad
Apply mood_event based on chosen quirk
If neither quirk is chosen, being fat has no effect on mood
This commit is contained in:
psq95
2023-04-09 18:57:11 +01:00
parent 05837555a4
commit 5b216ab13e
5 changed files with 32 additions and 7 deletions
+4 -3
View File
@@ -197,9 +197,10 @@
#define TRAIT_CUM_PLUS "cum_plus"
#define TRAIT_NEVER_CLONE "donotclone"
#define TRAIT_COLDBLOODED "coldblooded" // Your body is literal room temperature. Does not make you immune to the temp.
#define TRAIT_FLIMSY "flimsy" //you have 20% less maxhealth
#define TRAIT_TRASHCAN "trashcan" //Im the TRASH MAN! (Shamlessly stolen from hyper for local trash eater, flint)
#define TRAIT_FLIMSY "flimsy" //you have 20% less maxhealth
#define TRAIT_TRASHCAN "trashcan" //Im the TRASH MAN! (Shamlessly stolen from hyper for local trash eater, flint)
#define TRAIT_FAT_GOOD "fat_good"
#define TRAIT_FAT_BAD "fat_bad"
//Hyper
#define TRAIT_VIRILE "virile" //you have 20% more chance of impreg
@@ -26,7 +26,8 @@ PROCESSING_SUBSYSTEM_DEF(quirks)
list("Ananas Affinity","Ananas Aversion"),
list("Alcohol Tolerance","Light Drinker"),
list("Social Anxiety","Mute"),
list("Prosthetic Limb (Left Arm)","Prosthetic Limb (Right Arm)","Prosthetic Limb (Left Leg)","Prosthetic Limb (Right Leg)","Prosthetic Limb")
list("Prosthetic Limb (Left Arm)","Prosthetic Limb (Right Arm)","Prosthetic Limb (Left Leg)","Prosthetic Limb (Right Leg)","Prosthetic Limb"),
list("Fat Affinity","Fat Aversion")
)
return ..()
+4 -1
View File
@@ -297,7 +297,10 @@
switch(L.fatness)
if(FATNESS_LEVEL_FAT to INFINITY)
add_event(null, "fatness", /datum/mood_event/fat)
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)
/datum/component/mood/proc/HandleNutrition(mob/living/L)
switch(L.nutrition)
+6 -2
View File
@@ -1,6 +1,10 @@
//nutrition
/datum/mood_event/fat
description = "<span class='warning'><B>I'm so fat...</B></span>\n" //yay for fats!
/datum/mood_event/fat_bad
description = "<span class='warning'><B>I'm so fat...</B></span>\n"
mood_change = -4
/datum/mood_event/fat_good
description = "<span class='nicegreen'><B>I'm so fat!</B></span>\n"
mood_change = 4
/datum/mood_event/wellfed
+16
View File
@@ -207,3 +207,19 @@
if(H)
var/datum/species/species = H.dna.species
species.disliked_food = initial(species.disliked_food)
/datum/quirk/fatness_liker
name = "Fat Affinity"
desc = "You like being fat, alot, maybe even a little bit too much. Being fat gives you a bigger mood boost."
mob_trait = TRAIT_FAT_GOOD
value = 0
category = CATEGORY_MOODS
medical_record_text = "Patient seems overly content with gaining weight."
/datum/quirk/fatness_hater
name = "Fat Aversion"
desc = "You dislike being fat. Being fat brings your mood down, alot."
mob_trait = TRAIT_FAT_BAD
value = 0
category = CATEGORY_MOODS
medical_record_text = "Patient seems distressed by gaining weight."