


Configure the number of purchasable items in each store rotation, or simply show them all.
Simple mod that adds configurability to the number of items that show up in the store every week.
Intended for when there's a large number of modded items (suits, furniture, etc.) in the store, and the vanilla store rotation makes it too unlikely to ever see a desired item in stock.
Compatible with v45, v49, and v50.
Uses CSync (v3.1.1 and below) by Owen3H (forked by Lordfirespeed) to sync config settings between host and clients.
NOTE: CSync v4, which is downloaded automatically by r2modman when installing this mod's dependencies, is currently not supported and must be downgraded to v3 for this mod to work. CSync v3 is preferred at the moment to maintain compatibility with other mods that have not yet switched to the latest version.
By default, the number of available items in the store is increased from 4-5 (vanilla) to 8-12, but this range can be configured via the minItems and maxItems config settings. Set both numbers to the same value to have a fixed number of items in every rotation.
Alternatively, the showAll setting can be toggled to simply add every purchasable item to the store rotation. Partly intended for fixing name conflict issues when buying stuff at the terminal, but there should be no problems using it during a regular run.
The store rotation can also be displayed in alphabetical order by toggling the sortItems setting.
For cases where having too many items in the store rotation causes scrolling to skip over several lines, either with stockAll enabled or with a high minItems/maxItems value, the relativeScroll setting adapts the terminal scroll amount to the number of lines in the current terminal page.
The patched Terminal.RotateShipDecorSelection() method is functionally the same as vanilla, only with some configurability added, so it should play nicely with other mods (as long as they don't also clear the Terminal.ShipDecorSelection list to generate their own, or forcibly add items without checking if they're already present in it).
There's also the possibility of something going wrong if the Terminal.ShipDecorSelection list is needed by another mod immediately after joining a lobby, but prior to the config file sync; the patched method to fill the list with additional items only runs after a successful sync, so it remains in its vanilla state until then. So far I haven't encountered any issues with it, but if any incompatibilities are found, please let me know in the relevant thread in the Lethal Company Modding Discord server, or open an issue on GitHub.
The relativeScroll tweak is not limited to just the store page, and could potentially fix scrolling issues in other terminal pages, but it could also be incompatible or cause issues with other mods that modify or set the PlayerControllerB.terminalScrollVertical value.
NOTE: This mod is technically server-side, but clients need the mod installed to be able to see and purchase any of the additional items added to the vanilla store rotation. Similarly, joining a lobby that doesn't have this mod installed will not modify the store rotation.
