ValensHasThePower/Patches.cs

22 lines
495 B
C#
Raw Normal View History

using Aki.Reflection.Patching;
2022-03-17 11:03:20 -05:00
using EFT;
using System.Reflection;
2022-03-17 11:03:20 -05:00
namespace ValensHasThePower
{
public class PatchThePower : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
var result = typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
2022-03-17 11:03:20 -05:00
return result;
}
[PatchPostfix]
private static void PatchPostFix()
{
PowerOn.Start();
}
}
}