mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-12-04 05:41:27 +00:00
change some numbers
This commit is contained in:
parent
7c0e25f139
commit
f4d89a5b17
1 changed files with 2 additions and 2 deletions
|
@ -254,8 +254,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
this.amount.value = Decimal.add(this.amount.value, 1);
|
this.amount.value = Decimal.add(this.amount.value, 1);
|
||||||
},
|
},
|
||||||
inverseCost() {
|
inverseCost() {
|
||||||
const metalAmount = Decimal.div(metal.metal.value, 1e40).log(1.5);
|
const metalAmount = Decimal.div(metal.metal.value, 1e70).log(1.2);
|
||||||
const oilAmount = Decimal.div(oil.oil.value, 1e20).log(1.5);
|
const oilAmount = Decimal.div(oil.oil.value, 1e25).log(1.2);
|
||||||
if (Decimal.isNaN(metalAmount) || Decimal.isNaN(oilAmount)) return Decimal.dZero;
|
if (Decimal.isNaN(metalAmount) || Decimal.isNaN(oilAmount)) return Decimal.dZero;
|
||||||
return Decimal.min(metalAmount, oilAmount).floor().max(0);
|
return Decimal.min(metalAmount, oilAmount).floor().max(0);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue