Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Thick44LogoMapObject v1.0.3
ThickLogo.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using ThickLogo.Patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("ThickLogo")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ThickLogo")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("4300da66-5286-4298-858f-cc1e5ebface4")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace ThickLogo { [BepInPlugin("Ex.Thick44LogoMod", "Ex Thick 44 homage Mod", "1.0.0")] public class ThickLogoBase : BaseUnityPlugin { private const string modGUID = "Ex.Thick44LogoMod"; private const string modName = "Ex Thick 44 homage Mod"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Ex.Thick44LogoMod"); private static ThickLogoBase Instance; internal ManualLogSource mls; internal static GameObject Thick44; internal static SpawnableOutsideObject Thick44S; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Ex.Thick44LogoMod"); mls.LogInfo((object)"I Am The Wyvern King!"); string location = ((BaseUnityPlugin)Instance).Info.Location; string text = "ThickLogo.dll"; string text2 = location.TrimEnd(text.ToCharArray()); string text3 = text2 + "thickAssets"; AssetBundle val = AssetBundle.LoadFromFile(text3); if ((Object)(object)val == (Object)null) { mls.LogError((object)"Failed to load audio assets!"); return; } Thick44 = val.LoadAsset<GameObject>("Assets/Thick44.prefab"); Thick44S = val.LoadAsset<SpawnableOutsideObject>("Assets/Thick44S.asset"); harmony.PatchAll(typeof(ThickLogoBase)); harmony.PatchAll(typeof(ThickPatch)); mls.LogInfo((object)"You're nobody!."); } } } namespace ThickLogo.Patches { internal class ThickPatch { [HarmonyPatch(typeof(RoundManager))] [HarmonyPatch("SpawnOutsideHazards")] [HarmonyPostfix] public static void SpawnableObjectsPatch(RoundManager __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Expected O, but got Unknown //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Expected O, but got Unknown //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Expected O, but got Unknown //IL_0079: 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) SpawnableOutsideObject thick44S = ThickLogoBase.Thick44S; AnimationCurve val = new AnimationCurve(); SpawnableOutsideObjectWithRarity val2 = new SpawnableOutsideObjectWithRarity(); val2.spawnableObject = thick44S; val2.randomAmount = val; SpawnableOutsideMapObject val3 = new SpawnableOutsideMapObject(); val3.prefabToSpawn = ThickLogoBase.Thick44; val3.numberToSpawn = val; val3.spawnableFloorTag = "Grass"; val3.spawnableFloorTag = "Gravel"; val3.spawnableFloorTag = "Snow"; val3.spawnFacingAwayFromWall = false; val3.objectWidth = 9; val3.rotationOffset = new Vector3(-90f, 0f, 0f); Debug.Log((object)("Thick44 Instance " + (object)Object.Instantiate<GameObject>(ThickLogoBase.Thick44))); __instance.currentLevel.spawnableOutsideObjects[__instance.currentLevel.spawnableOutsideObjects.Length - 1] = val2; } } }