Decompiled source of SimsStartAtLevel1 v1.0.0

SimsStartAtLevel1/SimsStartAtLevel1.dll

Decompiled a day ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("erenshor_SimFix")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("erenshor_SimFix")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("24d0c162-35eb-49cc-b21f-0da653d2f5b1")]
[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 LevelOneSims;

[BepInPlugin("com.erenshor.levelonesims", "Level 1 Sims", "1.0.0")]
public class LevelOneSimsPlugin : BaseUnityPlugin
{
	private void Awake()
	{
		Harmony.CreateAndPatchAll(typeof(LevelOneSimsPlugin), (string)null);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"All newly created sims will start at level 1.");
	}

	[HarmonyPatch(typeof(SimPlayerDataManager), "CheckLoadData")]
	[HarmonyPrefix]
	public static void CheckLoadData_Prefix(ref int __2)
	{
		__2 = 1;
	}
}