Skip to content

Commit

Permalink
fixed arena shop always saying you can buy
Browse files Browse the repository at this point in the history
  • Loading branch information
elluminance committed Jan 12, 2024
1 parent a0f4dba commit 108fc57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ccmod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "el-tweaks",
"version": "0.6.4",
"version": "0.6.5",

"title": "EL's Tweaks",
"description": "A coremod full of useful functionality for modders, as well as many tweaks for players.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "el-tweaks",
"displayName": "EL's Tweaks",
"version": "0.6.4",
"version": "0.6.5",
"description": "A coremod full of useful functionality for modders, as well as many tweaks for players.",

"plugin": "./dist/plugin.js",
Expand Down
2 changes: 1 addition & 1 deletion src/prestart/game/shop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ sc.ShopListMenu.inject({
itemAmount: number,
item: sc.Inventory.Item,
itemEquipLevel: number,
moneyLeft = (currency ? currency.get() : sc.model.player.credit) - sc.menu.getTotalCost(),
moneyLeft = (currency ? currency.get() : sc.menu.shopCoinMode ? sc.arena.getTotalArenaCoins() : sc.model.player.credit) - sc.menu.getTotalCost(),
itemCost: number,
itemQuantity: number,
itemName: string,
Expand Down

0 comments on commit 108fc57

Please sign in to comment.