mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-25 01:41:48 +00:00
Added tree buyable cost scaling
This commit is contained in:
parent
ae80c94581
commit
a0f37285d7
1 changed files with 6 additions and 2 deletions
|
@ -166,7 +166,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
const autoCuttingBuyable1 = createBuyable(() => ({
|
||||
resource: logs,
|
||||
cost() {
|
||||
return Decimal.times(100, this.amount.value).add(200);
|
||||
let v = this.amount.value;
|
||||
if (Decimal.gte(v, 50)) v = Decimal.pow(v, 2).div(50);
|
||||
return Decimal.times(100, v).add(200);
|
||||
},
|
||||
display: {
|
||||
title: "Generic Cutters",
|
||||
|
@ -177,7 +179,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
const autoPlantingBuyable1 = createBuyable(() => ({
|
||||
resource: logs,
|
||||
cost() {
|
||||
return Decimal.times(100, this.amount.value).add(200);
|
||||
let v = this.amount.value;
|
||||
if (Decimal.gte(v, 50)) v = Decimal.pow(v, 2).div(50);
|
||||
return Decimal.times(100, v).add(200);
|
||||
},
|
||||
display: {
|
||||
title: "Generic Planters",
|
||||
|
|
Loading…
Reference in a new issue