Hey guys !
Just a quick thing I made for personal use but thought might be of interest to some of you :
It is a (very) small mod to help relieve the huge amount of stress befalling dwarves since a couple patches.
What it does is use a syndrome to apply a personality change, reducing stress vulnerability.
First, add the following in your raw/objects/material_template_default.txt : [MATERIAL_TEMPLATE:SSRI_TEMPLATE]
[STATE_COLOR:ALL:CLEAR]
[STATE_NAME_ADJ:ALL_SOLID:frozen serotonin]
[STATE_NAME_ADJ:ALL_LIQUID:serotonin]
[STATE_NAME_ADJ:ALL_GAS:boiling serotonin]
[SYNDROME]
[SYN_NAME:Serotonin boost]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_CONTACT]
[SYN_NO_HOSPITAL]
[CE_CHANGE_PERSONALITY:FACET:STRESS_VULNERABILITY:
X:PROB:100:ABRUPT:START:0]
Where
X can be anything from -1 (for a negligible effect) to -100 (for complete immunity to stress). I use -30 with good results.
Then, in your raw/objects/creature_standard.txt add this red text under [CREATURE:DWARF] : [...]Some additional materials.
[USE_MATERIAL_TEMPLATE:SWEAT:SWEAT_TEMPLATE]
[USE_MATERIAL_TEMPLATE:TEARS:TEARS_TEMPLATE]
[USE_MATERIAL_TEMPLATE:SPIT:SPIT_TEMPLATE]
[USE_MATERIAL_TEMPLATE:SSRI:SSRI_TEMPLATE] [SECRETION:LOCAL_CREATURE_MAT:SWEAT:LIQUID:BY_CATEGORY:ALL:SKIN:EXERTION]
[SECRETION:LOCAL_CREATURE_MAT:TEARS:LIQUID:BY_CATEGORY:EYE:ALL:EXTREME_EMOTION]
[SECRETION:LOCAL_CREATURE_MAT:SSRI:LIQUID:BY_CATEGORY:ALL:BRAIN:CONTINUOUS][CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Spit]
[CDI:USAGE_HINT:NEGATIVE_SOCIAL_RESPONSE] [...]
From now on your dwarves' brains will continuously secrete serotonin and help mitigate the amount of stress they experience.
The only "downside" is that it is shown in their inventory as a coating of serotonin on their brain but that's not so bad now is it ?
This can of course be modified to apply any syndrome you can think of, beneficial... or not
Hope this helps