2022-04-12 17:45:48 -05:00
|
|
|
|
using Aki.Reflection.Patching;
|
2022-03-17 11:03:20 -05:00
|
|
|
|
using EFT;
|
2022-04-12 17:45:48 -05:00
|
|
|
|
using System.Reflection;
|
2022-03-17 11:03:20 -05:00
|
|
|
|
|
|
|
|
|
namespace ValensHasThePower
|
|
|
|
|
{
|
|
|
|
|
public class PatchThePower : ModulePatch
|
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
2022-03-27 13:26:56 -05:00
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|