fix upgrades being much more expensive than they should be

This commit is contained in:
unsoftcapped3 2022-12-25 11:49:04 -08:00 committed by GitHub
parent 6532f27b1a
commit 944c305230
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<number>;
// load every sprite here so pixi doesn't complain about loading multiple times
const assetsLoading = Promise.all([