Skip to content

Commit

Permalink
Update ReGrowthCore (#493)
Browse files Browse the repository at this point in the history
* Update SearchAndDestroy

Update to make the patch work with the unofficial continuation of the mod since the original appears to be abandoned

* Update ReGrowthCore.cs

* Update ReGrowthCore.cs

Removed redundant synchronization for 'MakeCamp' method
  • Loading branch information
InfernalSkys authored Nov 19, 2024
1 parent 5da49f7 commit 6c700ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/Mods/ReGrowthCore.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Verse;
using Verse;
using Multiplayer.API;
using HarmonyLib;

namespace Multiplayer.Compat
{
Expand All @@ -18,6 +20,10 @@ public ReGrowthCore(ModContentPack mod)
// RNG
// Could be fixed by clearing the cache on join, but it affects a small graphical thing (motes). Not really worth bothering with.
PatchingUtilities.PatchPushPopRand("ReGrowthCore.WeatherOverlay_FogMotes:TickOverlay");

// Register the MakeCamp method to be synchronized
var type = AccessTools.TypeByName("ReGrowthCore.Caravan_GetGizmos_Patch");
MP.RegisterSyncMethod(type, "MakeCamp");
}

private static void LatePatch() => PatchingUtilities.PatchPushPopRand("ReGrowthCore.DevilDust_Tornado:ThrowDevilDustPuff");
Expand Down

0 comments on commit 6c700ff

Please sign in to comment.