Decompiled source of Tribal Libary v2.1.1

plugins/ATribalLibary.dll

Decompiled 6 months 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 DiskCardGame;
using InscryptionAPI.Card;
using InscryptionAPI.Helpers;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("ATribalLibary")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("A Libary of Tribes")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyInformationalVersion("2.1.0+c1792eac24c17c94b16d4e7fcd760bd53dfdda2a")]
[assembly: AssemblyProduct("ATribalLibary")]
[assembly: AssemblyTitle("ATribalLibary")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("2.1.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace Tribal_Libary
{
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "ATribalLibary";

		public const string PLUGIN_NAME = "ATribalLibary";

		public const string PLUGIN_VERSION = "2.1.0";
	}
}
namespace TribalLibary
{
	[BepInPlugin("tribes.libary", "ATribalLibary", "2.1.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		private const string PluginGuid = "tribes.libary";

		private const string PluginName = "ATribalLibary";

		private const string PluginVersion = "2.1.0";

		public static Tribe abominationTribe;

		public static Tribe amphibianTribe;

		public static Tribe androidTribe;

		public static Tribe cellsTribe;

		public static Tribe ceremorphTribe;

		public static Tribe chessTribe;

		public static Tribe conduitsTribe;

		public static Tribe cryptidTribe;

		public static Tribe fairyTribe;

		public static Tribe felineTribe;

		public static Tribe fishTribe;

		public static Tribe fleshyTribe;

		public static Tribe fungusTribe;

		public static Tribe gemsTribe;

		public static Tribe guardianTribe;

		public static Tribe hellionTribe;

		public static Tribe horrorTribe;

		public static Tribe humanoidTribe;

		public static Tribe lichTribe;

		public static Tribe machineTribe;

		public static Tribe mulluskTribe;

		public static Tribe mythicalTribe;

		public static Tribe nightmareTribe;

		public static Tribe objectTribe;

		public static Tribe planetTribe;

		public static Tribe plantTribe;

		public static Tribe possessedTribe;

		public static Tribe rodentTribe;

		public static Tribe scholarTribe;

		public static Tribe securityTribe;

		public static Tribe shapelessTribe;

		public static Tribe shapeshifterTribe;

		public static Tribe skeletalTribe;

		public static Tribe spectralTribe;

		public static Tribe stoneTribe;

		public static Tribe utilityTribe;

		public static Tribe wingedbeastTribe;

		public void Awake()
		{
			//IL_0033: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_0062: 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_0091: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_011e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0123: Unknown result type (might be due to invalid IL or missing references)
			//IL_014d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0152: Unknown result type (might be due to invalid IL or missing references)
			//IL_017c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0181: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01da: 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_0209: Unknown result type (might be due to invalid IL or missing references)
			//IL_020e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0238: Unknown result type (might be due to invalid IL or missing references)
			//IL_023d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0267: Unknown result type (might be due to invalid IL or missing references)
			//IL_026c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0296: Unknown result type (might be due to invalid IL or missing references)
			//IL_029b: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0323: Unknown result type (might be due to invalid IL or missing references)
			//IL_0328: Unknown result type (might be due to invalid IL or missing references)
			//IL_0352: Unknown result type (might be due to invalid IL or missing references)
			//IL_0357: Unknown result type (might be due to invalid IL or missing references)
			//IL_0381: Unknown result type (might be due to invalid IL or missing references)
			//IL_0386: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_03df: Unknown result type (might be due to invalid IL or missing references)
			//IL_03e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_040e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0413: Unknown result type (might be due to invalid IL or missing references)
			//IL_043d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0442: Unknown result type (might be due to invalid IL or missing references)
			//IL_046c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0471: Unknown result type (might be due to invalid IL or missing references)
			//IL_049b: Unknown result type (might be due to invalid IL or missing references)
			//IL_04a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_04cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_04fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0528: Unknown result type (might be due to invalid IL or missing references)
			//IL_052d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0557: Unknown result type (might be due to invalid IL or missing references)
			//IL_055c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0586: Unknown result type (might be due to invalid IL or missing references)
			//IL_058b: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_05e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_05e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0613: Unknown result type (might be due to invalid IL or missing references)
			//IL_0618: Unknown result type (might be due to invalid IL or missing references)
			//IL_0642: Unknown result type (might be due to invalid IL or missing references)
			//IL_0647: Unknown result type (might be due to invalid IL or missing references)
			//IL_0671: Unknown result type (might be due to invalid IL or missing references)
			//IL_0676: Unknown result type (might be due to invalid IL or missing references)
			//IL_06a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_06a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_06cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d4: Unknown result type (might be due to invalid IL or missing references)
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Sucsessfully Loaded ATribalLibary!");
			int num = 0;
			abominationTribe = TribeManager.Add("tribes.libary", "abomination", TextureHelper.GetImageAsTexture("tribeicon_abomination.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_BASIC_abomination.png", (FilterMode)0));
			num++;
			amphibianTribe = TribeManager.Add("tribes.libary", "amphibian", TextureHelper.GetImageAsTexture("tribeicon_amphibian.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_NATURE_amphibian.png", (FilterMode)0));
			num++;
			androidTribe = TribeManager.Add("tribes.libary", "android", TextureHelper.GetImageAsTexture("tribeicon_android.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_TECH_android.png", (FilterMode)0));
			num++;
			cellsTribe = TribeManager.Add("tribes.libary", "cells", TextureHelper.GetImageAsTexture("tribeicon_cells.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_TECH_cells.png", (FilterMode)0));
			num++;
			ceremorphTribe = TribeManager.Add("tribes.libary", "ceremorph", TextureHelper.GetImageAsTexture("tribeicon_ceremorph.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_MAGIKS_ceremorph.png", (FilterMode)0));
			num++;
			chessTribe = TribeManager.Add("tribes.libary", "chess", TextureHelper.GetImageAsTexture("tribeicon_chess.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_TECH_chess.png", (FilterMode)0));
			num++;
			conduitsTribe = TribeManager.Add("tribes.libary", "conduits", TextureHelper.GetImageAsTexture("tribeicon_conduits.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_TECH_conduits.png", (FilterMode)0));
			num++;
			cryptidTribe = TribeManager.Add("tribes.libary", "cryptid", TextureHelper.GetImageAsTexture("tribeicon_cryptid.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_cryptid.png", (FilterMode)0));
			num++;
			fairyTribe = TribeManager.Add("tribes.libary", "fairy", TextureHelper.GetImageAsTexture("tribeicon_fairy.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_MAGIKS_fairy.png", (FilterMode)0));
			num++;
			felineTribe = TribeManager.Add("tribes.libary", "feline", TextureHelper.GetImageAsTexture("tribeicon_feline.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_NATURE_feline.png", (FilterMode)0));
			num++;
			fishTribe = TribeManager.Add("tribes.libary", "fish", TextureHelper.GetImageAsTexture("tribeicon_fish.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_NATURE_fish.png", (FilterMode)0));
			num++;
			fleshyTribe = TribeManager.Add("tribes.libary", "fleshy", TextureHelper.GetImageAsTexture("tribeicon_zombie.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_zombie.png", (FilterMode)0));
			num++;
			fungusTribe = TribeManager.Add("tribes.libary", "fungus", TextureHelper.GetImageAsTexture("tribeicon_fungus.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_BASIC_fungus.png", (FilterMode)0));
			num++;
			gemsTribe = TribeManager.Add("tribes.libary", "gems", TextureHelper.GetImageAsTexture("tribeicon_gems.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_MAGIKS_gems.png", (FilterMode)0));
			num++;
			guardianTribe = TribeManager.Add("tribes.libary", "guardian", TextureHelper.GetImageAsTexture("tribeicon_guardian.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_MAGIKS_guardian.png", (FilterMode)0));
			num++;
			hellionTribe = TribeManager.Add("tribes.libary", "hellion", TextureHelper.GetImageAsTexture("tribeicon_hellion.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_hellion.png", (FilterMode)0));
			num++;
			horrorTribe = TribeManager.Add("tribes.libary", "horror", TextureHelper.GetImageAsTexture("tribeicon_horror.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_horror.png", (FilterMode)0));
			num++;
			humanoidTribe = TribeManager.Add("tribes.libary", "humanoid", TextureHelper.GetImageAsTexture("tribeicon_humanoid.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_NATURE_humanoid.png", (FilterMode)0));
			num++;
			lichTribe = TribeManager.Add("tribes.libary", "lich", TextureHelper.GetImageAsTexture("tribeicon_lich.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_MAGIKS_lich.png", (FilterMode)0));
			num++;
			machineTribe = TribeManager.Add("tribes.libary", "machine", TextureHelper.GetImageAsTexture("tribeicon_machine.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_TECH_machine.png", (FilterMode)0));
			num++;
			mulluskTribe = TribeManager.Add("tribes.libary", "mullusk", TextureHelper.GetImageAsTexture("tribeicon_mullusk.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_mullusk.png", (FilterMode)0));
			num++;
			mythicalTribe = TribeManager.Add("tribes.libary", "mythical", TextureHelper.GetImageAsTexture("tribeicon_mythical.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_NATURE_mythical.png", (FilterMode)0));
			num++;
			nightmareTribe = TribeManager.Add("tribes.libary", "nightmare", TextureHelper.GetImageAsTexture("tribeicon_nightmare.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_nightmare.png", (FilterMode)0));
			num++;
			objectTribe = TribeManager.Add("tribes.libary", "object", TextureHelper.GetImageAsTexture("tribeicon_object.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_BASIC_object.png", (FilterMode)0));
			num++;
			planetTribe = TribeManager.Add("tribes.libary", "planet", TextureHelper.GetImageAsTexture("tribeicon_planet.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_BASIC_planet.png", (FilterMode)0));
			num++;
			plantTribe = TribeManager.Add("tribes.libary", "plant", TextureHelper.GetImageAsTexture("tribeicon_plant.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_BASIC_plant.png", (FilterMode)0));
			num++;
			possessedTribe = TribeManager.Add("tribes.libary", "possessed", TextureHelper.GetImageAsTexture("tribeicon_possessed.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_possessed.png", (FilterMode)0));
			num++;
			rodentTribe = TribeManager.Add("tribes.libary", "rodent", TextureHelper.GetImageAsTexture("tribeicon_rodent.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_NATURE_rodent.png", (FilterMode)0));
			num++;
			scholarTribe = TribeManager.Add("tribes.libary", "scholar", TextureHelper.GetImageAsTexture("tribeicon_scholar.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_MAGIKS_scholar.png", (FilterMode)0));
			num++;
			securityTribe = TribeManager.Add("tribes.libary", "security", TextureHelper.GetImageAsTexture("tribeicon_security.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_TECH_security.png", (FilterMode)0));
			num++;
			shapelessTribe = TribeManager.Add("tribes.libary", "shapeless", TextureHelper.GetImageAsTexture("tribeicon_shapeless.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_BASIC_shapeless.png", (FilterMode)0));
			num++;
			shapeshifterTribe = TribeManager.Add("tribes.libary", "shapeshifter", TextureHelper.GetImageAsTexture("tribeicon_shapeshifter.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_MAGIKS_shapeshifter.png", (FilterMode)0));
			num++;
			skeletalTribe = TribeManager.Add("tribes.libary", "skeletal", TextureHelper.GetImageAsTexture("tribeicon_skeletal.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_skeletal.png", (FilterMode)0));
			num++;
			spectralTribe = TribeManager.Add("tribes.libary", "spectral", TextureHelper.GetImageAsTexture("tribeicon_spectral.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_UNDEAD_spectral.png", (FilterMode)0));
			num++;
			stoneTribe = TribeManager.Add("tribes.libary", "stone", TextureHelper.GetImageAsTexture("tribeicon_stone.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_BASIC_stone.png", (FilterMode)0));
			num++;
			utilityTribe = TribeManager.Add("tribes.libary", "utility", TextureHelper.GetImageAsTexture("tribeicon_utility.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_TECH_utility.png", (FilterMode)0));
			num++;
			wingedbeastTribe = TribeManager.Add("tribes.libary", "wingedbeast", TextureHelper.GetImageAsTexture("tribeicon_wingedbeast.png", (FilterMode)0), true, TextureHelper.GetImageAsTexture("card_rewardback_NATURE_wingedbeast.png", (FilterMode)0));
			num++;
			((BaseUnityPlugin)this).Logger.LogInfo((object)$"Sucsessfully Loaded {num} tribe(s)!");
		}
	}
}