Skip to content

Commit

Permalink
Fixed RuleBookManager not syncing when playing with no custom ruleboo…
Browse files Browse the repository at this point in the history
…k sections
  • Loading branch information
HumabHatterZed committed Aug 25, 2024
1 parent 2e6c2fe commit 5c6655d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<details>
<summary>View Changelog</summary>

# 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
Expand Down
2 changes: 1 addition & 1 deletion InscryptionAPI/InscryptionAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<DebugType>full</DebugType>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<Version>2.21.0</Version>
<Version>2.21.1</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion InscryptionAPI/InscryptionAPIPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 = "";

Expand Down Expand Up @@ -83,6 +84,7 @@ internal static void ResyncAll()
SlotModificationManager.SyncSlotModificationList();
EncounterManager.SyncEncounterList();
RegionManager.SyncRegionList();
RuleBookManager.SyncRuleBookList();
}

internal static void CheckForOutdatedPlugins()
Expand Down
2 changes: 1 addition & 1 deletion InscryptionCommunityPatch/InscryptionCommunityPatch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>full</DebugType>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Version>2.20.0</Version>
<Version>2.21.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/rulebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 5c6655d

Please sign in to comment.