Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

Vaeringjar

Uploaded by

MindfulDroid

Virus scan

Safe to use

About this mod

"Daily Defaults" like Irrigation no longer provide an astronomical "+1". Instead, the output now scales to a settlement's production value.
For example, at 50 production Irrigation will output +15 food.
Full details in description.

Permissions and credits
Changelogs
VORTEX notice: Vortex may fail to install. The issue has been identified by Nexus and will be addressed in the near future :)
In the meanwhile please install manually, instructions are further bellow.

"Daily Defaults" like Irrigation no longer provide an astronomical "+1", which is most likely an early access placeholder. With this mod, the output now scales to a settlement's production value.

Vanilla tooltip issue! After selecting the "daily default" building, leave the settlement and re-enter for the values to update. It's a vanilla UI issue, the values all work as they should.
Notice: "Daily Defaults" only take effect if no buildings are being constructed, as per vanilla.

The new output values will be whatever is defined in the buildings themselves (as shown in the in-game building description) plus the following:

Build House: + 1/3 (Production * 0.6)^0.77 Prosperity
Train Militia: + 1/3 (Production * 0.6)^0.77 Militia
Irrigation: + (Production * 0.6)^0.77 Food
Festival & Games: + 1/9 (Production * 0.6)^0.77 Prosperity + 1/9 (Production * 0.6)^0.77 Militia + 1/3 (Production * 0.6)^0.77 Food

Note that these results are then rounded up to an integer.
In other words, if your settlement has 20 production it will output 7 food. (+ the default output of 1)
At 50 production that'll be 14 food. (+1)
At 75 production that'll be 19 food. (+1)
At 100 production that'll be 24 food. (+1)
At 200 production that'll be 40 food. (+1)

v2 mechanics: Output type will automatically adapt to a settlement's situation.
- If a settlement is under siege: Outputs will be replaced by Militia. Prosperity is pointless when besieged, and food cannot be farmed.
- If food stockpiles are bellow 100, and the settlement is not besieged: Outputs will be replaced by Food. This will help avoid starvation.
This also means you won't need to micromanage as much. Just set your preferred daily default and if the situation chances you won't have to worry about it.

Applies to both the player and AI.

Compatibility:

Safe to add and remove mid-game.

Using a mod that modifies vanilla daily default outputs may "break" this mod. (Mod will work, but the result may me broken balance-wise)

Harmony-patches DefaultSettlementFoodModel.CalculateTownFoodStocksChange by postfix.
Harmony-patches DefaultSettlementProsperityModel.CalculateProsperityChange by postfix.
Harmony-patches DefaultSettlementMilitiaModel.CalculateMilitiaChange by postfix.

Makes use of BuildingConstructionModel.CalculateDailyConstructionPowerWithoutBoost within all 3 postfixes. As such using  CalculateTownFoodStocksChange, CalculateProsperityChange or CalculateProsperityChange within CalculateDailyConstructionPowerWithoutBoost may crash the game. (untested)

Installation:

Same as for any other module. Unzip it and place it in the game's install folder "...\Mount & Blade II Bannerlord\Modules".
If on Steam, right click the game title -> "manage" -> "browse local files". Both Zip and 7zip downloads available.
If it is installed correctly you'll get a notification text on the bottom left of the screen at the main menu.

Troubleshooting: Troubleshooting Guide

How to report a bug/CTD:
Link

Sourcecode:
Included in download.

All my mods:
Click Here

Credits & Acknowledgements:


- Makes use of Harmony.
- RadthorDax for helping out through Discord.