Skip to content

Commit

Permalink
Create EncounterManagerPatches.cs (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettluskey committed Jun 11, 2023
1 parent 12a4be8 commit b0f737f
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using HarmonyLib;
using TaleWorlds.CampaignSystem;

namespace GameInterface.Services.MapEvents.Patches;

/// <summary>
/// Disables all map encounters/events
/// </summary>
[HarmonyPatch(typeof(EncounterManager))]
internal class EncounterManagerPatches
{
[HarmonyPatch("StartPartyEncounter")]
[HarmonyPrefix]
private static bool StartPartyEncounterPrefix() => false;

[HarmonyPatch("StartSettlementEncounter")]
[HarmonyPrefix]
private static bool StartSettlementEncounterPrefix() => false;
}

0 comments on commit b0f737f

Please sign in to comment.