About this mod
Reworks vendor restocking to only partially refresh the inventory, on a configurable random timer
- Requirements
- Permissions and credits
In the vanilla game, every 3 days a vendor's inventory resets completely. Doesn't matter what you bought or sold from them, it completely refreshes.
With this mod vanilla restock is disabled, on a configurable timer, a vendor sells a random percentage of their inventory, and uses the profits to buy that same percentage of their restock. So, if you sell 15 pipe guns to Trash Can Carla, it'll probably take her a while to unload them.
Vendor Legendaries
Vendors with weapons or armor in their inventory also have a configurable chance to have a Legendary Item.
Requires Legendaries They Can Use
Configuration
Global variables can be configured in xedit. Adding a MCM is on my todo list.
avgRestockTime - range from +/- 50%
avgRestockPercentage - range from +/- 50%
LegendaryChance
It would also be relatively easy to set up different global variables for different vendors, e.g. if you wanted DC vendors to restock more frequently, or something like that. Just replace the assigned variable in the script on the container.
Performance
This is a script that runs on a timer. It's relatively lightweight, but don't be stupid about having hundreds of vendors in the same area, or setting the restock timer to 0, or other such silliness.
Compatibility
Any mod added vendors will need the script assigned to their container. It's an easy patch to make.