using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
using UnityEngine.SceneManagement;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("LavaLagPatches")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Mod for Patching Lagging Lava World in PEAK")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+d2d866fd73d0e86b799bd7475b8582103b6a59b8")]
[assembly: AssemblyProduct("LavaLagPatches")]
[assembly: AssemblyTitle("LavaLagPatches")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace DisableFogPostMod
{
[BepInPlugin("com.coddingcat.lavalagpatches", "LavaLagPatches", "1.0.0")]
public class DisableWildObjectsPlugin : BaseUnityPlugin
{
internal static ManualLogSource Log;
private void Awake()
{
//IL_0033: Unknown result type (might be due to invalid IL or missing references)
//IL_0039: Expected O, but got Unknown
Log = ((BaseUnityPlugin)this).Logger;
Log.LogInfo((object)"Lava Patches Plugin loaded");
SceneManager.sceneLoaded += OnSceneLoaded;
Harmony val = new Harmony("com.coddingcat.lavalagpatches");
val.PatchAll();
}
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
Log.LogInfo((object)("Scene loaded: " + ((Scene)(ref scene)).name));
DestroyWildflowers();
}
private void DestroyWildflowers()
{
GameObject val = GameObject.Find("Map/Volcano/Peak/Wildflowers");
if ((Object)(object)val != (Object)null)
{
Object.Destroy((Object)(object)val);
Log.LogInfo((object)"Destroyed 'Map/Peak/Wildflowers'.");
}
else
{
Log.LogWarning((object)"Could not find 'Map/Peak/Wildflowers'.");
}
}
}
}