forked from CWX/CWX-mods
21 lines
594 B
C#
21 lines
594 B
C#
|
using Aki.Reflection.Patching;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
namespace CWX_WeatherPatcher
|
|||
|
{
|
|||
|
class CWX_WeatherPatch2 : ModulePatch // MAKES CHANGES TO CUSTOMGLOBALFOG
|
|||
|
{
|
|||
|
protected override MethodBase GetTargetMethod()
|
|||
|
{
|
|||
|
return typeof(CustomGlobalFog).GetMethod("Start", BindingFlags.NonPublic | BindingFlags.Instance);
|
|||
|
}
|
|||
|
|
|||
|
[PatchPostfix]
|
|||
|
private static void PostFixPatch(ref CustomGlobalFog __instance)
|
|||
|
{
|
|||
|
__instance.FuncStart = 0f;
|
|||
|
Logger.LogMessage("MADE CHANGES TO CUSTOMGLOBALFOG!");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|