Skip to content

Commit

Permalink
- Fix Coin Display
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Mar 26, 2023
1 parent 95c1f9b commit d96ea50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DLCQuestipelago/Items/InventoryCoinsGetPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private static bool Prefix(Inventory __instance, ref int __result)
var obtainedCoins = receivedCoinBundles * _archipelago.SlotData.CoinBundleSize;
var spentCoins = DLCManager.Instance.Packs.Values.Where(x => x.State == DLCPackStateEnum.Purchased).Sum(x => x.Data.Cost);
var currentCoins = obtainedCoins - spentCoins;
// __result = currentCoins + 4;
__result = currentCoins; // + 4;
// _coinDisplay.HandleCoinChanged(currentCoins);
return false; // don't run original logic
}
Expand Down

0 comments on commit d96ea50

Please sign in to comment.