About this mod
This mod removes the soft cap the game has on how many wanderers can spawn in a campaign.
- Requirements
- Permissions and credits
- Changelogs
Thanks to chinesebut, author of the Companion Hoarder for helping me make this mod work!
Let me begin by explaining what the wanderer spawn soft cap is, exactly. The game puts a probability check before spawning each wanderer at the start of the campaign. That check has a hardcoded number inside of a function and is quite hard to edit externally to be able to configure it, yet chinesebut is working on it.
The check works like this:
The game has an arbitrary number that works as a soft cap, that number is 25.
The number is divided by the amount of wanderers that have the attribute is_template set to "true" in the game's xml files (even the ones added by any wanderer mods like my Bleinz's More Wanderers mod). The result of the division gives us a proportion that tells us how much smaller is 25 compared to the actual amount of wanderers. In the next step, the game generates a random number between 0.0 and 1.0 and if that number is smaller or equal to the ratio calculated before, it spawns the wanderer.
It completely removes the soft cap. This means that every single one of the wanderer templates will be spawned in every campaign, but only once (the game only spawns them once too anyway).
All that said, if you want to make sure all your wanderers can eventually be found in your campaign and you only want one copy of every wanderer, this is your mod.
On the other hand, if you'd prefer to have an exact number of wanderers in the game, while there being multiple copies of the same wanderer template (with different random first names, but same stats), you should check out the Companion Hoarder mod.