Auto-assign Inventories on Caravan arrival

If you liked this item, please rate it up on Steam Workshop page.

Author: Syrus

Last revision: 7 Jan, 2024 at 21:49 UTC (1)

File size: 276.48 KB

On Steam Workshop

Description:
Description:

Automatically distributes things carried in the inventory of caravan members to pawn’s inventories in accordance to their requirements set by the "Assign"-tab assignments (like medicine) and drug-policies when a caravan arrives on a map.

– For example:
Alice and Bob are in the same caravan. Both should carry 5 beer due to a drug policy assignment.
Alice has 1 beer in her inventory and Bob has 12 beer.
Once Alice and Bob’s caravan enters a map, this mod will distribute Bob’s beers by moving 4 of them to Alice’s inventory.
Now Alice carries 5 beer and Bob carries 8 beer, both satisfying their drug policy requirement.

Everyone is happy!
Until they die from an ambush of manhunting squirrels because they got drunk…

This will also work nicely if you are using the ammo option in Yayo’s Combat 3 and set colonists to always carry a certain amount of ammo.

Compatibility:

No known incompatibilities.

Please report any issues and include the HugsLib log (CTRL+F12) if possible when reporting bugs,
it helps immensely tracking down what went wrong, thank you!

Modder notes:

If anyone wishes to integrate this patch into a bigger compilation of tweaks/patches, feel free to do so, but please inform me.
A short mention for writing the code would also be appreciated in that case.

GitHub: https://github.com/XT-0xFF/AutoAssignInventoryCaravan

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.