Decompiled source of LethalPipeRemoval v1.7.5

LethalTubeRemoval.dll

Decompiled 2 weeks ago
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.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using LethalConfig;
using LethalConfig.ConfigItems;
using LethalTubeRemoval.Patches;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
[assembly: IgnoresAccessChecksTo("")]
[assembly: AssemblyCompany("LethalTubeRemoval")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+96a924473ffce36cd24836bb0ed9964ae716a7c1")]
[assembly: AssemblyProduct("LethalTubeRemoval")]
[assembly: AssemblyTitle("LethalTubeRemoval")]
[assembly: SecurityPermission(8, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : System.Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(/*Could not decode attribute arguments.*/)]
	internal sealed class NullableAttribute : System.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]
	[Embedded]
	[AttributeUsage(/*Could not decode attribute arguments.*/)]
	internal sealed class RefSafetyRulesAttribute : System.Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace LethalTubeRemoval
{
	public class Config
	{
		public enum RemovalMode
		{
			Renderer,
			Inactive,
			Deletion
		}

		private const string doormonitorrepos = "Door Monitor Reposition";

		private const string doorbuttonrepos = "Door Button Panel Reposition";

		private const string storagerepos = "Storage Cabinet Reposition";

		private const string terminalmove = "Terminal Reposition";

		private const string chargingcoil = "Charging Coil Reposition";

		private const string cliprepos = "Clipboard Reposition";

		private const string ventrepos = "Vent Reposition";

		private const string tankrepos = "Oxygen Tank Reposition";

		private const string filterrepos = "Air Filter Reposition";

		private const string inside = "Inside Ship";

		private const string outside = "Outside Ship";

		private const string storeItems = "Store Items";

		private const string misc = "Misc Modes";

		private const string mode = "Removal Mode: CAUTION";

		internal static ConfigEntry<bool> moveButtons;

		internal static ConfigEntry<float> xCordButtons;

		internal static ConfigEntry<float> yCordButtons;

		internal static ConfigEntry<float> zCordButtons;

		internal static ConfigEntry<float> xRotButtons;

		internal static ConfigEntry<float> yRotButtons;

		internal static ConfigEntry<float> zRotButtons;

		internal static ConfigEntry<bool> moveMonitor;

		internal static ConfigEntry<float> xCordMonitor;

		internal static ConfigEntry<float> yCordMonitor;

		internal static ConfigEntry<float> zCordMonitor;

		internal static ConfigEntry<float> xRotMonitor;

		internal static ConfigEntry<float> yRotMonitor;

		internal static ConfigEntry<float> zRotMonitor;

		internal static ConfigEntry<bool> moveStorage;

		internal static ConfigEntry<float> xCordStorage;

		internal static ConfigEntry<float> yCordStorage;

		internal static ConfigEntry<float> zCordStorage;

		internal static ConfigEntry<float> xRotStorage;

		internal static ConfigEntry<float> yRotStorage;

		internal static ConfigEntry<float> zRotStorage;

		internal static ConfigEntry<bool> customTerminal;

		internal static ConfigEntry<float> xCordTerm;

		internal static ConfigEntry<float> yCordTerm;

		internal static ConfigEntry<float> zCordTerm;

		internal static ConfigEntry<float> xRotTerm;

		internal static ConfigEntry<float> yRotTerm;

		internal static ConfigEntry<float> zRotTerm;

		internal static ConfigEntry<bool> moveCoil;

		internal static ConfigEntry<float> xCordCoil;

		internal static ConfigEntry<float> yCordCoil;

		internal static ConfigEntry<float> zCordCoil;

		internal static ConfigEntry<float> xRotCoil;

		internal static ConfigEntry<float> yRotCoil;

		internal static ConfigEntry<float> zRotCoil;

		internal static ConfigEntry<bool> moveClipboard;

		internal static ConfigEntry<float> xCordClip;

		internal static ConfigEntry<float> yCordClip;

		internal static ConfigEntry<float> zCordClip;

		internal static ConfigEntry<float> xRotClip;

		internal static ConfigEntry<float> yRotClip;

		internal static ConfigEntry<float> zRotClip;

		internal static ConfigEntry<bool> moveVent;

		internal static ConfigEntry<float> xCordVent;

		internal static ConfigEntry<float> yCordVent;

		internal static ConfigEntry<float> zCordVent;

		internal static ConfigEntry<float> xRotVent;

		internal static ConfigEntry<float> yRotVent;

		internal static ConfigEntry<float> zRotVent;

		internal static ConfigEntry<bool> moveFilter;

		internal static ConfigEntry<float> xCordFilter;

		internal static ConfigEntry<float> yCordFilter;

		internal static ConfigEntry<float> zCordFilter;

		internal static ConfigEntry<float> xRotFilter;

		internal static ConfigEntry<float> yRotFilter;

		internal static ConfigEntry<float> zRotFilter;

		internal static ConfigEntry<bool> moveTank;

		internal static ConfigEntry<float> xCordTank;

		internal static ConfigEntry<float> yCordTank;

		internal static ConfigEntry<float> zCordTank;

		internal static ConfigEntry<float> xRotTank;

		internal static ConfigEntry<float> yRotTank;

		internal static ConfigEntry<float> zRotTank;

		internal static ConfigEntry<bool> deleteTeleporterCord;

		internal static ConfigEntry<bool> moveTeleButtonsToDesk;

		internal static ConfigEntry<bool> deleteTube;

		internal static ConfigEntry<bool> deleteBunkbeds;

		internal static ConfigEntry<bool> deleteFileCabinets;

		internal static ConfigEntry<bool> deleteOxygenTank;

		internal static ConfigEntry<bool> deleteClipboard;

		internal static ConfigEntry<bool> deleteDoorGenerator;

		internal static ConfigEntry<bool> deleteBoots;

		internal static ConfigEntry<bool> deleteMask;

		internal static ConfigEntry<bool> deleteAirFilter;

		internal static ConfigEntry<bool> deleteStickyNote;

		internal static ConfigEntry<bool> deleteBatteries;

		internal static ConfigEntry<bool> deleteVent;

		internal static ConfigEntry<bool> deleteMonitorCords;

		internal static ConfigEntry<bool> deleteDoorSpeaker;

		internal static ConfigEntry<bool> deleteMainSpeaker;

		internal static ConfigEntry<bool> deletePosters;

		internal static ConfigEntry<bool> deleteClothingRack;

		internal static ConfigEntry<bool> deleteDoorTubes;

		internal static ConfigEntry<bool> deleteKeyboardCord;

		internal static ConfigEntry<bool> terminalReposition;

		internal static ConfigEntry<bool> deleteShelf;

		internal static ConfigEntry<bool> deleteDoorMonitor;

		internal static ConfigEntry<bool> deleteIndoorCam;

		internal static ConfigEntry<bool> deleteOutdoorCam;

		internal static ConfigEntry<bool> muteAudio;

		internal static ConfigEntry<bool> deleteFloodLight;

		internal static ConfigEntry<bool> deleteOutsideTubing;

		internal static ConfigEntry<bool> deleteMachinery;

		internal static ConfigEntry<bool> deleteRailing;

		internal static ConfigEntry<bool> deleteThrusterTube;

		internal static ConfigEntry<bool> deleteThrusters;

		internal static ConfigEntry<bool> deleteSupportBeams;

		internal static ConfigEntry<bool> deleteWeirdBox;

		internal static ConfigEntry<bool> deleteLeftMachinery;

		internal static ConfigEntry<bool> parkourMode;

		internal static ConfigEntry<bool> lowLightMode;

		internal static ConfigEntry<RemovalMode> removalMode;

		public Config(ConfigFile cfg)
		{
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Expected O, but got Unknown
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Expected O, but got Unknown
			//IL_009c: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Expected O, but got Unknown
			//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d5: Expected O, but got Unknown
			//IL_00fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0104: Expected O, but got Unknown
			//IL_0129: Unknown result type (might be due to invalid IL or missing references)
			//IL_0133: Expected O, but got Unknown
			//IL_0158: Unknown result type (might be due to invalid IL or missing references)
			//IL_0162: Expected O, but got Unknown
			//IL_0187: Unknown result type (might be due to invalid IL or missing references)
			//IL_0191: Expected O, but got Unknown
			//IL_01b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bc: Expected O, but got Unknown
			//IL_01dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e7: Expected O, but got Unknown
			//IL_0208: Unknown result type (might be due to invalid IL or missing references)
			//IL_0212: Expected O, but got Unknown
			//IL_0233: Unknown result type (might be due to invalid IL or missing references)
			//IL_023d: Expected O, but got Unknown
			//IL_025e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0268: Expected O, but got Unknown
			//IL_0289: Unknown result type (might be due to invalid IL or missing references)
			//IL_0293: Expected O, but got Unknown
			//IL_02b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02be: Expected O, but got Unknown
			//IL_02df: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e9: Expected O, but got Unknown
			//IL_030a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0314: Expected O, but got Unknown
			//IL_0335: Unknown result type (might be due to invalid IL or missing references)
			//IL_033f: Expected O, but got Unknown
			//IL_0360: Unknown result type (might be due to invalid IL or missing references)
			//IL_036a: Expected O, but got Unknown
			//IL_038b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0395: Expected O, but got Unknown
			//IL_03b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c0: Expected O, but got Unknown
			//IL_03e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_03eb: Expected O, but got Unknown
			//IL_040c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0416: Expected O, but got Unknown
			//IL_0437: Unknown result type (might be due to invalid IL or missing references)
			//IL_0441: Expected O, but got Unknown
			//IL_0462: Unknown result type (might be due to invalid IL or missing references)
			//IL_046c: Expected O, but got Unknown
			//IL_048d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0497: Expected O, but got Unknown
			//IL_04b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_04c2: Expected O, but got Unknown
			//IL_04e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ed: Expected O, but got Unknown
			//IL_050e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0518: Expected O, but got Unknown
			//IL_0539: Unknown result type (might be due to invalid IL or missing references)
			//IL_0543: Expected O, but got Unknown
			//IL_0564: Unknown result type (might be due to invalid IL or missing references)
			//IL_056e: Expected O, but got Unknown
			//IL_058f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0599: Expected O, but got Unknown
			//IL_05ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_05c4: Expected O, but got Unknown
			//IL_05e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ef: Expected O, but got Unknown
			//IL_0610: Unknown result type (might be due to invalid IL or missing references)
			//IL_061a: Expected O, but got Unknown
			//IL_063b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0645: Expected O, but got Unknown
			//IL_0666: Unknown result type (might be due to invalid IL or missing references)
			//IL_0670: Expected O, but got Unknown
			//IL_0691: Unknown result type (might be due to invalid IL or missing references)
			//IL_069b: Expected O, but got Unknown
			//IL_06bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_06c6: Expected O, but got Unknown
			//IL_06e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f1: Expected O, but got Unknown
			//IL_0712: Unknown result type (might be due to invalid IL or missing references)
			//IL_071c: Expected O, but got Unknown
			//IL_073d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0747: Expected O, but got Unknown
			//IL_0768: Unknown result type (might be due to invalid IL or missing references)
			//IL_0772: Expected O, but got Unknown
			//IL_0793: Unknown result type (might be due to invalid IL or missing references)
			//IL_079d: Expected O, but got Unknown
			//IL_07be: Unknown result type (might be due to invalid IL or missing references)
			//IL_07c8: Expected O, but got Unknown
			//IL_07e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_07f3: Expected O, but got Unknown
			//IL_0818: Unknown result type (might be due to invalid IL or missing references)
			//IL_0822: Expected O, but got Unknown
			//IL_0847: Unknown result type (might be due to invalid IL or missing references)
			//IL_0851: Expected O, but got Unknown
			//IL_0876: Unknown result type (might be due to invalid IL or missing references)
			//IL_0880: Expected O, but got Unknown
			//IL_08a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_08af: Expected O, but got Unknown
			//IL_08d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_08de: Expected O, but got Unknown
			//IL_0903: Unknown result type (might be due to invalid IL or missing references)
			//IL_090d: Expected O, but got Unknown
			//IL_092e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0938: Expected O, but got Unknown
			//IL_095d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0967: Expected O, but got Unknown
			//IL_098c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0996: Expected O, but got Unknown
			//IL_09bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_09c5: Expected O, but got Unknown
			//IL_09ea: Unknown result type (might be due to invalid IL or missing references)
			//IL_09f4: Expected O, but got Unknown
			//IL_0a19: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a23: Expected O, but got Unknown
			//IL_0a48: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a52: Expected O, but got Unknown
			//IL_0a73: Unknown result type (might be due to invalid IL or missing references)
			//IL_0a7d: Expected O, but got Unknown
			//IL_0aa2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0aac: Expected O, but got Unknown
			//IL_0ad1: Unknown result type (might be due to invalid IL or missing references)
			//IL_0adb: Expected O, but got Unknown
			//IL_0b00: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b0a: Expected O, but got Unknown
			//IL_0b2f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b39: Expected O, but got Unknown
			//IL_0b5e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b68: Expected O, but got Unknown
			//IL_0b8d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0b97: Expected O, but got Unknown
			//IL_0bb8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bc2: Expected O, but got Unknown
			//IL_0be7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0bf1: Expected O, but got Unknown
			//IL_0c16: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c20: Expected O, but got Unknown
			//IL_0c45: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c4f: Expected O, but got Unknown
			//IL_0c74: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c7e: Expected O, but got Unknown
			//IL_0ca3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cad: Expected O, but got Unknown
			//IL_0cd2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0cdc: Expected O, but got Unknown
			//IL_0cfd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d07: Expected O, but got Unknown
			//IL_0d2c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d36: Expected O, but got Unknown
			//IL_0d5b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d65: Expected O, but got Unknown
			//IL_0d8a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d94: Expected O, but got Unknown
			//IL_0db9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0dc3: Expected O, but got Unknown
			//IL_0de8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0df2: Expected O, but got Unknown
			//IL_0e17: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e21: Expected O, but got Unknown
			//IL_0e42: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e4c: Expected O, but got Unknown
			//IL_0e71: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e7b: Expected O, but got Unknown
			//IL_0ea0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eaa: Expected O, but got Unknown
			//IL_0ecf: Unknown result type (might be due to invalid IL or missing references)
			//IL_0ed9: Expected O, but got Unknown
			//IL_0efe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f08: Expected O, but got Unknown
			//IL_0f2d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f37: Expected O, but got Unknown
			//IL_0f5c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f66: Expected O, but got Unknown
			//IL_0f87: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f91: Expected O, but got Unknown
			//IL_0fb6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fc0: Expected O, but got Unknown
			//IL_0fe5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0fef: Expected O, but got Unknown
			//IL_1014: Unknown result type (might be due to invalid IL or missing references)
			//IL_101e: Expected O, but got Unknown
			//IL_1043: Unknown result type (might be due to invalid IL or missing references)
			//IL_104d: Expected O, but got Unknown
			//IL_1072: Unknown result type (might be due to invalid IL or missing references)
			//IL_107c: Expected O, but got Unknown
			//IL_10a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_10ab: Expected O, but got Unknown
			//IL_10cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_10d6: Expected O, but got Unknown
			//IL_10fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_1105: Expected O, but got Unknown
			//IL_112a: Unknown result type (might be due to invalid IL or missing references)
			//IL_1134: Expected O, but got Unknown
			//IL_1159: Unknown result type (might be due to invalid IL or missing references)
			//IL_115e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1164: Expected O, but got Unknown
			//IL_1189: Unknown result type (might be due to invalid IL or missing references)
			//IL_1193: Expected O, but got Unknown
			//IL_11b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_11c2: Expected O, but got Unknown
			//IL_11e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_11f2: Expected O, but got Unknown
			removalMode = cfg.Bind<RemovalMode>("Removal Mode: CAUTION", "Change Removal Type", RemovalMode.Renderer, "Sets the mode of which to remove objects. It is highly recommended to keep Renderer as your removal option if you do not know what these do or are using other mods. DELETION - completely deletes the object from within the game hierarchy. INACTIVE - sets the item as inactive which does not delete the object completely. RENDERER - Does not render the object and turns off its collision. This keeps the object active and available, you just do not see it and cannot touch it");
			terminalReposition = cfg.Bind<bool>("Terminal Reposition", "Automatic Terminal Reposition", false, "Sets the terminal to the left of the monitors by default.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(terminalReposition, false));
			customTerminal = cfg.Bind<bool>("Terminal Reposition", "Custom Terminal Coordinates", false, "Allows the custom coordinates to be set. [CAUTION] Having this enabled disables the native ship furniture moving feature. You can enable/disable this in real-time in the pause menu. I would reccomend changing these from the config file itself.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(customTerminal, false));
			xCordTerm = cfg.Bind<float>("Terminal Reposition", "X-Coordinate", 6.1759f, "Sets X-coordinate of Terminal");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordTerm, false));
			yCordTerm = cfg.Bind<float>("Terminal Reposition", "Y-Coordinate", 1.2561f, "Sets Y-coordinate of Terminal");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordTerm, false));
			zCordTerm = cfg.Bind<float>("Terminal Reposition", "Z-Coordinate", -9.1415f, "Sets Z-coordinate of Terminal");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordTerm, false));
			xRotTerm = cfg.Bind<float>("Terminal Reposition", "X-Rotation", 270f, "Sets X-Rotation of Terminal");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotTerm, false));
			yRotTerm = cfg.Bind<float>("Terminal Reposition", "Y-Rotation", 90f, "Sets Y-Rotation of Terminal");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotTerm, false));
			zRotTerm = cfg.Bind<float>("Terminal Reposition", "Z-Rotation", 0f, "Sets Z-Rotation of Terminal");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotTerm, false));
			muteAudio = cfg.Bind<bool>("Inside Ship", "Mute Speaker Audio", false, "Mutes the speakers, will not play intro noises, firing quotes, etc.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(muteAudio, false));
			deleteTube = cfg.Bind<bool>("Inside Ship", "Tube", true, "Deletes the tube on the floor");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteTube, false));
			deleteBunkbeds = cfg.Bind<bool>("Inside Ship", "BunkBeds", false, "Deletes the bunkbeds");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteBunkbeds, false));
			deleteFileCabinets = cfg.Bind<bool>("Inside Ship", "File Cabinets", false, "Deletes the file cabinets");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteFileCabinets, false));
			deleteOxygenTank = cfg.Bind<bool>("Inside Ship", "Oxygen Tank", false, "Deletes the oxygen tank");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteOxygenTank, false));
			deleteClipboard = cfg.Bind<bool>("Inside Ship", "Clipboard", false, "Deletes the clipboard");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteClipboard, false));
			deleteDoorGenerator = cfg.Bind<bool>("Inside Ship", "Door Generator", false, "Deletes the door generator");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteDoorGenerator, false));
			deleteBoots = cfg.Bind<bool>("Inside Ship", "Boots", false, "Deletes the boots under the clothing rack");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteBoots, false));
			deleteMask = cfg.Bind<bool>("Inside Ship", "Mask", false, "Deletes the mask on the control desk");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteMask, false));
			deleteAirFilter = cfg.Bind<bool>("Inside Ship", "Air Filter", false, "Deletes the air filter on the wall");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteAirFilter, false));
			deleteStickyNote = cfg.Bind<bool>("Inside Ship", "Sticky Note", false, "Deletes the sticky note");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteStickyNote, false));
			deleteBatteries = cfg.Bind<bool>("Inside Ship", "Batteries", false, "Deletes the batteries on control desk");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteBatteries, false));
			deleteVent = cfg.Bind<bool>("Inside Ship", "Vent", false, "Deletes the vent below the charging station");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteVent, false));
			deleteMonitorCords = cfg.Bind<bool>("Inside Ship", "Monitor Cords", false, "Deletes the cords behind the monitors");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteMonitorCords, false));
			deleteDoorSpeaker = cfg.Bind<bool>("Inside Ship", "Door Speaker", false, "Deletes the speaker near the ship door !!WARNING: If you are reading logs, this option will spam null audio warnings in v50.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteDoorSpeaker, false));
			deleteMainSpeaker = cfg.Bind<bool>("Inside Ship", "Main Speaker", false, "Deletes the main speaker that normally plays audio. WARNING: No ship-speaker audio will play if this is selected!");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteMainSpeaker, false));
			deletePosters = cfg.Bind<bool>("Inside Ship", "Posters", false, "Deletes the posters inside the ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deletePosters, false));
			deleteClothingRack = cfg.Bind<bool>("Inside Ship", "Clothing Rack", false, "Deletes the clothing rack. WARNING: Purchasable suits will not be able to be equipped if this is selected!");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteClothingRack, false));
			deleteDoorTubes = cfg.Bind<bool>("Inside Ship", "Door Tubes", false, "Deletes the tubes by the ship door.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteDoorTubes, false));
			deleteKeyboardCord = cfg.Bind<bool>("Inside Ship", "Keyboard Cord", true, "Deletes the cord coming out of the keyboard on the terminal");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteKeyboardCord, false));
			deleteShelf = cfg.Bind<bool>("Inside Ship", "Storage Shelf", false, "Deletes the storage shelf");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteShelf, false));
			deleteDoorMonitor = cfg.Bind<bool>("Inside Ship", "Door Monitor", false, "Deletes the monitor above the door buttons");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteDoorMonitor, false));
			deleteIndoorCam = cfg.Bind<bool>("Inside Ship", "Inside Camera", false, "Deletes the camera inside. CAUTION: THIS MAY CAUSE CONFLICTS WITH OTHER MODS");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteIndoorCam, false));
			deleteOutdoorCam = cfg.Bind<bool>("Inside Ship", "Outside Camera", false, "Deletes the camera outside. CAUTION: THIS MAY CAUSE CONFLICTS WITH OTHER MODS");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteOutdoorCam, false));
			deleteFloodLight = cfg.Bind<bool>("Outside Ship", "Floodlight", false, "Removes the floodlight outside the ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteFloodLight, false));
			deleteMachinery = cfg.Bind<bool>("Outside Ship", "Machinery Boxes", false, "Removes the machinery boxes on both sides of the ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteMachinery, false));
			deleteOutsideTubing = cfg.Bind<bool>("Outside Ship", "Tubing", false, "Removes the tubing outside the ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteOutsideTubing, false));
			deleteRailing = cfg.Bind<bool>("Outside Ship", "Railing", false, "Removes the railing outside the ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteRailing, false));
			deleteThrusterTube = cfg.Bind<bool>("Outside Ship", "Back Right Thruster Tube", false, "Removes the thruster tube in the back right. NOTE: Also deletes back right thruster");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteThrusterTube, false));
			deleteThrusters = cfg.Bind<bool>("Outside Ship", "All Thrusters", false, "Removes all thrusters.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteThrusters, false));
			deleteSupportBeams = cfg.Bind<bool>("Outside Ship", "Support Beams Under Ship", false, "Removes support beams.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteSupportBeams, false));
			deleteWeirdBox = cfg.Bind<bool>("Outside Ship", "Large Exhaust", false, "Removes large exhaust box near front of ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteWeirdBox, false));
			deleteLeftMachinery = cfg.Bind<bool>("Outside Ship", "Left Machinery", false, "Removes machinery and bottom tubing from left of ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteLeftMachinery, false));
			parkourMode = cfg.Bind<bool>("Misc Modes", "Parkour Mode", false, "Only for the bravest Company Employees. Removes catwalk and ladders from the outside of the ship.");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(parkourMode, false));
			lowLightMode = cfg.Bind<bool>("Misc Modes", "Low Light Mode", false, "Removes some lights inside the ship");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(lowLightMode, false));
			deleteTeleporterCord = cfg.Bind<bool>("Store Items", "Teleporter Cord", false, "Removes the long cord from the teleporter");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(deleteTeleporterCord, false));
			moveTeleButtonsToDesk = cfg.Bind<bool>("Store Items", "Teleporter Buttons", false, "Moves the teleporter buttons to the desk near the ship lever");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveTeleButtonsToDesk, false));
			moveCoil = cfg.Bind<bool>("Charging Coil Reposition", "Move Coil", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveCoil, false));
			xCordCoil = cfg.Bind<float>("Charging Coil Reposition", "X-Coordinate", -0.343f, "Sets X-coordinate of Charging Coil");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordCoil, false));
			yCordCoil = cfg.Bind<float>("Charging Coil Reposition", "Y-Coordinate", 1.2561f, "Sets Y-coordinate of Charging Coil");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordCoil, false));
			zCordCoil = cfg.Bind<float>("Charging Coil Reposition", "Z-Coordinate", -4.802f, "Sets Z-coordinate of Charging Coil");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordCoil, false));
			xRotCoil = cfg.Bind<float>("Charging Coil Reposition", "X-Rotation", 270f, "Sets X-Rotation of Charging Coil");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotCoil, false));
			yRotCoil = cfg.Bind<float>("Charging Coil Reposition", "Y-Rotation", 0.0009f, "Sets Y-Rotation of Charging Coil");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotCoil, false));
			zRotCoil = cfg.Bind<float>("Charging Coil Reposition", "Z-Rotation", 0f, "Sets Z-Rotation of Charging Coil");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotCoil, false));
			moveClipboard = cfg.Bind<bool>("Clipboard Reposition", "Move Clipboard", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveClipboard, false));
			xCordClip = cfg.Bind<float>("Clipboard Reposition", "X-Coordinate", 9.6715f, "Sets X-coordinate of Clipboard");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordClip, false));
			yCordClip = cfg.Bind<float>("Clipboard Reposition", "Y-Coordinate", 1.4404f, "Sets Y-coordinate of Clipboard");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordClip, false));
			zCordClip = cfg.Bind<float>("Clipboard Reposition", "Z-Coordinate", -13.505f, "Sets Z-coordinate of Clipboard");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordClip, false));
			xRotClip = cfg.Bind<float>("Clipboard Reposition", "X-Rotation", 359.9378f, "Sets X-Rotation of Clipboard");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotClip, false));
			yRotClip = cfg.Bind<float>("Clipboard Reposition", "Y-Rotation", 159.3217f, "Sets Y-Rotation of Clipboard");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotClip, false));
			zRotClip = cfg.Bind<float>("Clipboard Reposition", "Z-Rotation", 180.0557f, "Sets Z-Rotation of Clipboard");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotClip, false));
			moveVent = cfg.Bind<bool>("Vent Reposition", "Move Air Vent", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveVent, false));
			xCordVent = cfg.Bind<float>("Vent Reposition", "X-Coordinate", 2.7705f, "Sets X-coordinate of Air Vent");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordVent, false));
			yCordVent = cfg.Bind<float>("Vent Reposition", "Y-Coordinate", 0.7569f, "Sets Y-coordinate of Air Vent");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordVent, false));
			zCordVent = cfg.Bind<float>("Vent Reposition", "Z-Coordinate", -16.6512f, "Sets Z-coordinate of Air Vent");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordVent, false));
			xRotVent = cfg.Bind<float>("Vent Reposition", "X-Rotation", 0f, "Sets X-Rotation of Air Vent");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotVent, false));
			yRotVent = cfg.Bind<float>("Vent Reposition", "Y-Rotation", 270f, "Sets Y-Rotation of Air Vent");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotVent, false));
			zRotVent = cfg.Bind<float>("Vent Reposition", "Z-Rotation", 0f, "Sets Z-Rotation of Air Vent");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotVent, false));
			moveFilter = cfg.Bind<bool>("Air Filter Reposition", "Move Air Filter", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveFilter, false));
			xCordFilter = cfg.Bind<float>("Air Filter Reposition", "X-Coordinate", 9.2033f, "Sets X-coordinate of Air Filter");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordFilter, false));
			yCordFilter = cfg.Bind<float>("Air Filter Reposition", "Y-Coordinate", 3.8491f, "Sets Y-coordinate of Air Filter");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordFilter, false));
			zCordFilter = cfg.Bind<float>("Air Filter Reposition", "Z-Coordinate", -16.806f, "Sets Z-coordinate of Air Filter");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordFilter, false));
			xRotFilter = cfg.Bind<float>("Air Filter Reposition", "X-Rotation", 90f, "Sets X-Rotation of Air Filter");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotFilter, false));
			yRotFilter = cfg.Bind<float>("Air Filter Reposition", "Y-Rotation", 180f, "Sets Y-Rotation of Air Filter");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotFilter, false));
			zRotFilter = cfg.Bind<float>("Air Filter Reposition", "Z-Rotation", 0f, "Sets Z-Rotation of Air Filter");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotFilter, false));
			moveTank = cfg.Bind<bool>("Oxygen Tank Reposition", "Moves Oxygen Tank", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveTank, false));
			xCordTank = cfg.Bind<float>("Oxygen Tank Reposition", "X-Coordinate", 5.9905f, "Sets X-coordinate of Oxygen Tank");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordTank, false));
			yCordTank = cfg.Bind<float>("Oxygen Tank Reposition", "Y-Coordinate", 0.6609f, "Sets Y-coordinate of Oxygen Tank");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordTank, false));
			zCordTank = cfg.Bind<float>("Oxygen Tank Reposition", "Z-Coordinate", -11.0739f, "Sets Z-coordinate of Oxygen Tank");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordTank, false));
			xRotTank = cfg.Bind<float>("Oxygen Tank Reposition", "X-Rotation", 302.0863f, "Sets X-Rotation of Oxygen Tank");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotTank, false));
			yRotTank = cfg.Bind<float>("Oxygen Tank Reposition", "Y-Rotation", 351.514f, "Sets Y-Rotation of Oxygen Tank");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotTank, false));
			zRotTank = cfg.Bind<float>("Oxygen Tank Reposition", "Z-Rotation", 187.202f, "Sets Z-Rotation of Oxygen Tank");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotTank, false));
			moveStorage = cfg.Bind<bool>("Storage Cabinet Reposition", "Moves Storage Cabinet", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveStorage, false));
			xCordStorage = cfg.Bind<float>("Storage Cabinet Reposition", "X-Coordinate", -3.2815f, "Sets X-coordinate of Storage Cabinet");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordStorage, false));
			yCordStorage = cfg.Bind<float>("Storage Cabinet Reposition", "Y-Coordinate", -0.044f, "Sets Y-coordinate of Storage Cabinet");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordStorage, false));
			zCordStorage = cfg.Bind<float>("Storage Cabinet Reposition", "Z-Coordinate", -4.579f, "Sets Z-coordinate of Storage Cabinet");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordStorage, false));
			xRotStorage = cfg.Bind<float>("Storage Cabinet Reposition", "X-Rotation", 270.0198f, "Sets X-Rotation of Storage Cabinet");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotStorage, false));
			yRotStorage = cfg.Bind<float>("Storage Cabinet Reposition", "Y-Rotation", 0f, "Sets Y-Rotation of Storage Cabinet");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotStorage, false));
			zRotStorage = cfg.Bind<float>("Storage Cabinet Reposition", "Z-Rotation", 0f, "Sets Z-Rotation of Storage Cabinet");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotStorage, false));
			moveMonitor = cfg.Bind<bool>("Door Monitor Reposition", "Moves Door Monitor", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveMonitor, false));
			xCordMonitor = cfg.Bind<float>("Door Monitor Reposition", "X-Coordinate", -4.9451f, "Sets X-coordinate of Door Monitor");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordMonitor, false));
			yCordMonitor = cfg.Bind<float>("Door Monitor Reposition", "Y-Coordinate", 3.0192f, "Sets Y-coordinate of Door Monitor");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordMonitor, false));
			zCordMonitor = cfg.Bind<float>("Door Monitor Reposition", "Z-Coordinate", -8.7035f, "Sets Z-coordinate of Door Monitor");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zCordMonitor, false));
			xRotMonitor = cfg.Bind<float>("Door Monitor Reposition", "X-Rotation", 270f, "Sets X-Rotation of Door Monitor");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotMonitor, false));
			yRotMonitor = cfg.Bind<float>("Door Monitor Reposition", "Y-Rotation", 73.4758f, "Sets Y-Rotation of Door Monitor");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotMonitor, false));
			zRotMonitor = cfg.Bind<float>("Door Monitor Reposition", "Z-Rotation", 0f, "Sets Z-Rotation of Door Monitor");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(zRotMonitor, false));
			moveButtons = cfg.Bind<bool>("Door Button Panel Reposition", "Moves Door Buttons Panel", false, "Allows the custom coordinates to be set");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new BoolCheckBoxConfigItem(moveButtons, false));
			xCordButtons = cfg.Bind<float>("Door Button Panel Reposition", "X-Coordinate", -5.5485f, "Sets X-coordinate of Door Buttons Panel");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xCordButtons, false));
			yCordButtons = cfg.Bind<float>("Door Button Panel Reposition", "Y-Coordinate", 2.1882f, "Sets Y-coordinate of Door Buttons Panel");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yCordButtons, false));
			zCordButtons = cfg.Bind<float>("Door Button Panel Reposition", "Z-Coordinate", -8.823f, "Sets Z-coordinate of Door Buttons Panel");
			FloatInputFieldConfigItem val = new FloatInputFieldConfigItem(zCordButtons, false);
			LethalConfigManager.AddConfigItem((BaseConfigItem)val);
			xRotButtons = cfg.Bind<float>("Door Button Panel Reposition", "X-Rotation", 89.9802f, "Sets X-Rotation of Door Buttons Panel");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(xRotButtons, false));
			yRotButtons = cfg.Bind<float>("Door Button Panel Reposition", "Y-Rotation", 180f, "Sets Y-Rotation of Door Buttons Panel");
			LethalConfigManager.AddConfigItem((BaseConfigItem)new FloatInputFieldConfigItem(yRotButtons, false));
			zRotButtons = cfg.Bind<float>("Door Button Panel Reposition", "Z-Rotation", 0f, "Sets Z-Rotation of Door Buttons Panel");
			new FloatInputFieldConfigItem(zRotButtons, false);
			LethalConfigManager.AddConfigItem((BaseConfigItem)val);
		}
	}
	[BepInPlugin("Hamster.LethalTubeRemoval", "Lethal Tube Removal", "1.7.5")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class TubeRemoval : BaseUnityPlugin
	{
		private const string modGUID = "Hamster.LethalTubeRemoval";

		private const string modName = "Lethal Tube Removal";

		private const string modVersion = "1.7.5";

		private static TubeRemoval? Instance;

		private readonly Harmony harmony = new Harmony("Hamster.LethalTubeRemoval");

		internal ManualLogSource mls;

		[field: CompilerGenerated]
		public static Config MyConfig
		{
			[CompilerGenerated]
			get;
			[CompilerGenerated]
			internal set;
		}

		private void Awake()
		{
			if (Instance == null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Hamster.LethalTubeRemoval");
			mls.LogInfo((object)"Mod is woked");
			MyConfig = new Config(((BaseUnityPlugin)this).Config);
			harmony.PatchAll(typeof(TubeRemoval));
			harmony.PatchAll(typeof(TubeRemovalPatch));
			harmony.PatchAll(typeof(TerminalReposition));
			harmony.PatchAll(typeof(OutsideShipPatch));
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "LethalTubeRemoval";

		public const string PLUGIN_NAME = "LethalTubeRemoval";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}
namespace LethalTubeRemoval.Patches
{
	internal class OutsideShipPatch
	{
		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Start")]
		private static void OutsideShip()
		{
			GameObject val = GameObject.Find("Environment/HangarShip/ShipModels2b/ShipLightsPost");
			GameObject val2 = GameObject.Find("Environment/HangarShip/SideMachineryLeft");
			GameObject val3 = GameObject.Find("Environment/HangarShip/SideMachineryRight");
			GameObject val4 = GameObject.Find("Environment/HangarShip/Cube.005");
			GameObject val5 = GameObject.Find("Environment/HangarShip/Cube.006");
			GameObject val6 = GameObject.Find("Environment/HangarShip/Cube.007");
			GameObject val7 = GameObject.Find("Environment/HangarShip/Cube.008");
			GameObject val8 = GameObject.Find("Environment/HangarShip/NurbsPath.001");
			GameObject val9 = GameObject.Find("Environment/HangarShip/MeterBoxDevice.001");
			GameObject val10 = GameObject.Find("Environment/HangarShip/Pipework2.002");
			GameObject val11 = GameObject.Find("Environment/HangarShip/ShipRailPosts");
			GameObject val12 = GameObject.Find("Environment/HangarShip/ShipRails");
			GameObject val13 = GameObject.Find("Environment/HangarShip/ThrusterBackRight");
			GameObject val14 = GameObject.Find("Environment/HangarShip/ThrusterBackLeft");
			GameObject val15 = GameObject.Find("Environment/HangarShip/ThrusterFrontRight");
			GameObject val16 = GameObject.Find("Environment/HangarShip/ThrusterFrontLeft");
			GameObject val17 = GameObject.Find("Environment/HangarShip/ShipSupportBeams");
			GameObject val18 = GameObject.Find("Environment/HangarShip/ShipSupportBeams.001");
			GameObject val19 = GameObject.Find("Environment/HangarShip/Cube.004");
			GameObject val20 = GameObject.Find("Environment/HangarShip/CatwalkShip");
			GameObject val21 = GameObject.Find("Environment/HangarShip/CatwalkRailLining");
			GameObject val22 = GameObject.Find("Environment/HangarShip/CatwalkRailLiningB");
			GameObject val23 = GameObject.Find("Environment/HangarShip/CatwalkUnderneathSupports");
			GameObject val24 = GameObject.Find("Environment/HangarShip/OutsideShipRoom/Ladder");
			GameObject val25 = GameObject.Find("Environment/HangarShip/LadderShort");
			GameObject val26 = GameObject.Find("Environment/HangarShip/LadderShort (1)");
			GameObject val27 = GameObject.Find("Environment/HangarShip/ClimbOntoCatwalkHelper");
			if (Config.deleteFloodLight.Value)
			{
				Object.Destroy((Object)(object)val);
			}
			if (Config.deleteMachinery.Value)
			{
				Object.Destroy((Object)(object)val2);
				Object.Destroy((Object)(object)val3);
				Object.Destroy((Object)(object)val9);
				Object.Destroy((Object)(object)val10);
			}
			else if (Config.deleteLeftMachinery.Value)
			{
				Object.Destroy((Object)(object)val2);
				Object.Destroy((Object)(object)val10);
			}
			if (Config.deleteOutsideTubing.Value)
			{
				Object.Destroy((Object)(object)val4);
				Object.Destroy((Object)(object)val5);
				Object.Destroy((Object)(object)val6);
				Object.Destroy((Object)(object)val7);
				Object.Destroy((Object)(object)val8);
			}
			if (Config.deleteThrusters.Value)
			{
				Object.Destroy((Object)(object)val13);
				Object.Destroy((Object)(object)val15);
				Object.Destroy((Object)(object)val14);
				Object.Destroy((Object)(object)val16);
			}
			else if (Config.deleteThrusterTube.Value)
			{
				Object.Destroy((Object)(object)val13);
			}
			if (Config.deleteSupportBeams.Value)
			{
				Object.Destroy((Object)(object)val17);
				Object.Destroy((Object)(object)val18);
			}
			if (Config.deleteWeirdBox.Value)
			{
				Object.Destroy((Object)(object)val19);
			}
			if (Config.parkourMode.Value)
			{
				if (!Config.deleteSupportBeams.Value)
				{
					Object.Destroy((Object)(object)val17);
					Object.Destroy((Object)(object)val18);
				}
				Object.Destroy((Object)(object)val20);
				Object.Destroy((Object)(object)val21);
				Object.Destroy((Object)(object)val22);
				Object.Destroy((Object)(object)val23);
				Object.Destroy((Object)(object)val27);
				Object.Destroy((Object)(object)val11);
				Object.Destroy((Object)(object)val12);
				val24.SetActive(false);
				val25.SetActive(false);
				val26.SetActive(false);
			}
			else if (Config.deleteRailing.Value)
			{
				Object.Destroy((Object)(object)val11);
				Object.Destroy((Object)(object)val12);
			}
		}
	}
	[HarmonyPatch(typeof(GameObject))]
	internal class TerminalReposition
	{
		private static Terminal terminal;

		private static ShipTeleporter teleporter;

		[HarmonyPrefix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		private static void TerminalMove()
		{
			//IL_0048: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_004f: Unknown result type (might be due to invalid IL or missing references)
			if (Config.terminalReposition.Value)
			{
				AutoParentToShip component = GameObject.Find("Environment/HangarShip/Terminal").GetComponent<AutoParentToShip>();
				Vector3 positionOffset = default(Vector3);
				((Vector3)(ref positionOffset))..ctor(9.1888f, 0.971f, -4.4357f);
				Vector3 rotationOffset = default(Vector3);
				((Vector3)(ref rotationOffset))..ctor(270f, 359.8239f, 0f);
				component.positionOffset = positionOffset;
				component.rotationOffset = rotationOffset;
			}
		}

		[HarmonyPrefix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		private static void TerminalMoveCustom()
		{
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_0067: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			if (Config.customTerminal.Value)
			{
				AutoParentToShip component = GameObject.Find("Environment/HangarShip/Terminal").GetComponent<AutoParentToShip>();
				Vector3 positionOffset = default(Vector3);
				((Vector3)(ref positionOffset))..ctor(Config.xCordTerm.Value, Config.yCordTerm.Value, Config.zCordTerm.Value);
				Vector3 rotationOffset = default(Vector3);
				((Vector3)(ref rotationOffset))..ctor(Config.xRotTerm.Value, Config.yRotTerm.Value, Config.zRotTerm.Value);
				component.positionOffset = positionOffset;
				component.rotationOffset = rotationOffset;
			}
		}

		[HarmonyPatch(typeof(Terminal), "Start")]
		[HarmonyPostfix]
		private static void TerminalLightStart(Terminal __instance)
		{
			terminal = __instance;
			if (Config.lowLightMode.Value)
			{
				((Behaviour)terminal.terminalLight).enabled = true;
			}
		}

		[HarmonyPatch(typeof(Terminal), "SetTerminalInUseClientRpc")]
		[HarmonyPostfix]
		private static void TerminalLight(Terminal __instance)
		{
			terminal = __instance;
			if (Config.lowLightMode.Value)
			{
				((Behaviour)terminal.terminalLight).enabled = true;
			}
		}
	}
	[HarmonyPatch(typeof(GameObject))]
	internal class TubeRemovalPatch
	{
		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Start")]
		public static void TubeRemove()
		{
			//IL_0348: Unknown result type (might be due to invalid IL or missing references)
			//IL_05d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0378: Unknown result type (might be due to invalid IL or missing references)
			//IL_0607: Unknown result type (might be due to invalid IL or missing references)
			GameObject val = GameObject.Find("Environment/HangarShip/BezierCurve");
			GameObject val2 = GameObject.Find("Environment/HangarShip/Bunkbeds");
			GameObject val3 = GameObject.Find("Environment/HangarShip/FileCabinet");
			GameObject val4 = GameObject.Find("Environment/HangarShip/ScavengerModelSuitParts/Circle.002");
			GameObject val5 = GameObject.Find("Environment/HangarShip/StorageCloset");
			GameObject val6 = GameObject.Find("Environment/HangarShip/ClipboardManual");
			GameObject val7 = GameObject.Find("Environment/HangarShip/DoorGenerator");
			GameObject val8 = GameObject.Find("Environment/HangarShip/ScavengerModelSuitParts/Circle.004");
			GameObject val9 = GameObject.Find("Environment/HangarShip/ScavengerModelSuitParts/Circle.001");
			GameObject val10 = GameObject.Find("Environment/HangarShip/ShipModels2b/AirFilterThing");
			GameObject val11 = GameObject.Find("Environment/HangarShip/StickyNoteItem");
			GameObject val12 = GameObject.Find("Environment/HangarShip/VentEntrance/Hinge/VentCover");
			GameObject val13 = GameObject.Find("Environment/HangarShip/SmallDetails/BatterySingle");
			GameObject val14 = GameObject.Find("Environment/HangarShip/SmallDetails/BatterySingle (1)");
			GameObject val15 = GameObject.Find("Environment/HangarShip/SmallDetails/BatterySingle (2)");
			GameObject val16 = GameObject.Find("Environment/HangarShip/SmallDetails/BatteryPack");
			GameObject val17 = GameObject.Find("Environment/HangarShip/WallCords");
			GameObject val18 = GameObject.Find("Environment/HangarShip/ShipModels2b/Cube.005 (1)");
			GameObject val19 = GameObject.Find("Environment/HangarShip/Plane.001");
			GameObject val20 = GameObject.Find("Environment/HangarShip/NurbsPath.004");
			GameObject val21 = GameObject.Find("Environment/HangarShip/NurbsPath.002");
			GameObject val22 = GameObject.Find("ChangableSuit(Clone)");
			GameObject val23 = GameObject.Find("Environment/HangarShip/NurbsPath");
			GameObject val24 = GameObject.Find("Environment/HangarShip/Terminal/BezierCurve.001");
			GameObject val25 = GameObject.Find("Environment/HangarShip/ShipModels2b/Cube.005 (2)");
			GameObject val26 = GameObject.Find("Environment/HangarShip/ShipModels2b/Cube.005 (2)/SpeakerAudio");
			GameObject val27 = GameObject.Find("Environment/HangarShip/ShipModels2b/MonitorWall/SingleScreen");
			GameObject val28 = GameObject.Find("Environment/HangarShip/Cameras/FrontDoorSecurityCam");
			GameObject val29 = GameObject.Find("Environment/HangarShip/Cameras/ShipCamera");
			GameObject val30 = GameObject.Find("Environment/HangarShip/ShipElectricLights/Area Light (3)");
			GameObject val31 = GameObject.Find("Environment/HangarShip/ShipElectricLights/Area Light (4)");
			GameObject val32 = GameObject.Find("Environment/HangarShip/ShipElectricLights/Area Light (5)");
			GameObject val33 = GameObject.Find("Environment/HangarShip/ShipElectricLights/HangingLamp (2)");
			GameObject val34 = GameObject.Find("Environment/HangarShip/ShipElectricLights/HangingLamp (4)");
			GameObject val35 = GameObject.Find("ChangableSuit(Clone)");
			GameObject val36 = GameObject.Find("ChangableSuit(Clone)/SuitRenderer");
			GameObject val37 = GameObject.Find("ChangableSuit(Clone)/SuitHook");
			if (Config.deleteIndoorCam.Value)
			{
				val29.SetActive(false);
			}
			if (Config.deleteOutdoorCam.Value)
			{
				val28.SetActive(false);
			}
			if (Config.muteAudio.Value)
			{
				val26.SetActive(false);
			}
			if (Config.removalMode.Value == Config.RemovalMode.Deletion)
			{
				if (Config.deleteTube.Value)
				{
					Object.Destroy((Object)(object)val);
				}
				if (Config.deleteBunkbeds.Value)
				{
					Object.Destroy((Object)(object)val2);
				}
				if (Config.deleteFileCabinets.Value)
				{
					Object.Destroy((Object)(object)val3);
				}
				if (Config.deleteOxygenTank.Value)
				{
					Object.Destroy((Object)(object)val4);
				}
				if (Config.deleteShelf.Value)
				{
					Object.Destroy((Object)(object)val5);
				}
				if (Config.deleteClipboard.Value)
				{
					Object.Destroy((Object)(object)val6);
				}
				if (Config.deleteDoorGenerator.Value)
				{
					Object.Destroy((Object)(object)val7);
				}
				if (Config.deleteBoots.Value)
				{
					Object.Destroy((Object)(object)val8);
				}
				if (Config.deleteMask.Value)
				{
					Object.Destroy((Object)(object)val9);
				}
				if (Config.deleteAirFilter.Value)
				{
					Object.Destroy((Object)(object)val10);
				}
				if (Config.deleteStickyNote.Value)
				{
					Object.Destroy((Object)(object)val11);
				}
				if (Config.deleteBatteries.Value)
				{
					Object.Destroy((Object)(object)val13);
					Object.Destroy((Object)(object)val14);
					Object.Destroy((Object)(object)val15);
					Object.Destroy((Object)(object)val16);
				}
				if (Config.deleteVent.Value)
				{
					Object.Destroy((Object)(object)val12);
				}
				if (Config.deleteMonitorCords.Value)
				{
					Object.Destroy((Object)(object)val17);
				}
				if (Config.deleteDoorSpeaker.Value)
				{
					Vector3 position = default(Vector3);
					((Vector3)(ref position))..ctor(11.4571f, 1.9706f, -16.9578f);
					val18.transform.position = position;
				}
				if (Config.deleteMainSpeaker.Value)
				{
					Vector3 position2 = default(Vector3);
					((Vector3)(ref position2))..ctor(11.4571f, 1.9706f, -16.9578f);
					val25.transform.position = position2;
				}
				if (Config.deletePosters.Value)
				{
					Object.Destroy((Object)(object)val19);
				}
				if (Config.deleteClothingRack.Value)
				{
					Object.Destroy((Object)(object)val21);
					Object.Destroy((Object)(object)val20);
					Object.Destroy((Object)(object)val22);
				}
				if (Config.deleteDoorTubes.Value)
				{
					Object.Destroy((Object)(object)val23);
				}
				if (Config.deleteKeyboardCord.Value)
				{
					Object.Destroy((Object)(object)val24);
				}
				if (Config.lowLightMode.Value)
				{
					Object.Destroy((Object)(object)val30);
					Object.Destroy((Object)(object)val31);
					Object.Destroy((Object)(object)val32);
					Object.Destroy((Object)(object)val33);
					Object.Destroy((Object)(object)val34);
				}
				if (Config.deleteDoorMonitor.Value)
				{
					Object.Destroy((Object)(object)val27);
				}
			}
			else if (Config.removalMode.Value == Config.RemovalMode.Inactive)
			{
				if (Config.deleteTube.Value)
				{
					val.gameObject.SetActive(false);
				}
				if (Config.deleteBunkbeds.Value)
				{
					val2.gameObject.SetActive(false);
				}
				if (Config.deleteFileCabinets.Value)
				{
					val3.gameObject.SetActive(false);
				}
				if (Config.deleteOxygenTank.Value)
				{
					val4.gameObject.SetActive(false);
				}
				if (Config.deleteShelf.Value)
				{
					val5.gameObject.SetActive(false);
				}
				if (Config.deleteClipboard.Value)
				{
					Object.Destroy((Object)(object)val6);
				}
				if (Config.deleteDoorGenerator.Value)
				{
					val7.gameObject.SetActive(false);
				}
				if (Config.deleteBoots.Value)
				{
					val8.gameObject.SetActive(false);
				}
				if (Config.deleteMask.Value)
				{
					val9.gameObject.SetActive(false);
				}
				if (Config.deleteAirFilter.Value)
				{
					val10.gameObject.SetActive(false);
				}
				if (Config.deleteStickyNote.Value)
				{
					val11.gameObject.SetActive(false);
				}
				if (Config.deleteBatteries.Value)
				{
					val13.gameObject.SetActive(false);
					val14.gameObject.SetActive(false);
					val15.gameObject.SetActive(false);
					val16.gameObject.SetActive(false);
				}
				if (Config.deleteVent.Value)
				{
					val12.gameObject.SetActive(false);
				}
				if (Config.deleteMonitorCords.Value)
				{
					val17.gameObject.SetActive(false);
				}
				if (Config.deleteDoorSpeaker.Value)
				{
					Vector3 position3 = default(Vector3);
					((Vector3)(ref position3))..ctor(11.4571f, 1.9706f, -16.9578f);
					val18.transform.position = position3;
				}
				if (Config.deleteMainSpeaker.Value)
				{
					Vector3 position4 = default(Vector3);
					((Vector3)(ref position4))..ctor(11.4571f, 1.9706f, -16.9578f);
					val25.transform.position = position4;
				}
				if (Config.deletePosters.Value)
				{
					val19.gameObject.SetActive(false);
				}
				if (Config.deleteClothingRack.Value)
				{
					val35.gameObject.SetActive(false);
					val21.gameObject.SetActive(false);
					val37.gameObject.SetActive(false);
					val36.gameObject.SetActive(false);
				}
				if (Config.deleteDoorTubes.Value)
				{
					val23.gameObject.SetActive(false);
				}
				if (Config.deleteKeyboardCord.Value)
				{
					val24.gameObject.SetActive(false);
				}
				if (Config.lowLightMode.Value)
				{
					val30.gameObject.SetActive(false);
					val31.gameObject.SetActive(false);
					val32.gameObject.SetActive(false);
					val33.gameObject.SetActive(false);
					val34.gameObject.SetActive(false);
				}
				if (Config.deleteDoorMonitor.Value)
				{
					val27.gameObject.SetActive(false);
				}
			}
			else
			{
				if (Config.deleteTube.Value)
				{
					((Renderer)val.GetComponent<MeshRenderer>()).enabled = false;
				}
				if (Config.deleteBunkbeds.Value)
				{
					((Renderer)val2.GetComponent<MeshRenderer>()).enabled = false;
					BoxCollider[] componentsInChildren = val2.GetComponentsInChildren<BoxCollider>();
					for (int i = 0; i < componentsInChildren.Length; i++)
					{
						((Collider)componentsInChildren[i]).enabled = false;
					}
				}
				if (Config.deleteFileCabinets.Value)
				{
					((Renderer)val3.GetComponent<MeshRenderer>()).enabled = false;
					((Collider)val3.GetComponent<BoxCollider>()).enabled = false;
				}
				if (Config.deleteOxygenTank.Value)
				{
					((Renderer)val4.GetComponent<MeshRenderer>()).enabled = false;
				}
				if (Config.deleteShelf.Value)
				{
					((Renderer)val5.GetComponent<MeshRenderer>()).enabled = false;
					((Collider)val5.GetComponent<MeshCollider>()).enabled = false;
					GameObject obj = GameObject.Find("Environment/HangarShip/StorageCloset/Cube.000");
					GameObject val38 = GameObject.Find("Environment/HangarShip/StorageCloset/Cube.000/Cube");
					((Renderer)obj.GetComponent<MeshRenderer>()).enabled = false;
					((Behaviour)obj.GetComponentInChildren<InteractTrigger>()).enabled = false;
					((Collider)val38.GetComponent<BoxCollider>()).enabled = false;
					BoxCollider[] componentsInChildren = obj.GetComponentsInChildren<BoxCollider>();
					for (int i = 0; i < componentsInChildren.Length; i++)
					{
						((Collider)componentsInChildren[i]).enabled = false;
					}
					val38.SetActive(false);
					GameObject obj2 = GameObject.Find("Environment/HangarShip/StorageCloset/Cube.002");
					GameObject val39 = GameObject.Find("Environment/HangarShip/StorageCloset/Cube.002/Cube");
					((Renderer)obj2.GetComponent<MeshRenderer>()).enabled = false;
					((Behaviour)obj2.GetComponentInChildren<InteractTrigger>()).enabled = false;
					((Collider)val39.GetComponent<BoxCollider>()).enabled = false;
					componentsInChildren = obj2.GetComponentsInChildren<BoxCollider>();
					for (int i = 0; i < componentsInChildren.Length; i++)
					{
						((Collider)componentsInChildren[i]).enabled = false;
					}
					val39.SetActive(false);
					GameObject val40 = GameObject.Find("Environment/HangarShip/StorageCloset/ObjectPlacements");
					componentsInChildren = val40.GetComponentsInChildren<BoxCollider>();
					for (int i = 0; i < componentsInChildren.Length; i++)
					{
						((Collider)componentsInChildren[i]).enabled = false;
					}
					InteractTrigger[] componentsInChildren2 = val40.GetComponentsInChildren<InteractTrigger>();
					for (int i = 0; i < componentsInChildren2.Length; i++)
					{
						((Behaviour)componentsInChildren2[i]).enabled = false;
					}
				}
			}
			if (Config.deleteClipboard.Value)
			{
				val6.SetActive(false);
			}
			if (Config.deleteDoorGenerator.Value)
			{
				((Renderer)val7.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteBoots.Value)
			{
				((Renderer)val8.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteMask.Value)
			{
				((Renderer)val9.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteAirFilter.Value)
			{
				((Renderer)val10.GetComponent<MeshRenderer>()).enabled = false;
				((Collider)val10.GetComponent<MeshCollider>()).enabled = false;
			}
			if (Config.deleteStickyNote.Value)
			{
				((Renderer)val11.GetComponent<MeshRenderer>()).enabled = false;
				((Collider)val11.GetComponent<BoxCollider>()).enabled = false;
			}
			if (Config.deleteBatteries.Value)
			{
				((Renderer)val13.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val14.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val15.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val16.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteVent.Value)
			{
				((Renderer)val12.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteMonitorCords.Value)
			{
				((Renderer)val17.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteDoorSpeaker.Value)
			{
				((Renderer)val18.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteMainSpeaker.Value)
			{
				((Renderer)val25.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deletePosters.Value)
			{
				((Renderer)val19.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteClothingRack.Value)
			{
				((Behaviour)val35.GetComponent<InteractTrigger>()).enabled = false;
				((Collider)val35.GetComponent<BoxCollider>()).enabled = false;
				((Renderer)val21.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val37.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val36.GetComponent<SkinnedMeshRenderer>()).enabled = false;
			}
			if (Config.deleteDoorTubes.Value)
			{
				((Renderer)val23.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteKeyboardCord.Value)
			{
				((Renderer)val24.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.lowLightMode.Value)
			{
				((Renderer)val30.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val31.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val32.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val33.GetComponent<MeshRenderer>()).enabled = false;
				((Renderer)val34.GetComponent<MeshRenderer>()).enabled = false;
			}
			if (Config.deleteDoorMonitor.Value)
			{
				((Renderer)val27.GetComponent<MeshRenderer>()).enabled = false;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		public static void CoilCustomCoords()
		{
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_0071: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveCoil.Value)
			{
				GameObject obj = GameObject.Find("Environment/HangarShip/ShipModels2b/ChargeStation");
				Vector3 localPosition = default(Vector3);
				((Vector3)(ref localPosition))..ctor(Config.xCordCoil.Value, Config.yCordCoil.Value, Config.zCordCoil.Value);
				Vector3 eulerAngles = default(Vector3);
				((Vector3)(ref eulerAngles))..ctor(Config.xRotCoil.Value, Config.yRotCoil.Value, Config.zRotCoil.Value);
				obj.transform.localPosition = localPosition;
				obj.transform.eulerAngles = eulerAngles;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		public static void VentCustomCoords()
		{
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveVent.Value && !Config.deleteVent.Value)
			{
				GameObject obj = GameObject.Find("Environment/HangarShip/VentEntrance/Hinge");
				Vector3 localPosition = default(Vector3);
				((Vector3)(ref localPosition))..ctor(Config.xCordVent.Value, Config.yCordVent.Value, Config.zCordVent.Value);
				Vector3 eulerAngles = default(Vector3);
				((Vector3)(ref eulerAngles))..ctor(Config.xRotVent.Value, Config.yRotVent.Value, Config.zRotVent.Value);
				obj.transform.localPosition = localPosition;
				obj.transform.eulerAngles = eulerAngles;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		public static void TankCustomCoords()
		{
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveTank.Value && !Config.deleteOxygenTank.Value)
			{
				GameObject obj = GameObject.Find("Environment/HangarShip/ScavengerModelSuitParts/Circle.002");
				Vector3 localPosition = default(Vector3);
				((Vector3)(ref localPosition))..ctor(Config.xCordTank.Value, Config.yCordTank.Value, Config.zCordTank.Value);
				Vector3 eulerAngles = default(Vector3);
				((Vector3)(ref eulerAngles))..ctor(Config.xRotTank.Value, Config.yRotTank.Value, Config.zRotTank.Value);
				obj.transform.localPosition = localPosition;
				obj.transform.eulerAngles = eulerAngles;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		public static void FilterCustomCoords()
		{
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveFilter.Value && !Config.deleteAirFilter.Value)
			{
				GameObject obj = GameObject.Find("Environment/HangarShip/ShipModels2b/AirFilterThing");
				Vector3 localPosition = default(Vector3);
				((Vector3)(ref localPosition))..ctor(Config.xCordFilter.Value, Config.yCordFilter.Value, Config.zCordFilter.Value);
				Vector3 eulerAngles = default(Vector3);
				((Vector3)(ref eulerAngles))..ctor(Config.xRotFilter.Value, Config.yRotFilter.Value, Config.zRotFilter.Value);
				obj.transform.localPosition = localPosition;
				obj.transform.eulerAngles = eulerAngles;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Start")]
		public static void ClipboardCustomCoords()
		{
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveClipboard.Value)
			{
				GameObject obj = GameObject.Find("Environment/HangarShip/ClipboardManual");
				Vector3 position = default(Vector3);
				((Vector3)(ref position))..ctor(Config.xCordClip.Value, Config.yCordClip.Value, Config.zCordClip.Value);
				Vector3 eulerAngles = default(Vector3);
				((Vector3)(ref eulerAngles))..ctor(Config.xRotClip.Value, Config.yRotClip.Value, Config.zRotClip.Value);
				ClipboardItem component = obj.GetComponent<ClipboardItem>();
				((Behaviour)component).enabled = false;
				obj.transform.position = position;
				((Behaviour)component).enabled = true;
				obj.transform.eulerAngles = eulerAngles;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(ShipTeleporter), "Awake")]
		private static void TeleporterCord()
		{
			if (Config.deleteTeleporterCord.Value && Object.op_Implicit((Object)(object)GameObject.Find("Teleporter(Clone)/ButtonContainer/LongCord")))
			{
				((Renderer)GameObject.Find("Teleporter(Clone)/ButtonContainer/LongCord").GetComponent<MeshRenderer>()).enabled = false;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(ShipTeleporter), "Awake")]
		public static void TeleporterButtons()
		{
			if (Config.moveTeleButtonsToDesk.Value)
			{
				Object.op_Implicit((Object)(object)GameObject.Find("Teleporter(Clone)/ButtonContainer"));
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(ShipTeleporter), "Awake")]
		public static void InverseTeleporterButtons()
		{
			if (Config.moveTeleButtonsToDesk.Value)
			{
				Object.op_Implicit((Object)(object)GameObject.Find("InverseTeleporter(Clone)/ButtonContainer"));
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		private static void StoreageCabinetMove()
		{
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveStorage.Value && Object.op_Implicit((Object)(object)GameObject.Find("Environment/HangarShip/StorageCloset")))
			{
				AutoParentToShip component = GameObject.Find("Environment/HangarShip/StorageCloset").GetComponent<AutoParentToShip>();
				Vector3 positionOffset = default(Vector3);
				((Vector3)(ref positionOffset))..ctor(Config.xCordStorage.Value, Config.yCordStorage.Value, Config.zCordStorage.Value);
				Vector3 rotationOffset = default(Vector3);
				((Vector3)(ref rotationOffset))..ctor(Config.xRotStorage.Value, Config.yRotStorage.Value, Config.zRotStorage.Value);
				component.positionOffset = positionOffset;
				component.rotationOffset = rotationOffset;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Start")]
		private static void AutoParentAdd()
		{
			if (Object.op_Implicit((Object)(object)GameObject.Find("Environment/HangarShip/ShipModels2b/MonitorWall/SingleScreen")))
			{
				GameObject.Find("Environment/HangarShip/ShipModels2b/MonitorWall/SingleScreen").AddComponent<AutoParentToShip>();
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		private static void DoorMonitorMove()
		{
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveMonitor.Value && Object.op_Implicit((Object)(object)GameObject.Find("Environment/HangarShip/ShipModels2b/MonitorWall/SingleScreen")))
			{
				AutoParentToShip component = GameObject.Find("Environment/HangarShip/ShipModels2b/MonitorWall/SingleScreen").GetComponent<AutoParentToShip>();
				Vector3 positionOffset = default(Vector3);
				((Vector3)(ref positionOffset))..ctor(Config.xCordMonitor.Value, Config.yCordMonitor.Value, Config.zCordMonitor.Value);
				Vector3 rotationOffset = default(Vector3);
				((Vector3)(ref rotationOffset))..ctor(Config.xRotMonitor.Value, Config.yRotMonitor.Value, Config.zRotMonitor.Value);
				component.positionOffset = positionOffset;
				component.rotationOffset = rotationOffset;
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(StartOfRound), "Update")]
		private static void DoorButtonsMove()
		{
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0082: Unknown result type (might be due to invalid IL or missing references)
			if (Config.moveButtons.Value && Object.op_Implicit((Object)(object)GameObject.Find("Environment/HangarShip/ShipModels2b/MonitorWall/SingleScreen")))
			{
				GameObject obj = GameObject.Find("Environment/HangarShip/AnimatedShipDoor/HangarDoorButtonPanel");
				Vector3 localPosition = default(Vector3);
				((Vector3)(ref localPosition))..ctor(Config.xCordButtons.Value, Config.yCordButtons.Value, Config.zCordButtons.Value);
				Vector3 eulerAngles = default(Vector3);
				((Vector3)(ref eulerAngles))..ctor(Config.xRotButtons.Value, Config.yRotButtons.Value, Config.zRotButtons.Value);
				obj.transform.localPosition = localPosition;
				obj.transform.eulerAngles = eulerAngles;
			}
		}
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(/*Could not decode attribute arguments.*/)]
	internal sealed class IgnoresAccessChecksToAttribute : System.Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}