banner
Rating
Voted0

StoreRotationConfig mod

0
Mod version:1
Game version:2.3.1
The mod has been successfully tested for the absence of viruses
1349.29K12.62K

Report mod

  • image
modalImage

About This Mod

Description.

Simple mod that allows you to adjust the number of items in the store every week.


Used when the store has a large number of modified items (costumes, furniture, etc.), and vanilla rotation of the store is unlikely to keep the desired item in stock.


Compatible with v45, v49, v50 and v56.


Uses Lordfirespeed CSync (v5.0.1 or later) to synchronize configuration settings between the host and the client.


Configuration

General configuration.

By default, the number of items in the store increases from 4-5 (vanilla) to 8-12, but this range can be changed in the minItems and maxItems settings. If both numbers are set to the same value, the number of items is fixed on all turns; if minItems is greater than maxItems, both numbers are set to a greater value. To avoid problems with negative numbers, store rotations are created using the absolute values of these two parameters.


You can also enable the showAll option (it is off by default) to enable all items available for purchase in the store rotation. Normal startup should not cause any problems with this, but it is done partly to solve the problem of name conflicts when buying things in the terminal.


If you disable ShowPurchased (it is enabled by default), items that you have already purchased will no longer appear in future store rotations, and items that you have bought will be removed from the current rotation immediately.


To ensure that items appear in your store rotation, add the item name to your itemWhitelist settings, separated by commas. Similarly, if you don't want your product to appear in the store rotation, add the name to itemBlacklist.


Sales Rotation

In version 2.3.0, products in a rotating store can be configured to go on sale from time to time. By default, the probability that 1-5 items will go on sale is about 33%, and the discount size varies between 10-50%, rounded to the nearest 10.


The SaleChance parameter controls the percentage probability that spinning items will go on sale. As in regular stores, the roundToNearestTen parameter determines whether the discount will be rounded to 10.


Client-side settings

Enabling the sortItems option (disabled by default) ensures that store rotation is displayed in alphabetical order.


If stockAll is enabled or minItems/maxItems is large and scrolling skips multiple lines if there are too many items in the store rotation, enable relativeScroll (default), the scrolling setting defined by linesToScroll (default 20) will be adjusted to a certain number of lines at once depending on the length of the current displayed terminal page.


These settings are not synchronized with the host computer and can be freely changed without problems.


Compatibility.

The fixed Terminal.RotateShipDecorSelection() method is functionally identical to vanilla, only with additional customization options, so it should work well with other mods (Terminal. ShipDecorSelection, unless you clear the list and create your own, or force it to be added without checking if the subject already exists).


In addition, something may go wrong if the Terminal.ShipDecorSelection list will be occupied by another mod immediately after joining the lobby and before synchronizing the ship's unlock items. The list will be populated only after successful synchronization with the host and will remain empty until then. There have been no issues so far, but if you notice any incompatibilities, please report them to us in the appropriate topic on the Lethal Company Modding Discord server or open the issue on GitHub.


This sales system is completely separate from normal item sales in the store, so it does not conflict with other mods that can alter those sales (for example, allowing more items to be sold). However, if other mods change the store page of the device, a discount number (for example, 50%) will appear on it. The discount should be applied independently, but if incompatibilities are found, correct them as soon as possible.


It may also cause incompatibility or problems with other mods that modify or install PlayerControllerB.terminalScrollVertical.


Note: Although this mod is technically a server mod, the customer must have the mod set to see and buy items added to the vanilla shop rotation. Similarly, if you join the lobby without a set fashion, the rotation of stores will not change.


Note: Starting with version 2.0.0, this mod must be installed on both the host and client, but if CSync again implements the ability to join the client or host lobby without installed mod, which depends on this mod, I will become (technically) server again.image 1 for StoreRotationConfig mod

Similar Mods/Addons

Game Version *

2.3.1 (pacoito-StoreRotationConfig-2.3.1.zip)