From 5c6655deb7301134eedca28401deb5123ec935af Mon Sep 17 00:00:00 2001 From: WhistleWind Date: Sun, 25 Aug 2024 13:03:26 -0700 Subject: [PATCH] Fixed RuleBookManager not syncing when playing with no custom rulebook sections --- CHANGELOG.md | 3 +++ InscryptionAPI/InscryptionAPI.csproj | 2 +- InscryptionAPI/InscryptionAPIPlugin.cs | 4 +++- InscryptionCommunityPatch/InscryptionCommunityPatch.csproj | 2 +- docs/wiki/rulebook.md | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37c3ee01..4957e6bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@
View Changelog +# 2.21.1 +- Fixed RuleBookManager not syncing when playing with no custom rulebook sections + # 2.21.0 - Fixed ability stacks not rendering - Fixed rendering error when displaying a card with tribes outside of Act 1 diff --git a/InscryptionAPI/InscryptionAPI.csproj b/InscryptionAPI/InscryptionAPI.csproj index 5c9bb01b..92c5e549 100644 --- a/InscryptionAPI/InscryptionAPI.csproj +++ b/InscryptionAPI/InscryptionAPI.csproj @@ -10,7 +10,7 @@ full false true - 2.21.0 + 2.21.1 diff --git a/InscryptionAPI/InscryptionAPIPlugin.cs b/InscryptionAPI/InscryptionAPIPlugin.cs index 23f08345..b0919760 100644 --- a/InscryptionAPI/InscryptionAPIPlugin.cs +++ b/InscryptionAPI/InscryptionAPIPlugin.cs @@ -13,6 +13,7 @@ using InscryptionAPI.Pelts; using InscryptionAPI.PixelCard; using InscryptionAPI.Regions; +using InscryptionAPI.RuleBook; using InscryptionAPI.Slots; using InscryptionAPI.Totems; using System.Runtime.CompilerServices; @@ -29,7 +30,7 @@ public class InscryptionAPIPlugin : BaseUnityPlugin { public const string ModGUID = "cyantist.inscryption.api"; public const string ModName = "InscryptionAPI"; - public const string ModVer = "2.21.0"; + public const string ModVer = "2.21.1"; public static string Directory = ""; @@ -83,6 +84,7 @@ internal static void ResyncAll() SlotModificationManager.SyncSlotModificationList(); EncounterManager.SyncEncounterList(); RegionManager.SyncRegionList(); + RuleBookManager.SyncRuleBookList(); } internal static void CheckForOutdatedPlugins() diff --git a/InscryptionCommunityPatch/InscryptionCommunityPatch.csproj b/InscryptionCommunityPatch/InscryptionCommunityPatch.csproj index 3f42de2e..958db84b 100644 --- a/InscryptionCommunityPatch/InscryptionCommunityPatch.csproj +++ b/InscryptionCommunityPatch/InscryptionCommunityPatch.csproj @@ -9,7 +9,7 @@ true full false - 2.20.0 + 2.21.0 diff --git a/docs/wiki/rulebook.md b/docs/wiki/rulebook.md index c3a98da6..8391cd6b 100644 --- a/docs/wiki/rulebook.md +++ b/docs/wiki/rulebook.md @@ -28,7 +28,7 @@ RuleBookManager.New( "Mod Tribes", // the subsection name that appears at the end of the header GetInsertPosition, // a function that determines where in the Rulebook to insert our custom section CreatePages, // the function to create the pages that will be in our custom section - headerPrefix, // optional argument, if left null one will be created for you + headerPrefix: null, // optional argument, if left null one will be created for you getStartingNumberFunc: GetStartingNumber, // optional argument, if left null the starting number will be 1 fillPageAction: FillPage // also optional, but if you want to display custom names, descriptions, etc you will need to set this );