Replaces the mood component with a mood datum (#68592)

About The Pull Request

Mood was abusing signals and get component pretty badly, so I redid it as a datum to stop this.
Why It's Good For The CODEBASE

Better code pratices, also gives admins easier tools to manage mood
Changelog

cl
admin: Added two new procs into the VV dropdown menu to add and remove mood events from living mobs.
/cl
This commit is contained in:
Seth Scherer
2022-08-12 08:59:20 +12:00
committed by GitHub
parent 92dc954ab5
commit 34b4034777
121 changed files with 968 additions and 858 deletions
+3 -3
View File
@@ -107,15 +107,15 @@
if(victim_mood != MOODLESS_MEMORY) //How the victim felt when it all happend.
switch(victim_mood)
if(MOOD_LEVEL_SAD4 to MOOD_LEVEL_SAD2)
if(MOOD_SAD4 to MOOD_SAD2)
story_moods = strings(MEMORY_FILE, "sad")
if("[action]_sad" in GLOB.string_cache[MEMORY_FILE])
story_moods += strings(MEMORY_FILE, "[action]_sad")
if(MOOD_LEVEL_SAD2 to MOOD_LEVEL_HAPPY2)
if(MOOD_SAD2 to MOOD_HAPPY2)
story_moods = strings(MEMORY_FILE, "neutral")
if("[action]_neutral" in GLOB.string_cache[MEMORY_FILE])
story_moods += strings(MEMORY_FILE, "[action]_neutral")
if(MOOD_LEVEL_HAPPY2 to MOOD_LEVEL_HAPPY4)
if(MOOD_HAPPY2 to MOOD_HAPPY4)
story_moods = strings(MEMORY_FILE, "happy")
if("[action]_happy" in GLOB.string_cache[MEMORY_FILE])
story_moods += strings(MEMORY_FILE, "[action]_happy")