diff --git a/ModHelperData.cs b/ModHelperData.cs index bddc92c..07585b4 100644 --- a/ModHelperData.cs +++ b/ModHelperData.cs @@ -4,8 +4,8 @@ public static class ModHelperData { public const string Name = "OmegaCrosspathing"; public const string Description = "Allows you to merge towers together, should be fully compatible with ultimate crosspathing, custom towers, custom heroes, and custom towersets."; - public const string Version = "0.0.6"; + public const string Version = "0.0.7"; public const string RepoOwner = "GrahamKracker"; public const string RepoName = "OmegaCrosspathing"; - public const string WorksOnVersion = "45"; + public const string WorksOnVersion = "47"; } diff --git a/Patches.cs b/Patches.cs index ab84918..57d8566 100644 --- a/Patches.cs +++ b/Patches.cs @@ -197,9 +197,7 @@ public static void TowerSelectionMenu_Initialise(TowerSelectionMenu __instance) else owner--; - InGame.instance.GetCashManager(owner).cash.Value -= totalcost; - InGame.instance.CashChanged(); - + InGame.instance.AddCash(-totalcost); TowerSelectionMenu.instance.selectedTower.tower.worth += totalcost; diff --git a/UI.cs b/UI.cs index c5f4e2c..0d28c5d 100644 --- a/UI.cs +++ b/UI.cs @@ -8,6 +8,7 @@ using Il2CppAssets.Scripts.Unity; using Il2CppAssets.Scripts.Unity.UI_New.InGame; using Il2CppAssets.Scripts.Utils; +using Il2CppNinjaKiwi.Common.ResourceUtils; using PathsPlusPlus; using UnityEngine; using UnityEngine.UI;