using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
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("StartCreditMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("StartCreditMod")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3df2d930-429f-42a9-8d35-cf93951e3f45")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace StartCreditMod;
[BepInPlugin("Kaufeen.StartCreditMod", "Start Credit Mod", "1.0.0.0")]
public class TutorialModBase : BaseUnityPlugin
{
[HarmonyPatch(typeof(TimeOfDay))]
[HarmonyPatch("Awake")]
internal class TimeOfDay_Awake_Patch
{
[HarmonyPostfix]
private static void Postfix(TimeOfDay __instance)
{
__instance.quotaVariables.startingCredits = setMoney.Value;
}
}
private const string modGUID = "Kaufeen.StartCreditMod";
private const string modName = "Start Credit Mod";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Kaufeen.StartCreditMod");
private static TutorialModBase Instance;
internal ManualLogSource mls;
public static ConfigFile config;
public static ConfigEntry<int> setMoney { get; private set; }
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Kaufeen.StartCreditMod");
mls.LogInfo((object)"Start Credit Mod is loading");
config = ((BaseUnityPlugin)this).Config;
setMoney = config.Bind<int>("Settings", "Money", 60, "How much money do you even need?");
harmony.PatchAll(typeof(TutorialModBase));
harmony.PatchAll(typeof(TimeOfDay_Awake_Patch));
mls.LogInfo((object)"Start Credit Mod is loaded");
}
}