This commit is contained in:
thepaperpilot 2022-12-12 22:32:22 -06:00
parent 49198eb746
commit e3b3167003

View file

@ -123,11 +123,27 @@ const layer = createLayer(id, () => {
...modifiers: Modifier[]
) {
const exp = persistent<DecimalSource>(0);
var costMulti = ["Holly","Ivy","Hope","Jack","Mary","Noel","Joy","Faith","Snowball","Star","Bell","Gingersnap"].indexOf(elf.name)+1
let costMulti =
[
"Holly",
"Ivy",
"Hope",
"Jack",
"Mary",
"Noel",
"Joy",
"Faith",
"Snowball",
"Star",
"Bell",
"Gingersnap"
].indexOf(elf.name) + 1;
if (elf.name == "Star" || elf.name == "Bell") {
costMulti /= 3
costMulti /= 3;
}
const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(4000).mul(costMulti));
const expRequiredForNextLevel = computed(() =>
Decimal.pow(10, level.value).mul(4000).mul(costMulti)
);
const level = computed(() =>
Decimal.min(
Decimal.mul(9, exp.value).div(4000).div(costMulti).add(1).log10().floor(),
@ -1039,8 +1055,8 @@ const layer = createLayer(id, () => {
const schoolCost = computed(() => {
const schoolFactor = Decimal.pow(10, schools.amount.value);
const woodFactor = Decimal.pow(2e4, schools.amount.value)
const coalFactor = Decimal.pow(2000, schools.amount.value)
const woodFactor = Decimal.pow(2e4, schools.amount.value);
const coalFactor = Decimal.pow(2000, schools.amount.value);
return {
wood: woodFactor.mul(1e21),
coal: coalFactor.mul(1e32),
@ -1131,9 +1147,9 @@ const layer = createLayer(id, () => {
multiplying elves' XP gain by {format(classroomEffect.value)}
</div>
<div>
Costs {format(classroomCost.value.wood)} logs,{format(classroomCost.value.paper)}{" "}
paper, {format(classroomCost.value.boxes)} boxes,{" "}
{format(classroomCost.value.metalIngots)} metal ingots
Costs {format(classroomCost.value.wood)} logs,
{format(classroomCost.value.paper)} paper, {format(classroomCost.value.boxes)}{" "}
boxes, {format(classroomCost.value.metalIngots)} metal ingots
</div>
</>
)),
@ -1308,7 +1324,8 @@ const layer = createLayer(id, () => {
{render(modifiersModal)}
{render(dayProgress)}
<br />
{renderCol(schools, classrooms)} {renderGrid([teaching, classroomUpgrade])} {renderGrid(upgrades)}
{renderCol(schools, classrooms)} {renderGrid([teaching, classroomUpgrade])}{" "}
{renderGrid(upgrades)}
{Decimal.gt(schools.amount.value, 0) ? (
<>
<br />