Skip to content

Commit

Permalink
Add patch to allow all game version to tweak RaidSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Oct 17, 2024
1 parent bf2bd82 commit 43168eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions Fika.Core/FikaPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ private static void EnableFikaPatches()
new MenuScreen_method_8_Patch().Enable();
new HideoutPlayerOwner_SetPointOfView_Patch().Enable();
new RagfairScreen_Show_Patch().Enable();
new MatchmakerPlayerControllerClass_method_41_Patch().Enable();

#if DEBUG
TasksExtensions_HandleFinishedTask_Patches.Enable();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using SPT.Reflection.Patching;
using System.Reflection;

namespace Fika.Core.UI.Patches
{
public class MatchmakerPlayerControllerClass_method_41_Patch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(MatchmakerPlayerControllerClass).GetMethod(nameof(MatchmakerPlayerControllerClass.method_41));
}

[PatchPrefix]
public static bool Prefix(ref bool __result)
{
__result = true;
return false;
}
}
}

0 comments on commit 43168eb

Please sign in to comment.