mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-01-18 03:31:27 +00:00
Fixed persistent refs (volar is magic)
This commit is contained in:
parent
23041e3a0d
commit
44f940d3a1
1 changed files with 2 additions and 2 deletions
|
@ -1004,7 +1004,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
const ash = createResource<DecimalSource>(0,"ash");
|
||||
|
||||
const buildFire = createBuyable(() => ({
|
||||
resource: trees.mastery.logs,
|
||||
resource: noPersist(trees.mastery.logs), // apparently necessary
|
||||
cost() {
|
||||
let v = Decimal.times(buildBonfire.amount.value, unref(buildBonfire.cost!)).plus(
|
||||
this.amount.value
|
||||
|
@ -1105,7 +1105,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
});
|
||||
|
||||
const buildKiln = createBuyable(() => ({
|
||||
resource: trees.mastery.logs,
|
||||
resource: noPersist(trees.mastery.logs),
|
||||
cost() {
|
||||
let v = this.amount.value;
|
||||
if (Decimal.gte(v, 100)) v = Decimal.pow(v, 2).div(100);
|
||||
|
|
Loading…
Add table
Reference in a new issue