2022-05-14 19:53:00 +01:00
|
|
|
|
using Aki.Reflection.Patching;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
namespace CWX_WeatherPatcher
|
|
|
|
|
{
|
2022-05-25 13:36:03 +01:00
|
|
|
|
class CustomGlobalFogPatch : ModulePatch // MAKES CHANGES TO CUSTOMGLOBALFOG
|
2022-05-14 19:53:00 +01:00
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
|
|
|
|
return typeof(CustomGlobalFog).GetMethod("Start", BindingFlags.NonPublic | BindingFlags.Instance);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPostfix]
|
|
|
|
|
private static void PostFixPatch(ref CustomGlobalFog __instance)
|
|
|
|
|
{
|
|
|
|
|
__instance.FuncStart = 0f;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|