mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-20 20:37:45 +01:00
bug fix mood.
This commit is contained in:
@@ -91,6 +91,12 @@
|
||||
mood += event.mood_change
|
||||
if(!event.hidden)
|
||||
shown_mood += event.mood_change
|
||||
var/mob/living/owner = parent
|
||||
if(event.mood_change < 0)
|
||||
to_chat(owner, "<span class='warning'>Your mood decreases...<span>")
|
||||
else
|
||||
to_chat(owner, "<span class='nicegreen'>Your mood increases!<span>")
|
||||
|
||||
mood *= mood_modifier
|
||||
shown_mood *= mood_modifier
|
||||
|
||||
@@ -216,8 +222,6 @@
|
||||
insanity_effect = newval
|
||||
|
||||
/datum/component/mood/proc/DecreaseSanity(datum/source, amount, minimum = SANITY_INSANE)
|
||||
var/mob/living/owner = parent
|
||||
to_chat(owner, "<span class='boldwarning'>Your mood decreases.<span>")
|
||||
if(sanity < minimum) //This might make KevinZ stop fucking pinging me.
|
||||
IncreaseSanity(src, 0.5)
|
||||
else
|
||||
@@ -231,7 +235,6 @@
|
||||
/datum/component/mood/proc/IncreaseSanity(datum/source, amount, maximum = SANITY_NEUTRAL)
|
||||
// Disturbed stops you from getting any more sane - I'm just gonna bung this in here
|
||||
var/mob/living/owner = parent
|
||||
to_chat(owner, "<span class='nicegreen'>Your mood increases.<span>")
|
||||
if(HAS_TRAIT(owner, TRAIT_UNSTABLE))
|
||||
return
|
||||
if(sanity > maximum)
|
||||
|
||||
Reference in New Issue
Block a user