Please disclose if your mod was created primarily 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 AntiAdvance v0.1.1
AntiAdvance.dll
Decompiled 3 hours agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; using TMPro; 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("AntiAdvance")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("AntiAdvance")] [assembly: AssemblyTitle("AntiAdvance")] [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("me.mecraft.AntiAdvance", "AntiAdvance", "0.1.0")] public class AntiAdvance : BaseUnityPlugin { public static bool shipLeft; private void Awake() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Expected O, but got Unknown ((BaseUnityPlugin)this).Logger.LogInfo((object)"[AntiAdvance] AntiAdvance Loading"); Harmony val = new Harmony("me.mecraft.AntiAdvance"); val.PatchAll(); } } [HarmonyPatch(typeof(StartOfRound))] public class ShipLeavePatch { [HarmonyPatch("ShipLeaveAutomatically")] [HarmonyPostfix] public static void AfterShipLeave() { Debug.Log((object)"[AntiAdvance] Ship is leaving"); AntiAdvance.shipLeft = true; Debug.Log((object)$"[AntiAdvance] ShipLeaveAutomatically: {TimeOfDay.Instance.timeUntilDeadline} / {TimeOfDay.Instance.totalTime}"); } } [HarmonyPatch(typeof(TimeOfDay))] public class TimePatch { [HarmonyPatch("UpdateProfitQuotaCurrentTime")] [HarmonyPostfix] public static void QuotaUpdate() { if (AntiAdvance.shipLeft) { TimeOfDay instance = TimeOfDay.Instance; instance.daysUntilDeadline++; ((TMP_Text)StartOfRound.Instance.deadlineMonitorText).text = $"DEADLINE:\n{TimeOfDay.Instance.daysUntilDeadline} Days"; TimeOfDay instance2 = TimeOfDay.Instance; instance2.timeUntilDeadline += 1080f; AntiAdvance.shipLeft = false; Debug.Log((object)$"[AntiAdvance] UpdateProfitQuotaCurrentTime: {TimeOfDay.Instance.timeUntilDeadline} / {TimeOfDay.Instance.totalTime}"); } } }