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 Glow Pickies v1.1.0
BepInEx/plugins/Pickies.dll
Decompiled a year agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using JLLItemsModule.Components; using LethalLevelLoader; 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: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: AssemblyCompany("Pickies")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Pickies")] [assembly: AssemblyTitle("Pickies")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace Pickies { [BepInPlugin("JacobG5.Pickies", "Pickies", "1.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class GlowPickies : BaseUnityPlugin { private const string modGUID = "JacobG5.Pickies"; private const string modName = "Pickies"; private const string modVersion = "1.1.0"; private readonly Harmony harmony = new Harmony("JacobG5.Pickies"); public static GlowPickies Instance; internal ManualLogSource mls; public ExtendedMod PickieMod; public ExtendedItem pickieJar; public ExtendedItem pickie; public ExtendedEnemyType pickler; public ExtendedEnemyType pickleSwarm; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("JacobG5.Pickies"); mls.LogInfo((object)"Pickies."); PickieMod = ExtendedMod.Create("Glow Pickies", "JacobG5"); AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "glowpickies")); pickieJar = val.LoadAsset<ExtendedItem>("Assets/LethalCompany/Mods/Projects/GlowPickies/PickieJarExtended.asset"); pickie = val.LoadAsset<ExtendedItem>("Assets/LethalCompany/Mods/Projects/GlowPickies/PickieExtended.asset"); pickler = val.LoadAsset<ExtendedEnemyType>("Assets/LethalCompany/Mods/Projects/GlowPickies/PicklerExtended.asset"); pickleSwarm = val.LoadAsset<ExtendedEnemyType>("Assets/LethalCompany/Mods/Projects/GlowPickies/PickleSwarmExtended.asset"); PickieMod.ExtendedItems.Add(pickie); PickieMod.ExtendedItems.Add(pickieJar); PickieMod.ExtendedEnemyTypes.Add(pickler); PickieMod.ExtendedEnemyTypes.Add(pickleSwarm); PatchedContent.RegisterExtendedMod(PickieMod); } } } namespace Pickies.Components { public class Pickie : JThrowableItem { [Header("Pickie")] public Light glow; public float activeIntensity = 100f; private float startIntensity = 0f; public float activateTime = 1.6f; private float activeProgress = 0f; [Header("Jar")] public Item pickie; public float spawnHeight = 3f; public float spawnDistance = 0.3f; public override void Update() { ((JThrowableItem)this).Update(); if (base.hasInteraction && base.interactedWith && activeProgress < activateTime) { activeProgress += Time.deltaTime; glow.intensity = Mathf.Lerp(startIntensity, activeIntensity, activeProgress / activateTime); } } public override void CreateExplosion(Transform parent) { ((JThrowableItem)this).CreateExplosion(parent); if (!base.hasInteraction) { ((Behaviour)glow).enabled = false; } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }