Softcap classroom cost

This commit is contained in:
thepaperpilot 2022-12-14 21:38:23 -06:00
parent 9fa6d8dd78
commit cf18336c6b

View file

@ -1453,9 +1453,9 @@ const layer = createLayer(id, () => {
})) as GenericBuyable; })) as GenericBuyable;
const classroomCost = computed(() => { const classroomCost = computed(() => {
var v = classrooms.amount.value; let v = classrooms.amount.value;
if(Decimal.gte(v,100)) v=Decimal.pow(v,2).div(100) if (Decimal.gte(v, 50)) v = Decimal.pow(v, 2).div(50);
if(Decimal.gte(v,1e4)) v=Decimal.pow(v,8).div(1e28) if (Decimal.gte(v, 200)) v = Decimal.pow(v, 2).div(200);
const classroomFactor = Decimal.add(v, 1).pow(1.5); const classroomFactor = Decimal.add(v, 1).pow(1.5);
return { return {
wood: classroomFactor.mul(1e21), wood: classroomFactor.mul(1e21),