Have you ever wanted to assign your pawns one food policy for when they are home and another food policy for when they are in a caravan?
Description
Adds the ability to a pawns current food policy, home food policy, and caravan food policy. Pawns will automatically switch to their caravan food policy when leaving on a caravan and switch to their home food policy when returning. Food policies can be easily managed in the [i]Assign[/i] menu.
Features
Overview
[list]
[*] Manage food policies in the [i]Assign[/i] menu.
[*] Existing food policies can be used seamlessly.
[*] Pawns will automatically have their food policy set to their caravan food policy immediately after departing on a caravan.
[*] Pawns will automatically have their food policy set to their home food policy immediately after arriving home.
[*] When forming a caravan and [i]automatically select travel supplies[/i] is checked, food will be selected based on the caravan food policies of the pawns in the caravan.
[*] When forming a caravan, the [i]days of food[/i] calculation accounts for the caravan food policies of the pawns in the caravan.
[*] Mod settings to allow for customization of food policy highlighting.
[*] Supports localization/translation.
[/list]
Managing Food Policies
[img]https://i.imgur.com/DxBpSPr.gif[/img]
[i]Left clicks are shown in yellow, and right-clicks in blue[/i]
Each pawn now has three food policies:
[list]
[*] [b]Current food policy[/b] - this is the food policy currently assigned to this pawn.
[*] [b]Home food policy[/b] - this is the food policy this pawn will revert to when arriving at a player home map.
[*] [b]Caravan food policy[/b] - this is the food policy this pawn will automatically switch to when forming a caravan.
[/list]
Food policies can be changed by left-clicking its cell and selecting the desired item from the list. Food polices can be managed by selecting [i]Edit...[/i] from the list or by clicking [i]Manage food policies[/i] at the top.
Pawns' food policies will be colored green or red, determined by if their current food policy matches the food policy of the location that they are in (at home or in a caravan). This provides a simple visual of matched vs. mismatched policies while also having the added benefit of showing which pawns are at home vs. on a caravan. In the above video, it is apparent that pawns #2, #4, and #5 are in a caravan while the others are not.
Matched policies will be displayed in green while mismatched ones will show up as red. Having mismatched policies is not an issue, but it indicates that one of them was changed at some point.
Mismatched policies can easily be resolved by right-clicking the cell with the desired food policy. This will resolve the mismatch by setting the other red cell to be the value of the cell that was right-clicked.
Compatibility
[list]
[*] [url=https://steamcommunity.com/workshop/filedetails/?id=3014915404]Vehicle Framework's[/url] [i]Vehicle Caravans[/i]: This mod should work with Vehicle Framework's Vehicle Caravans. I have added code to ensure that pawns' caravan food policies are used where appropriate.
[/list]
Source code available on [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FRobertVelarde%2FCaravanFoodPolicies]GitHub[/url][github.com]
Utilizes Fluffy's [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2Ffluffy-mods%2FColourPicker]ColourPicker[/url][github.com] with fix by [url=https://steamcommunity.com/profiles/76561198158315976]CrashM[/url]
Based on [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2792347147]Caravan Auto Food Restrictions[/url] by [url=https://steamcommunity.com/profiles/76561198947661841]Yodalorian[/url].