-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCore.Patches.cs
29 lines (28 loc) · 1.28 KB
/
Core.Patches.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Harmony;
namespace WeaponRealizer
{
public static partial class Core
{
internal static class Patches
{
public static void Apply(HarmonyInstance harmony)
{
// if (ModSettings.BallisticNumberOfShots)
// {
// //Logger.Debug("Patching in Ballistic Number of Shots");
// //NumberOfShotsEnabler.BallisticEffectUpdatePrefixPrepare();
//// harmony.Patch(
//// original: AccessTools.Method(typeof(BallisticEffect), "Update"),
//// prefix: new HarmonyMethod(typeof(NumberOfShotsEnabler), nameof(NumberOfShotsEnabler.BallisticEffectUpdatePrefix)),
//// postfix: null
//// );
//// harmony.Patch(
//// original: AccessTools.Method(typeof(BallisticEffect), "OnComplete"),
//// prefix: new HarmonyMethod(typeof(NumberOfShotsEnabler), nameof(NumberOfShotsEnabler.BallisticEffectOnCompletePrefix)),
//// postfix: new HarmonyMethod(typeof(NumberOfShotsEnabler), nameof(NumberOfShotsEnabler.BallisticEffectOnCompletePostfix))
//// );
// }
}
}
}
}