I really like FO4 and I’ve spent hours with building up my settlements. It’s bugging me that no matter what I do I have a hard time raising my settlements happiness above the mark of 80. There are already some great posts diving into the details of happiness calculation (like this one) but I couldn’t find the real math behind the calculation of the mysterious happiness value. So I’ve picked up a decompiler and checked into the script files of Fallout 4 v1.3 and these are my findings.
The settlement happiness is calculated via the function DailyUpdateConsumeResources in scripts/workshopscript.pex. The script checks the following conditions for each single human settler and sums up the given happiness value:
This makes a total of 80 happiness per settler; sounds familiar. The script additionally caps the total happiness of a single human settler.
The script adds a fixed happiness of 50 for each nonhuman settler and a value called bonus happiness. The bonus happiness is simply the summary of all WorkshopRatingBonusHappiness values of the items the player has built. It looks like only the shops have this value attached to them:
Store type / Small / Medium / Large:
Bar / 15 / 20 / 40
Clinic / 10 / 20 / 30
General store / 10 / 10 / 15
Clothing store / 8 / 10 / 10
Additionally as lunamoonraker noted 10 bonus happiness points are given by the junkyard dog. I found an additional NPC called WorkshopGorilla granting 20 bonus happiness though I’ve not been able to acquire one of the gorillas that can be found in the Institute. I’ve checked some of the other craftable items and none of them provides a bonus happiness value. The chairs, decorations, and lights don’t have any influence on the happiness rating.
The resulting value is divided through the total number of settlers living in the settlement. If all of your settlers needs are fulfilled this means that we end up with a happiness value of 80 plus the bonus happiness of all stores divided by the number of settlers.
Finally the game adds a happiness modifier to the resulting happiness. This modifier is set by quests related to a settlement and has a negative impact in most cases. Additionally each time a settler dies the modifier is lowered by 20 happiness points. Luckily the modifier is capped between -50 and +20 and will be reduced by 20% each day.
And that’s it, no other calculations are done to the happiness rating. This seems to be all of the conditions taken into account when calculating the happiness value. The value is capped between 0 and 100 and the game will add 20% of the target happiness to the current happiness value each game day.
Food: 10 + 1 for each settler
Water: 5 + 0.25 for each settler
Scavenge stations: 100 + 5 for each settler
Fertilizer: 10
Store type / Small / Medium / Large:
Bar / 1 / 2 / 3
Clinic / 1 / 1 / 1
General store / 2 / 3 / 4
Clothing store / 1 / 2 / 3
Armor store / 1 / 3 / 6
Weapon store / 2 / 3 / 6
Notes: It looks like settlers assigned to a trade route are treated like unemployed settlers.
Original Link – Continuation of discussion
Apex Legends is a character-based battle royale. Apex Legends became popular because it was a…
I'm not especially good at games due to mediocre reflexes and I was having a…
A short progression guide with movement ability locations. Minor spoilers. It can be hard to…
Has anyone figured out the order of locations that NPCs show up at if you…
I honestly feel that that the ending for collecting all the grubs is an awful…
Two at a time, and can go so unsynced that they just deal unavoidable damage…