Skip to content

Commit

Permalink
[v2.4.1] Confirming compatibility with v61, but also a minor fix.
Browse files Browse the repository at this point in the history
- Everything seems to be working correctly in `v61`, but I'll keep an eye out if anything breaks in the latest updates.
- Fixed `relativeScroll` setting being accidentally inverted in the previous release.
  • Loading branch information
pacoito123 committed Aug 17, 2024
1 parent 633dc00 commit feaeb9a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### [2.4.1]

Confirming compatibility with v61, but also a minor fix.
- Everything seems to be working correctly in `v61`, but I'll keep an eye out if anything breaks in the latest updates.
- Fixed `relativeScroll` setting being accidentally inverted in the previous release.

### [2.4.0]

Basic API added for rotation sales, enabled 'Nullable' in the project file.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Simple mod that adds configurability to the number of items that show up in the

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`, `v50`, and `v56`.
Compatible with `v45`, `v49`, `v50`, `v56`, and `v61`.

Uses [CSync (v5.0.1 and above)](https://thunderstore.io/c/lethal-company/p/Sigurd/CSync) by [Lordfirespeed](https://github.com/Lorefirespeed) to sync config settings between host and clients.

Expand Down
2 changes: 1 addition & 1 deletion StoreRotationConfig/Patches/TerminalScrollMousePatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal class TerminalScrollMousePatch
private static void ScrollMouse_performed(Scrollbar scrollbar, float scrollDirection)
{
// Perform vanilla scroll if the 'relativeScroll' setting is disabled.
if (Plugin.Terminal == null || Plugin.Settings == null || Plugin.Settings.RELATIVE_SCROLL.Value)
if (Plugin.Terminal == null || Plugin.Settings == null || !Plugin.Settings.RELATIVE_SCROLL.Value)
{
// Increment scrollbar value by vanilla scroll amount (a third of the page).
scrollbar.value += scrollDirection / 3f;
Expand Down
2 changes: 1 addition & 1 deletion StoreRotationConfig/Patches/UnlockShipObjectPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private static void UnlockShipObjectPre(int unlockableID)
[HarmonyPrefix]
private static void BuyShipUnlockableClientPre(int newGroupCreditsAmount, int unlockableID = -1)
{
// Return if local game instance is hosting the server, or if 'stockPurchased' setting is enabled.
// Return if local game instance is hosting the server, or if the 'stockPurchased' setting is enabled.
if (NetworkManager.Singleton.IsHost || NetworkManager.Singleton.IsServer || (Plugin.Settings?.STOCK_PURCHASED.Value).GetValueOrDefault(true))
{
return;
Expand Down
2 changes: 1 addition & 1 deletion StoreRotationConfig/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace StoreRotationConfig
[BepInDependency("TerminalFormatter", BepInDependency.DependencyFlags.SoftDependency)]
public class Plugin : BaseUnityPlugin
{
internal const string GUID = "pacoito.StoreRotationConfig", PLUGIN_NAME = "StoreRotationConfig", VERSION = "2.4.0";
internal const string GUID = "pacoito.StoreRotationConfig", PLUGIN_NAME = "StoreRotationConfig", VERSION = "2.4.1";
internal static ManualLogSource? StaticLogger { get; private set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion StoreRotationConfig/StoreRotationConfig.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<AssemblyName>StoreRotationConfig</AssemblyName>
<Description>Configure the number of items in each store rotation, show them all, remove purchases, sort them, and/or enable sales for them.</Description>
<Version>2.4.0</Version>
<Version>2.4.1</Version>
</PropertyGroup>

<!-- Project properties. -->
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "StoreRotationConfig",
"version_number": "2.4.0",
"version_number": "2.4.1",
"website_url": "https://github.com/pacoito123/LC_StoreRotationConfig",
"description": "Configure the number of items in each store rotation, show them all, remove purchases, sort them, and/or enable sales for them. Also includes a fix for the terminal scrolling too far and skipping lines.",
"dependencies": [
Expand Down

0 comments on commit feaeb9a

Please sign in to comment.