using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using MoreStartingCredits.Patches;
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("MoreStartingCredits")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MoreStartingCredits")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f67b0ff4-492f-470f-8051-2f910a259acc")]
[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 MoreStartingCredits
{
[BepInPlugin("fr.jerem2206.MoreStartingCredits", "MoreStartingCredits", "1.0.0")]
public class MoreStartingCredits : BaseUnityPlugin
{
private const string ModGUID = "fr.jerem2206.MoreStartingCredits";
private const string ModName = "MoreStartingCredits";
private const string ModVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("fr.jerem2206.MoreStartingCredits");
private static MoreStartingCredits Instance;
internal ManualLogSource mls;
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
if ((Object)Instance == (Object)null)
{
Instance = this;
}
mls = ((BaseUnityPlugin)this).Logger;
mls.LogInfo((object)"MoreStartingCredits v1.0.0 loaded!");
harmony.PatchAll(typeof(MoreStartingCredits));
harmony.PatchAll(typeof(TimeOfDayPatch));
}
}
}
namespace MoreStartingCredits.Patches
{
[HarmonyPatch(typeof(TimeOfDay))]
internal class TimeOfDayPatch
{
[HarmonyPatch("Awake")]
[HarmonyPostfix]
private static void AwakePatch(ref TimeOfDay __instance)
{
__instance.quotaVariables.startingCredits = 240;
}
}
}