mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
Softcap classroom cost
This commit is contained in:
parent
9fa6d8dd78
commit
cf18336c6b
1 changed files with 3 additions and 3 deletions
|
@ -1453,9 +1453,9 @@ const layer = createLayer(id, () => {
|
|||
})) as GenericBuyable;
|
||||
|
||||
const classroomCost = computed(() => {
|
||||
var v = classrooms.amount.value;
|
||||
if(Decimal.gte(v,100)) v=Decimal.pow(v,2).div(100)
|
||||
if(Decimal.gte(v,1e4)) v=Decimal.pow(v,8).div(1e28)
|
||||
let v = classrooms.amount.value;
|
||||
if (Decimal.gte(v, 50)) v = Decimal.pow(v, 2).div(50);
|
||||
if (Decimal.gte(v, 200)) v = Decimal.pow(v, 2).div(200);
|
||||
const classroomFactor = Decimal.add(v, 1).pow(1.5);
|
||||
return {
|
||||
wood: classroomFactor.mul(1e21),
|
||||
|
|
Loading…
Reference in a new issue