This commit is contained in:
2024-09-27 23:48:37 +02:00
parent 96ac1e3bc2
commit 6dbbf5a9b9

View File

@@ -1,5 +1,6 @@
using System.Linq;
using Il2CppFunGI.ATTT.Game.Gameplay.FinancialReport;
using Il2CppSystem;
using MelonLoader;
using UnityEngine;
@@ -35,17 +36,20 @@ namespace ArmsTradeTycoonTanks {
}
}
// I could not get this to work...
// IL2CPP fucked it up beyond any recognition
// Such a shame
[HarmonyLib.HarmonyPatch]
public class Patches {
[HarmonyLib.HarmonyPrefix]
[HarmonyLib.HarmonyPatch(typeof(FinancialReportSystem), "HandleMoneyUpdated")]
public static void PrefixMoney(ref long __0) {
if (Global.Debug.Value)
Debug.Log($"Money is {__0}");
// if (Global.Debug.Value)
Console.WriteLine($"Money is {__0}");
if (__0 > 0) {
__0 = (long)(__0 * Global.MoneyMultiplier.Value);
if (Global.Debug.Value)
Debug.Log($"Money modified to {__0}");
Console.WriteLine($"Money modified to {__0}");
}
}