mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 08:12:41 +00:00
fix upgrades being much more expensive than they should be
This commit is contained in:
parent
6532f27b1a
commit
944c305230
1 changed files with 1 additions and 1 deletions
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue