mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-16 09:31:43 +00:00
this compiles so it's fine
This commit is contained in:
parent
47c4874746
commit
09a6817b3f
1 changed files with 5 additions and 4 deletions
|
@ -993,11 +993,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
const activeBonfires = persistent<DecimalSource>(0);
|
||||
const activeKilns = persistent<DecimalSource>(0);
|
||||
|
||||
const coal = createResource<DecimalSource>(0);
|
||||
const ash = createResource<DecimalSource>(0);
|
||||
const coal = createResource<DecimalSource>(0,"coal");
|
||||
const ash = createResource<DecimalSource>(0,"ash");
|
||||
|
||||
const buildFire = createBuyable(() => ({
|
||||
resource: trees.logs,
|
||||
resource: trees.mastery.logs,
|
||||
cost() {
|
||||
let v = Decimal.times(buildBonfire.amount.value, unref(buildBonfire.cost!)).plus(
|
||||
this.amount.value
|
||||
|
@ -1048,6 +1048,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
active: activeFires,
|
||||
buyable: buildFire
|
||||
});
|
||||
const fireResource = createResource(buildFire.amount, "small fires");
|
||||
|
||||
const buildBonfire = createBuyable(() => ({
|
||||
resource: fireResource,
|
||||
|
@ -1097,7 +1098,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
});
|
||||
|
||||
const buildKiln = createBuyable(() => ({
|
||||
resource: trees.logs,
|
||||
resource: 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