mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 08:31:35 +00:00
even more classroom scaling! also softcaps
This commit is contained in:
parent
d33372eabc
commit
6f2fac66f7
1 changed files with 6 additions and 2 deletions
|
@ -1455,7 +1455,7 @@ const layer = createLayer(id, () => {
|
||||||
const classroomCost = computed(() => {
|
const classroomCost = computed(() => {
|
||||||
var v = classrooms.amount.value;
|
var v = classrooms.amount.value;
|
||||||
if(Decimal.gte(v,100)) v=Decimal.pow(v,2).div(100)
|
if(Decimal.gte(v,100)) v=Decimal.pow(v,2).div(100)
|
||||||
if(Decimal.gte(v,10000)) v=Decimal.pow(v,8).div(1e28)
|
if(Decimal.gte(v,1e4)) v=Decimal.pow(v,8).div(1e28)
|
||||||
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),
|
||||||
|
@ -1466,9 +1466,13 @@ const layer = createLayer(id, () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const classroomEffect = computed(() => {
|
const classroomEffect = computed(() => {
|
||||||
return Decimal.add(classrooms.amount.value, 1)
|
var eff = Decimal.add(classrooms.amount.value, 1)
|
||||||
.pow(0.9)
|
.pow(0.9)
|
||||||
.pow(paper.upgrades2.classroomUpgrade.bought.value ? 1.1 : 1);
|
.pow(paper.upgrades2.classroomUpgrade.bought.value ? 1.1 : 1);
|
||||||
|
if(eff.gte(100)){
|
||||||
|
eff = eff.sqrt().mul(10)
|
||||||
|
}
|
||||||
|
return eff
|
||||||
});
|
});
|
||||||
|
|
||||||
const classrooms = createBuyable(() => ({
|
const classrooms = createBuyable(() => ({
|
||||||
|
|
Loading…
Reference in a new issue