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 CustomStartCash v1.0.0
StartCash.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 CruiserCost.Patches; using HarmonyLib; 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("StartCash")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("StartCash")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("6822ffc4-3554-47ad-85ca-5d68f4b652be")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] [HarmonyPatch(typeof(TimeOfDay))] internal class TimeScalarPatch { public static int hour; [HarmonyPatch("Update")] [HarmonyPostfix] private static void timeScalarPatch(ref int ___hour) { hour = ___hour; } } namespace CruiserCost { [BepInPlugin("rogan.StartCash", "Starting Money", "1.0.0")] public class StartCashBase : BaseUnityPlugin { private const string modGUID = "rogan.StartCash"; private const string modName = "Starting Money"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("rogan.StartCash"); private static StartCashBase Instance; internal static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("rogan.StartCash"); mls.LogInfo((object)"CruiserDelivery Started!"); harmony.PatchAll(typeof(StartCashBase)); harmony.PatchAll(typeof(GroupCreditsPatch)); } } } namespace CruiserCost.Patches { [HarmonyPatch(typeof(Terminal))] internal class GroupCreditsPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void cruiserCostPatch(ref int ___groupCredits) { if (TimeScalarPatch.hour == 0) { ___groupCredits = 500; } } } }