Hide move indicators from shop items if insufficient gold

This commit is contained in:
thepaperpilot 2023-02-18 21:32:38 -06:00
parent 7d22471da6
commit 9df4161adb

View file

@ -134,7 +134,8 @@ export const main = createLayer("main", function (this: BaseLayer) {
? selectedShopItem.value == null ||
(team.value[i] != null &&
shop.value[selectedShopItem.value]?.type !==
team.value[i]?.type)
team.value[i]?.type) ||
gold.value < 3
? null
: shop.value[selectedShopItem.value]
: team.value[selectedCharacter.value]