From 944c30523014b12a56c5aa82eddf5250508ab083 Mon Sep 17 00:00:00 2001 From: unsoftcapped3 <75136164+unsoftcapped3@users.noreply.github.com> Date: Sun, 25 Dec 2022 11:49:04 -0800 Subject: [PATCH] fix upgrades being much more expensive than they should be --- src/data/layers/factory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index 853a97e..94e7e6f 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -1502,7 +1502,7 @@ const factory = createLayer(id, () => { // pixi const upgradeAmount = computed( - () => upgrades.flat().filter(u => u.bought.value).length + () => upgrades.slice(0,3).flat().filter(u => u.bought.value).length ) as ComputedRef; // load every sprite here so pixi doesn't complain about loading multiple times const assetsLoading = Promise.all([