Decompiled source of Rosies Moons v2.0.7

GordionSaga.dll

Decompiled an hour ago
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using CustomStoryLogs;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("GordionSaga")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("StoryLogs for GordionSaga.")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("GordionSaga")]
[assembly: AssemblyTitle("GordionSaga")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.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.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
	[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 GordionSaga
{
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "GordionSaga";

		public const string PLUGIN_NAME = "GordionSaga";

		public const string PLUGIN_VERSION = "0.0.1";
	}
}
namespace GordionSaga.src
{
	internal class Assets
	{
		public static AssetBundle StoryLogAsset;

		public static void PopulateAssets()
		{
			string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
			StoryLogAsset = AssetBundle.LoadFromFile(Path.Combine(directoryName, "storylogasset"));
			if ((Object)(object)StoryLogAsset == (Object)null)
			{
				Plugin.Logger.LogError((object)"Failed to load assets from 'storylogasset'.");
			}
		}
	}
	[BepInPlugin("GordionSaga", "GordionSaga", "0.0.1")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		public static Plugin Instance { get; private set; }

		internal static ManualLogSource Logger { get; private set; }

		internal static Harmony? Harmony { get; set; }

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			Instance = this;
			Assets.PopulateAssets();
			GameObject val = Assets.StoryLogAsset.LoadAsset<GameObject>("StoryLog");
			int vanillaStoryLogModel = CustomStoryLogs.RegisterCustomLogModel(val);
			StoryLogs.RegisterLogs(vanillaStoryLogModel);
			Logger.LogInfo((object)"GordionSaga v0.0.1 has loaded!");
		}
	}
	internal class StoryLogs
	{
		public static void RegisterLogs(int vanillaStoryLogModel)
		{
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0125: Unknown result type (might be due to invalid IL or missing references)
			//IL_0139: Unknown result type (might be due to invalid IL or missing references)
			//IL_0178: Unknown result type (might be due to invalid IL or missing references)
			//IL_018c: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01df: Unknown result type (might be due to invalid IL or missing references)
			//IL_021e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0232: Unknown result type (might be due to invalid IL or missing references)
			//IL_0271: Unknown result type (might be due to invalid IL or missing references)
			//IL_0285: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d8: Unknown result type (might be due to invalid IL or missing references)
			int num = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Bugs! - June 28, 1952", "\tDavid Indenberg, reporting on the day of June 16th, 1952,\r\n\tWe've been plagued by these bugs, my work has been run down again and again. I swear whoever brought these damned things here will pay handsome amounts of credits to me. It is running me dry! I have gone from the wealthiest in this galactic region to one ordinary guy. No one respects the Indenberg name anymore... *A pause is noted*\r\n\tI hear, uh, there is a new company rising up. They don't really have a name it seems, just listed as Company LLC. Eh, however mysterious it be, it might be my only option to get up in the ranks. Says it's a recycling company, sponsored by Haldron Electronics, I remember using some of their sorting machines back in the day. Well however, the \"Company\" hires to have people scavenge lost exomoons in the area and leave it on their moon, Gordion. \r\n\tMy gut is telling me no, but damn the money sounds good. Affliction is basically lost now and I know all the good spots, so getting raises will be easy. Think I'll sign up... Surely nothing could go wrong.\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num, "59 Affliction", new Vector3(-65.875f, 6.5f, -38.875f), new Vector3(-90f, 0f, -105f), vanillaStoryLogModel);
			int num2 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Olivia Plannet - July 1, 1952", "\tHello, it's Eden Luna, I just have to record this. It's June 20th and something feels off with our supervisor. Olivia is definitely hiding something. I don't know what, but every time we meet her at the Company building she seems off. Like as if she's surveying how much we bring back.\r\n\tSomething really strange happened last time we were there...\r\nI mean usually the pipes in the walls shift and turn making this grumbling sound but Olivia... She said, I don't even know how to explain it. I don't know the specifics, but she said something along the lines of that is not enough, its still hungry. Get back to work. We all just sort of stood in silence. Once we were back in orbit David was freaking out, he kept rambling about his old job, saying how he didn't deserve this and whoever brought those bugs would pay. I sincerely have no idea what he is talking about but I relate to him on a personal level. I used to have a life before this, and now the Company has shifted it into scavenging every day. We barely get breaks!\r\n\tAnyways, Olivia is weird, David is unstable, and I don't even know what Frall is up to. He's way too smart for me to understand and sucks up to Olivia, scientist's pact I guess…\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num2, "71 Gordion", new Vector3(-20.85f, -2.625f, 29f), new Vector3(-90f, 0f, -135f), vanillaStoryLogModel);
			int num3 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "What is Ichor? - July 2, 1952", "\tFrall Nickolas reporting on the day... June 28th? It's hard to keep track with how much we've been in space but I've learned something from David. Affliction, or as he likes to say, his prodigy, orbits a gas giant. Or that's what I thought. He let me into a little secret and said, \"sure the atmosphere is a bit dense, but damn that's not a gas giant. And certain people know that.\" He nodded to Olivia when he said that last part.\r\n\tI didn't understand, I thought Olivia was a great person. I didn't see why she would keep any of that from us. I asked her about Ichor and she just shrugged and said something along the lines of, it's a gas giant, what do you expect?\r\n\tSo, I did some digging. Our navigation system had some software linked into it specifically for routing to Ichor. You don't just hide that stuff. Especially when Haldron specifically states they don't allow for routing to gas giants due to safety concerns.\r\n\tSomething is up with Ichor…\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num3, "607 Tunere", new Vector3(-12.6f, 24.75f, -66.75f), new Vector3(-90f, 0f, -105f), vanillaStoryLogModel);
			int num4 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Can't Find Out - July 5, 1952", "\tOlivia Plannet. Year of 1952, month of July, day of the 1st. I am currently stationed on the Company's FRF on March.\r\n\tThey are figuring it out. For being their supervisor I'm doing a terrible job at supervising their activities. I did an inspection of their ship and they know, they know about Ichor. Whoever figured it out did a piss poor job at hiding it. But anyways, this is bad. If my manager finds out about this, or fucks sake, the boss does. I'm done for, they'll feed me to the walls.\r\n\tThere are two days left of their shift before they come back to Gordion, hopefully they don't stick their heads where they don't belong.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num4, "61 March", new Vector3(-165.4f, -3.7f, 11.4f), new Vector3(-90f, 0f, 120f), vanillaStoryLogModel);
			int num5 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Secrets of Titan - July 6, 1952", "\tDavid Indenberg, reporting on the day of July 6th, 1952.\r\n\tI am starting to get really scared for my life, the moons they send us to just get worse and worse, I saw a whole hoard of those nasty bugs once! And these... these men, or they looked like men but it was more like concrete and nails, fucking weird men. \r\n\tAnyways, we landed on Ichor, I guess telling Frall about it got him interested. This place is terrifying, it looks like some kind of factory. Reminds me of the Company's architecture. \r\n*A pause is noted*\r\nHoly shit, they WORK here. Ah what's the name of that other facility they have, T- Titan! We gotta go there next and see what's going on!\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num5, "93 Ichor", new Vector3(1.75f, -2.666f, 21.4f), new Vector3(-81f, -47f, 47f), vanillaStoryLogModel);
			int num6 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Sector 0 - July 7, 1952", "\tTitan... Oh god, Eden, Frall... Why did we go there... They had security systems to the max. I can't... I saw them both, right next to each other, a turret shot something, a landmine I think? It blew them both up! Fuck me, what am I going to tell Olivia... Oh god oh god... The ship too, it got mauled by these god awful dogs... How am I supposed to get home?\r\n*Minutes go by*\r\n\tI uh... good news maybe, I found a.. another ship.  Looks identical, maybe I can. I don't even know at this point.\r\n*More minutes go by, a terminal activates*\r\n\tTime to go back to Gordion I guess... Wait, what is... Sector-0?\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num6, "8 Titan", new Vector3(-76f, 19.6f, -39.35f), new Vector3(-93f, -75f, -90f), vanillaStoryLogModel);
			int num7 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Too Late - July 16, 1952", "\tOlivia Plannet. Year of 1952, month of July, day of the 1st. I am currently stationed on Sector-0.\r\n\tI have been looking for the last crew for ages now, be it David, Eden, or Frall. They never came back for their July 9th quota, so we had to feed the creature some personnel… After hiring a new crew, I still can’t find the last one. It's been 13 days, they have to be dead.\r\n\tBut I can’t shake off the fact that they found out so much in the span they were here. Sure they didn’t know about the-\r\n*Distant shouting is heard, ”Olivia!!!” The shouting cries, going in for a punch*\r\n\tHoly shit, David?! God damnit. \r\n*A walkie talkie activates.*\r\nWe need offensive personnel here now!\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num7, "71 Sector-0", new Vector3(-18f, 20.55f, -169.5f), new Vector3(-90f, 0f, -15f), vanillaStoryLogModel);
			int num8 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Lyra - December 21, 1949", "\tI don't like this place, it feels kinda spooky. I think it'd be a funny idea to let everything out though. Imagine the looks on the higher-ups faces when I release our new monster we made. I mean, aren't they named after clowns or something, jester, clown, close enough. I'm going to let like some of them go in some cargo ships, that'd be hilarious. Maybe they could actually have a good use then\r\n\r\n\tLyra, the Company's Chaotic Engineer :3\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num8, "71 Sector-0", new Vector3(-5.25f, -1.985f, 98.45f), new Vector3(-90f, 0f, -30f), vanillaStoryLogModel);
			int num9 = CustomStoryLogs.RegisterCustomLog("GordionSaga", "Monster - February 12, 1950", "\tOlivia Plannet. Year of 1950, month of February, day of the 12th. I am currently stationed on Sector-0.\\r\\n\\tWe've created something... Something indescribable. It's this.. thing? They told us to create a weapon of war, but we can't control this. \r\n\tThe higher ups call it \"Jeb\". There is a rumor that we are moving the operation to a different moon across the solar system due to the pure danger of this monster. I have no idea what we will do with the other entities, we barely know anything about Rapax-Folium, for all we know it could escape after we leave. But they say termination will cost too much time, time which could endanger all of us.\r\n\tSome people think that the higher-ups will start hiring people to find something, anything, to feed this crazed and hungry monster. Maybe on an abandoned moon to keep this private to the general public, but sadly, no one knows right now.\r\n\tJeb is insatiable, I have no clue what to do. It'll devour Thistle in its entirety if we don't do anything about it... So, since I have no idea what to do.. I am writing this log to let any future employees know to keep going, do not stop feeding this monster, it is the only way to keep us safe, to keep the nebula we call home.. safe.\r\n\r\n\r\n\r\n", false, false);
			CustomStoryLogs.RegisterCustomLogCollectable("GordionSaga", num9, "71 Sector-0", new Vector3(-50.625f, -0.975f, -105f), new Vector3(-90f, 0f, 60f), vanillaStoryLogModel);
		}

		private StoryLogs()
		{
		}
	}
}