diff --git a/DLCQuestipelago/DLCQuestipelago.csproj b/DLCQuestipelago/DLCQuestipelago.csproj index 5786454..2145650 100644 --- a/DLCQuestipelago/DLCQuestipelago.csproj +++ b/DLCQuestipelago/DLCQuestipelago.csproj @@ -4,7 +4,7 @@ net452 DLCQuestipelago Archipelago Randomizer for DLC Quest - 3.1.0 + 3.1.1 true latest bin\ diff --git a/DLCQuestipelago/Items/HandleCoinChangedPatch.cs b/DLCQuestipelago/Items/HandleCoinChangedPatch.cs index c866eed..994ea9c 100644 --- a/DLCQuestipelago/Items/HandleCoinChangedPatch.cs +++ b/DLCQuestipelago/Items/HandleCoinChangedPatch.cs @@ -41,6 +41,8 @@ private static void Postfix(CoinDisplay __instance, int numCoins) var currentCoins = CoinsanityUtils.GetCurrentCoins(_archipelago); + currentCoins = Math.Round(currentCoins, 2); + // protected HUDText coinCount; var coinCountField = typeof(CoinDisplay).GetField("coinCount", BindingFlags.Instance | BindingFlags.NonPublic); var coinCount = (HUDText)coinCountField.GetValue(__instance); diff --git a/DLCQuestipelago/Shop/StoreScreenSelectionChangedPatch.cs b/DLCQuestipelago/Shop/StoreScreenSelectionChangedPatch.cs index 1c7ffb9..853b29d 100644 --- a/DLCQuestipelago/Shop/StoreScreenSelectionChangedPatch.cs +++ b/DLCQuestipelago/Shop/StoreScreenSelectionChangedPatch.cs @@ -194,6 +194,8 @@ private static void UpdateInventoryAndPrice(DLCDetailPanel detailPanel, DLCPackD var numberCoins = useBossCoins ? Singleton.Instance.CurrentScene.Player.Inventory.BossCoins : CoinsanityUtils.GetCurrentCoins(_archipelago); + numberCoins = Math.Round(numberCoins, 2); + if (numberCoins >= selectedDLCData.Cost) { priceCoinAmountText.Tint = ColorUtil.PriceCanAffordText;