sanity fix

This commit is contained in:
Mickyan
2020-01-30 19:43:02 +01:00
parent 81230c00e3
commit 54edfc27cd
+3 -3
View File
@@ -185,13 +185,13 @@
if(7)
setSanity(sanity+0.3, SANITY_UNSTABLE)
if(8)
setSanity(sanity+0.4, SANITY_NEUTRAL, SANITY_MAXIMUM)
setSanity(sanity+0.4, SANITY_NEUTRAL)
if(9)
setSanity(sanity+0.6, SANITY_NEUTRAL, SANITY_MAXIMUM)
setSanity(sanity+0.6, SANITY_NEUTRAL)
HandleNutrition()
///Sets sanity to the specified amount and applies effects.
/datum/component/mood/proc/setSanity(amount, minimum=SANITY_INSANE, maximum=SANITY_GREAT, override = FALSE)
/datum/component/mood/proc/setSanity(amount, minimum=SANITY_INSANE, maximum=SANITY_MAXIMUM, override = FALSE)
// If we're out of the acceptable minimum-maximum range move back towards it in steps of 0.5
// If the new amount would move towards the acceptable range faster then use it instead
if(amount < minimum)