From 87f436cc108eff80ae97bdb44eceec3dbd43e790 Mon Sep 17 00:00:00 2001 From: SokyranTheDragon Date: Sat, 11 May 2024 14:54:56 +0200 Subject: [PATCH] Stop excluding "MakeBombardmentMote" from mote patches (1.4) #460, but for 1.4 version of the game. --- Source/Client/MultiplayerStatic.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Client/MultiplayerStatic.cs b/Source/Client/MultiplayerStatic.cs index 12c63686..a6d50fb8 100644 --- a/Source/Client/MultiplayerStatic.cs +++ b/Source/Client/MultiplayerStatic.cs @@ -352,8 +352,7 @@ void TryPatch(MethodBase original, HarmonyMethod prefix = null, HarmonyMethod po var canEverSpectate = typeof(RitualRoleAssignments).GetMethod(nameof(RitualRoleAssignments.CanEverSpectate)); var effectMethods = new MethodBase[] { subSustainerStart, sampleCtor, subSoundPlay, effecterTick, effecterTrigger, effecterCleanup, randomBoltMesh, drawTrackerCtor, randomHair }; - var moteMethods = typeof(MoteMaker).GetMethods(BindingFlags.Static | BindingFlags.Public) - .Where(m => m.Name != "MakeBombardmentMote"); // Special case, just calls MakeBombardmentMote_NewTmp, prevents Hugslib complains + var moteMethods = typeof(MoteMaker).GetMethods(BindingFlags.Static | BindingFlags.Public); var fleckMethods = typeof(FleckMaker).GetMethods(BindingFlags.Static | BindingFlags.Public) .Where(m => m.ReturnType == typeof(void)) .Concat(typeof(FleckManager).GetMethods() // FleckStatic uses Rand in Setup method, FleckThrown uses RandomInRange in TimeInterval. May as well catch all in case mods do the same.