mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
Fixed persistent ref issues
This commit is contained in:
parent
64394c7f7c
commit
d2d397e4fc
1 changed files with 6 additions and 6 deletions
|
@ -671,7 +671,7 @@ const factory = createLayer(id, () => {
|
||||||
outputs: {
|
outputs: {
|
||||||
bear: {
|
bear: {
|
||||||
amount: computed(() => (upgrades[1][3].bought.value ? 2 : 1)),
|
amount: computed(() => (upgrades[1][3].bought.value ? 2 : 1)),
|
||||||
resource: bears
|
resource: noPersist(bears)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
visible: main.days[advancedDay - 1].opened
|
visible: main.days[advancedDay - 1].opened
|
||||||
|
@ -695,7 +695,7 @@ const factory = createLayer(id, () => {
|
||||||
outputs: {
|
outputs: {
|
||||||
shovelBucket: {
|
shovelBucket: {
|
||||||
amount: 1,
|
amount: 1,
|
||||||
resource: bucketAndShovels
|
resource: noPersist(bucketAndShovels)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
visible: main.days[advancedDay - 1].opened
|
visible: main.days[advancedDay - 1].opened
|
||||||
|
@ -723,7 +723,7 @@ const factory = createLayer(id, () => {
|
||||||
outputs: {
|
outputs: {
|
||||||
console: {
|
console: {
|
||||||
amount: computed(() => (upgrades[1][3].bought.value ? 3 : 1)),
|
amount: computed(() => (upgrades[1][3].bought.value ? 3 : 1)),
|
||||||
resource: consoles
|
resource: noPersist(consoles)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
visible: main.days[advancedDay - 1].opened
|
visible: main.days[advancedDay - 1].opened
|
||||||
|
@ -958,7 +958,7 @@ const factory = createLayer(id, () => {
|
||||||
style: "width: 110px"
|
style: "width: 110px"
|
||||||
}));
|
}));
|
||||||
const bearsBuyable = createBuyable(() => ({
|
const bearsBuyable = createBuyable(() => ({
|
||||||
resource: bears,
|
resource: noPersist(bears),
|
||||||
cost() {
|
cost() {
|
||||||
return Decimal.pow(2, Decimal.add(this.amount.value, 5));
|
return Decimal.pow(2, Decimal.add(this.amount.value, 5));
|
||||||
},
|
},
|
||||||
|
@ -970,7 +970,7 @@ const factory = createLayer(id, () => {
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
}));
|
}));
|
||||||
const bucketBuyable = createBuyable(() => ({
|
const bucketBuyable = createBuyable(() => ({
|
||||||
resource: bucketAndShovels,
|
resource: noPersist(bucketAndShovels),
|
||||||
cost() {
|
cost() {
|
||||||
return Decimal.pow(2, Decimal.add(this.amount.value, 5));
|
return Decimal.pow(2, Decimal.add(this.amount.value, 5));
|
||||||
},
|
},
|
||||||
|
@ -982,7 +982,7 @@ const factory = createLayer(id, () => {
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
}));
|
}));
|
||||||
const consolesBuyable = createBuyable(() => ({
|
const consolesBuyable = createBuyable(() => ({
|
||||||
resource: consoles,
|
resource: noPersist(consoles),
|
||||||
cost() {
|
cost() {
|
||||||
return Decimal.pow(2, Decimal.add(this.amount.value, 5));
|
return Decimal.pow(2, Decimal.add(this.amount.value, 5));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue