using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LethalLevelLoader;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("HiddenMoons")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HiddenMoons")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("8b90e786-72c5-492c-be74-0604387473da")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace HiddenMoons;
[HarmonyPatch(typeof(Terminal))]
public class TerminalPatch
{
[HarmonyPriority(0)]
[HarmonyPatch("Start")]
[HarmonyPostfix]
public static void ShowMoons(Terminal __instance)
{
List<ExtendedLevel> extendedLevels = PatchedContent.ExtendedLevels;
foreach (ExtendedLevel item in extendedLevels)
{
if (!(item.NumberlessPlanetName == "Liquidation") && !(item.NumberlessPlanetName == "Gordion"))
{
item.IsRouteHidden = false;
Plugin.logger.LogInfo((object)("Moon " + item.NumberlessPlanetName + " is now shown"));
}
}
}
}
[BepInPlugin("HiddenMoons", "HiddenMoons", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
public const string ModGUID = "hiddenmoons";
public const string ModName = "HiddenMoons";
public const string ModVersion = "1.0.0.0";
public static Plugin Instance;
internal static readonly Harmony Harmony = new Harmony("hiddenmoons");
internal static ManualLogSource logger;
private void Awake()
{
if (Object.op_Implicit((Object)(object)(Instance = null)))
{
Instance = this;
}
logger = Logger.CreateLogSource("hiddenmoons");
logger.LogInfo((object)"HiddenMoons is loaded");
Harmony.PatchAll(typeof(TerminalPatch));
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "HiddenMoons";
public const string PLUGIN_NAME = "HiddenMoons";
public const string PLUGIN_VERSION = "1.0.0";
}