29 lines
859 B
C#

using Aki.Reflection.Patching;
using System.Reflection;
namespace CWX_WeatherPatcher
{
class GClassPatch : ModulePatch // MAKES CHANGES TO GClass1694 SMETHOD_0
{
protected override MethodBase GetTargetMethod()
{
return typeof(GClass1697).GetMethod("smethod_0", BindingFlags.NonPublic | BindingFlags.Static);
}
[PatchPostfix]
private static void PatchPostfix(ref GClass1697 __result)
{
__result.Cloudness = -1;
__result.WindDirection = 8;
__result.Wind = 0;
__result.Rain = 0;
__result.RainRandomness = 0;
__result.ScaterringFogDensity = 0;
__result.GlobalFogDensity = 0;
__result.GlobalFogHeight = 0;
Logger.LogMessage("MADE CHANGES TO GClass1694 SMETHOD_0!");
}
}
}