mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-22 06:01:40 +00:00
Balancing / bug fixing pass
This commit is contained in:
parent
ef0a8ed845
commit
4cc20e9230
2 changed files with 11 additions and 6 deletions
|
@ -110,6 +110,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
coal.betterFertilizer.bought.value = true;
|
||||
coal.unlockKiln.bought.value = true;
|
||||
coal.efficientSmelther.bought.value = true;
|
||||
coal.arsonistAssistance.bought.value = true;
|
||||
coal.refinedCoal.bought.value = true;
|
||||
coal.coloredFire.bought.value = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -228,12 +228,14 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
cost() {
|
||||
let v = new Decimal(this.amount.value);
|
||||
if (Decimal.gte(v, 10)) v = Decimal.pow(v, 4).div(10 ** 3);
|
||||
if (Decimal.gte(v, 1e3)) v = Decimal.pow(v, 4).div(1e3 ** 3);
|
||||
v = Decimal.pow(0.95, paper.books.heavyDrillBook.totalAmount.value).times(v);
|
||||
return Decimal.pow(8, v).times(2e5);
|
||||
},
|
||||
inverseCost(x: DecimalSource) {
|
||||
let v = Decimal.div(x, 2e5).log(8);
|
||||
v = v.div(Decimal.pow(0.95, paper.books.heavyDrillBook.totalAmount.value));
|
||||
if (Decimal.gte(v, 1e3)) v = Decimal.mul(v, 1e3 ** 3).root(4);
|
||||
if (Decimal.gte(v, 10)) v = Decimal.mul(v, 10 ** 3).root(4);
|
||||
return Decimal.isNaN(v) ? Decimal.dZero : v.floor().max(0);
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue