Sanity is now capped. (#45410)
This commit is contained in:
@@ -139,6 +139,7 @@
|
||||
#define MOOD_LEVEL_SAD4 -20
|
||||
|
||||
//Sanity levels for humans
|
||||
#define SANITY_MAXIMUM 150
|
||||
#define SANITY_GREAT 125
|
||||
#define SANITY_NEUTRAL 100
|
||||
#define SANITY_DISTURBED 75
|
||||
|
||||
@@ -190,9 +190,9 @@
|
||||
if(7)
|
||||
setSanity(sanity+0.3, maximum=INFINITY)
|
||||
if(8)
|
||||
setSanity(sanity+0.4, maximum=INFINITY)
|
||||
setSanity(sanity+0.4, maximum=SANITY_MAXIMUM)
|
||||
if(9)
|
||||
setSanity(sanity+0.6, maximum=INFINITY)
|
||||
setSanity(sanity+0.6, maximum=SANITY_MAXIMUM)
|
||||
|
||||
HandleNutrition(owner)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user