Decompiled source of Money Plus v1.0.0

Money+.dll

Decompiled 2 weeks ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
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("ClassLibrary2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ClassLibrary2")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("72a8708d-015c-4384-b95d-989e52f22ff8")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace FreeMoneyInShop;

[BepInPlugin("com.yourname.freemoneyinshop", "Free Money In Shop", "1.0.0")]
public class FreeMoneyInShopPlugin : BaseUnityPlugin
{
	private void Awake()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000c: Expected O, but got Unknown
		Harmony val = new Harmony("com.yourname.freemoneyinshop");
		val.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"\ud83d\udce6 Free Money In Shop Plugin Loaded!");
	}
}
[HarmonyPatch(typeof(ShopManager), "Update")]
public class ShopManager_Update_Patch
{
	private static void Postfix(ShopManager __instance)
	{
		if (!Input.GetKeyDown((KeyCode)107))
		{
			return;
		}
		if ((Object)(object)StatsManager.instance != (Object)null && StatsManager.instance.runStats != null)
		{
			if (StatsManager.instance.runStats.ContainsKey("currency"))
			{
				StatsManager.instance.runStats["currency"] += 1000;
			}
			else
			{
				StatsManager.instance.runStats["currency"] = 1000;
			}
			Debug.Log((object)"\ud83d\udcb0 1000 سکه به بازیکن داده شد!");
		}
		else
		{
			Debug.LogWarning((object)"⚠\ufe0f StatsManager یا runStats موجود نیست.");
		}
	}
}