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 EdibleStarstorm v0.1.0
EdibleStarstorm.dll
Decompiled a day agousing System; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using Microsoft.CodeAnalysis; using RoR2; using SS2; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("EdibleStarstorm")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("EdibleStarstorm")] [assembly: AssemblyTitle("EdibleStarstorm")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 EdibleStarstorm { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Xaidee.EdibleStarstorm", "EdibleStarstorm", "0.1.0")] public class EdibleStarstorm : BaseUnityPlugin { public void Awake() { Log.Init(((BaseUnityPlugin)this).Logger); ((ResourceAvailability)(ref ItemCatalog.availability)).CallWhenAvailable((Action)ChangeTags); } private static void ChangeTags() { Log.Debug("Attempting to change Starstorm ItemTags"); ItemDef[] array = (ItemDef[])(object)new ItemDef[5] { Items.CoffeeBag, Items.DetritiveTrematode, Items.LightningOnKill, Items.StrangeCan, Items.GreenChocolate }; foreach (ItemDef val in array) { if (val.tags.Contains((ItemTag)28)) { Log.Warning(((Object)val).name + " is already FoodRelated!"); continue; } val.tags = val.tags.Append((ItemTag)28).ToArray(); Log.Debug("Added FoodRelated ItemTag to " + ((Object)val).name + " successfully (" + string.Join(", ", val.tags) + ")"); } } } internal static class Log { private static ManualLogSource _logSource; internal static void Init(ManualLogSource logSource) { _logSource = logSource; } internal static void Debug(object data) { _logSource.LogDebug(data); } internal static void Error(object data) { _logSource.LogError(data); } internal static void Fatal(object data) { _logSource.LogFatal(data); } internal static void Info(object data) { _logSource.LogInfo(data); } internal static void Message(object data) { _logSource.LogMessage(data); } internal static void Warning(object data) { _logSource.LogWarning(data); } } }