From feaeb9ad74ca2389d75eb30ebb0151afdd1f50e3 Mon Sep 17 00:00:00 2001 From: pacoito123 Date: Sat, 17 Aug 2024 16:27:36 -0600 Subject: [PATCH] [v2.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. --- CHANGELOG.md | 6 ++++++ README.md | 2 +- StoreRotationConfig/Patches/TerminalScrollMousePatch.cs | 2 +- StoreRotationConfig/Patches/UnlockShipObjectPatches.cs | 2 +- StoreRotationConfig/Plugin.cs | 2 +- StoreRotationConfig/StoreRotationConfig.csproj | 2 +- manifest.json | 2 +- 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7c9354..3cb3ad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 0128710..cc8d20c 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/StoreRotationConfig/Patches/TerminalScrollMousePatch.cs b/StoreRotationConfig/Patches/TerminalScrollMousePatch.cs index 456532a..93b24c8 100644 --- a/StoreRotationConfig/Patches/TerminalScrollMousePatch.cs +++ b/StoreRotationConfig/Patches/TerminalScrollMousePatch.cs @@ -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; diff --git a/StoreRotationConfig/Patches/UnlockShipObjectPatches.cs b/StoreRotationConfig/Patches/UnlockShipObjectPatches.cs index 1c12283..656c9c3 100644 --- a/StoreRotationConfig/Patches/UnlockShipObjectPatches.cs +++ b/StoreRotationConfig/Patches/UnlockShipObjectPatches.cs @@ -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; diff --git a/StoreRotationConfig/Plugin.cs b/StoreRotationConfig/Plugin.cs index 3e4dcdb..098289c 100644 --- a/StoreRotationConfig/Plugin.cs +++ b/StoreRotationConfig/Plugin.cs @@ -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; } /// diff --git a/StoreRotationConfig/StoreRotationConfig.csproj b/StoreRotationConfig/StoreRotationConfig.csproj index 4270657..9bd8608 100644 --- a/StoreRotationConfig/StoreRotationConfig.csproj +++ b/StoreRotationConfig/StoreRotationConfig.csproj @@ -3,7 +3,7 @@ StoreRotationConfig Configure the number of items in each store rotation, show them all, remove purchases, sort them, and/or enable sales for them. - 2.4.0 + 2.4.1 diff --git a/manifest.json b/manifest.json index d01b3e1..4cd01b4 100644 --- a/manifest.json +++ b/manifest.json @@ -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": [