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 HarmonyLib;
using LC_API.BundleAPI;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("LethalCompanyTemplate")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("A template for Lethal Company")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("LethalCompanyTemplate")]
[assembly: AssemblyTitle("LethalCompanyTemplate")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace LethalCompanyTemplate
{
public static class PluginInfo
{
public const string PLUGIN_GUID = "LethalCompanyTemplate";
public const string PLUGIN_NAME = "LethalCompanyTemplate";
public const string PLUGIN_VERSION = "1.0.0";
}
}
namespace Goku.Patches
{
[HarmonyPatch]
internal class EnemyTypes
{
[HarmonyPatch(typeof(SandSpiderAI), "Start")]
[HarmonyPostfix]
public static void SummonGoku(SandSpiderAI __instance)
{
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_0035: Expected O, but got Unknown
//IL_007d: Unknown result type (might be due to invalid IL or missing references)
//IL_0087: Expected O, but got Unknown
//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
//IL_00d9: Expected O, but got Unknown
//IL_0121: Unknown result type (might be due to invalid IL or missing references)
//IL_012b: Expected O, but got Unknown
//IL_0173: Unknown result type (might be due to invalid IL or missing references)
//IL_017d: Expected O, but got Unknown
//IL_01f0: Unknown result type (might be due to invalid IL or missing references)
try
{
Object.Destroy((Object)((Component)((Component)__instance).gameObject.transform.Find("MeshContainer").Find("MeshRenderer")).gameObject.GetComponent<SkinnedMeshRenderer>());
Object.Destroy((Object)((Component)((Component)__instance).gameObject.transform.Find("MeshContainer").Find("AnimContainer").Find("Armature")
.Find("Head")
.Find("RightFang")).gameObject.GetComponent<MeshRenderer>());
Object.Destroy((Object)((Component)((Component)__instance).gameObject.transform.Find("MeshContainer").Find("AnimContainer").Find("Armature")
.Find("Head")
.Find("RightFang")).gameObject.GetComponent<MeshFilter>());
Object.Destroy((Object)((Component)((Component)__instance).gameObject.transform.Find("MeshContainer").Find("AnimContainer").Find("Armature")
.Find("Head")
.Find("LeftFang")).gameObject.GetComponent<MeshRenderer>());
Object.Destroy((Object)((Component)((Component)__instance).gameObject.transform.Find("MeshContainer").Find("AnimContainer").Find("Armature")
.Find("Head")
.Find("LeftFang")).gameObject.GetComponent<MeshFilter>());
GameObject loadedAsset = BundleLoader.GetLoadedAsset<GameObject>("Assets/gok.prefab");
if ((Object)(object)loadedAsset == (Object)null)
{
Debug.LogError((object)"Goku prefab not loaded!");
return;
}
GameObject val = Object.Instantiate<GameObject>(BundleLoader.GetLoadedAsset<GameObject>("assets/gok.prefab"), ((Component)__instance).gameObject.transform);
Debug.Log((object)"SPAWNED GOKU AEAEAEE");
val.transform.SetParent(((Component)__instance).transform, false);
val.transform.localPosition = new Vector3(0f, 2.2f, 0f);
}
catch (Exception arg)
{
Debug.LogError((object)$"Exception: {arg}");
}
}
}
}
namespace LethalCompanyTemplateGoku
{
[BepInPlugin("GokuSpiders", "GokuSpiders", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
public Harmony harmonymain;
private void Awake()
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
harmonymain = new Harmony("GokuSpiders");
harmonymain.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin GokuSpiders is loaded!");
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "GokuSpiders";
public const string PLUGIN_NAME = "GokuSpiders";
public const string PLUGIN_VERSION = "1.0.0";
}
}