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 ReliableWispFountain v1.0.0
ReliableWispFountain.dll
Decompiled 2 days agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("ReliableWispFountain")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+d7557a13c67dda0d6fff64862bc6959983b4892a")] [assembly: AssemblyProduct("ReliableWispFountain")] [assembly: AssemblyTitle("ReliableWispFountain")] [assembly: AssemblyVersion("1.0.0.0")] [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; } } } [BepInPlugin("zopthemop.reliablewispfountain", "Reliable Wisp Fountain", "1.0.0")] public class Plugin : BaseUnityPlugin { [HarmonyPatch(typeof(LuredWisp), "Awake")] public static class LuredWisp_Awake_Patch { private static void Postfix(ref float ___m_noiseDistanceYScale, ZNetView ___m_nview) { ___m_noiseDistanceYScale = 0f; if (___m_nview.IsValid() && !___m_nview.IsOwner()) { ___m_nview.ClaimOwnership(); } } } [HarmonyPatch(typeof(WispSpawner), "Start")] public static class WispSpawner_Start_Patch { private static void Postfix(ref float ___m_spawnChance, ref float ___m_spawnDistance, ref float ___m_maxSpawnedArea, ref float ___m_spawnInterval, ZNetView ___m_nview) { ___m_spawnChance = 1f; ___m_spawnDistance = 1.5f; ___m_maxSpawnedArea = 2f; ___m_spawnInterval = 1f; if (___m_nview.IsValid() && !___m_nview.IsOwner()) { ___m_nview.ClaimOwnership(); } } } public const string ModGUID = "zopthemop.reliablewispfountain"; public const string ModName = "Reliable Wisp Fountain"; public const string ModVersion = "1.0.0"; public const string ModDescription = "Tweaks the Wisp Fountain so they can built closer together without interfering with each other, spawn more reliably and are easier to harvest"; private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Expected O, but got Unknown Harmony val = new Harmony("zopthemop.reliablewispfountain"); val.PatchAll(); } }