mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-04-01 21:41:00 +00:00
Formatting
This commit is contained in:
parent
13bf1cb8bf
commit
67ec8c9856
1 changed files with 53 additions and 35 deletions
|
@ -104,7 +104,10 @@ const layer = createLayer(id, () => {
|
||||||
const exp = persistent<DecimalSource>(0);
|
const exp = persistent<DecimalSource>(0);
|
||||||
const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(1e4));
|
const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(1e4));
|
||||||
const level = computed(() =>
|
const level = computed(() =>
|
||||||
Decimal.min(Decimal.mul(9, exp.value).div(1e4).add(1).log10().floor(), schools.amount.value).toNumber()
|
Decimal.min(
|
||||||
|
Decimal.mul(9, exp.value).div(1e4).add(1).log10().floor(),
|
||||||
|
schools.amount.value
|
||||||
|
).toNumber()
|
||||||
);
|
);
|
||||||
const expToNextLevel = computed(() =>
|
const expToNextLevel = computed(() =>
|
||||||
Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(1e4))
|
Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(1e4))
|
||||||
|
@ -209,8 +212,7 @@ const layer = createLayer(id, () => {
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Holly Level 4",
|
requirement: "Holly Level 4",
|
||||||
effectDisplay:
|
effectDisplay: "Multiply cutting speed by 1.1 per day completed"
|
||||||
"Multiply cutting speed by 1.1 per day completed"
|
|
||||||
},
|
},
|
||||||
visibility: () => showIf(cutterElfMilestones[1].earned.value),
|
visibility: () => showIf(cutterElfMilestones[1].earned.value),
|
||||||
shouldEarn: () => cutterElfTraining.level.value >= 4
|
shouldEarn: () => cutterElfTraining.level.value >= 4
|
||||||
|
@ -218,8 +220,7 @@ const layer = createLayer(id, () => {
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Holly Level 5",
|
requirement: "Holly Level 5",
|
||||||
effectDisplay:
|
effectDisplay: "Reduce workshop expansion cost by ^0.95"
|
||||||
"Reduce workshop expansion cost by ^0.95"
|
|
||||||
},
|
},
|
||||||
visibility: () => showIf(cutterElfMilestones[1].earned.value),
|
visibility: () => showIf(cutterElfMilestones[1].earned.value),
|
||||||
shouldEarn: () => cutterElfTraining.level.value >= 5
|
shouldEarn: () => cutterElfTraining.level.value >= 5
|
||||||
|
@ -303,7 +304,8 @@ const layer = createLayer(id, () => {
|
||||||
shouldEarn: () => expandersElfTraining.level.value >= 5
|
shouldEarn: () => expandersElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
const heatedCutterElfMilestones = [createMilestone(() => ({
|
const heatedCutterElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Jack Level 1",
|
requirement: "Jack Level 1",
|
||||||
effectDisplay: "Heated cutters are less expensive."
|
effectDisplay: "Heated cutters are less expensive."
|
||||||
|
@ -337,8 +339,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Unlock an elf that autobuys oil buyables."
|
effectDisplay: "Unlock an elf that autobuys oil buyables."
|
||||||
},
|
},
|
||||||
shouldEarn: () => heatedCutterElfTraining.level.value >= 5
|
shouldEarn: () => heatedCutterElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const heatedPlanterElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const heatedPlanterElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Mary Level 1",
|
requirement: "Mary Level 1",
|
||||||
effectDisplay: "Heated planters are less expensive."
|
effectDisplay: "Heated planters are less expensive."
|
||||||
|
@ -372,8 +376,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Auto smelting speed is multiplied by (total XP/1000)^0.5"
|
effectDisplay: "Auto smelting speed is multiplied by (total XP/1000)^0.5"
|
||||||
},
|
},
|
||||||
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const fertilizerElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const fertilizerElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Noel Level 1",
|
requirement: "Noel Level 1",
|
||||||
effectDisplay: "Log gain is increased based on total elf level."
|
effectDisplay: "Log gain is increased based on total elf level."
|
||||||
|
@ -407,8 +413,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Unlock an elf that autobuys drills and extractors"
|
effectDisplay: "Unlock an elf that autobuys drills and extractors"
|
||||||
},
|
},
|
||||||
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const smallfireElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const smallfireElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Joy Level 1",
|
requirement: "Joy Level 1",
|
||||||
effectDisplay: "Multiply small fire efficiency by 5."
|
effectDisplay: "Multiply small fire efficiency by 5."
|
||||||
|
@ -442,8 +450,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
||||||
},
|
},
|
||||||
shouldEarn: () => smallfireElfTraining.level.value >= 5
|
shouldEarn: () => smallfireElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const bonfireElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const bonfireElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Faith Level 1",
|
requirement: "Faith Level 1",
|
||||||
effectDisplay: "Multiply bonfire efficiency by 5."
|
effectDisplay: "Multiply bonfire efficiency by 5."
|
||||||
|
@ -477,8 +487,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
||||||
},
|
},
|
||||||
shouldEarn: () => bonfireElfTraining.level.value >= 5
|
shouldEarn: () => bonfireElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const kilnElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const kilnElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Snowball Level 1",
|
requirement: "Snowball Level 1",
|
||||||
effectDisplay: "Multiply kiln efficiency by 5."
|
effectDisplay: "Multiply kiln efficiency by 5."
|
||||||
|
@ -512,8 +524,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
||||||
},
|
},
|
||||||
shouldEarn: () => kilnElfTraining.level.value >= 5
|
shouldEarn: () => kilnElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const paperElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const paperElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Star Level 1",
|
requirement: "Star Level 1",
|
||||||
effectDisplay: "Book cost is divided by total books bought."
|
effectDisplay: "Book cost is divided by total books bought."
|
||||||
|
@ -547,8 +561,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Gain 5 free books for all level 5 elves"
|
effectDisplay: "Gain 5 free books for all level 5 elves"
|
||||||
},
|
},
|
||||||
shouldEarn: () => paperElfTraining.level.value >= 5
|
shouldEarn: () => paperElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const boxElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const boxElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Bell Level 1",
|
requirement: "Bell Level 1",
|
||||||
effectDisplay: "Every box buyable adds sqrt(level) levels to same-row box buyables."
|
effectDisplay: "Every box buyable adds sqrt(level) levels to same-row box buyables."
|
||||||
|
@ -582,8 +598,10 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Unlock another row of box upgrades"
|
effectDisplay: "Unlock another row of box upgrades"
|
||||||
},
|
},
|
||||||
shouldEarn: () => boxElfTraining.level.value >= 5
|
shouldEarn: () => boxElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
const clothElfMilestones = [createMilestone(() => ({
|
] as Array<GenericMilestone>;
|
||||||
|
const clothElfMilestones = [
|
||||||
|
createMilestone(() => ({
|
||||||
display: {
|
display: {
|
||||||
requirement: "Gingersnap Level 1",
|
requirement: "Gingersnap Level 1",
|
||||||
effectDisplay: "Multiply all primary dye colors by ln(cloth+e)."
|
effectDisplay: "Multiply all primary dye colors by ln(cloth+e)."
|
||||||
|
@ -617,7 +635,8 @@ const layer = createLayer(id, () => {
|
||||||
effectDisplay: "Well depth divides metal machine costs"
|
effectDisplay: "Well depth divides metal machine costs"
|
||||||
},
|
},
|
||||||
shouldEarn: () => clothElfTraining.level.value >= 5
|
shouldEarn: () => clothElfTraining.level.value >= 5
|
||||||
}))] as Array<GenericMilestone>;
|
}))
|
||||||
|
] as Array<GenericMilestone>;
|
||||||
|
|
||||||
// some milestone display stuff
|
// some milestone display stuff
|
||||||
const currentShown = persistent<string>("Holly");
|
const currentShown = persistent<string>("Holly");
|
||||||
|
@ -1008,8 +1027,7 @@ const layer = createLayer(id, () => {
|
||||||
classroomUpgrade,
|
classroomUpgrade,
|
||||||
display: jsx(() => (
|
display: jsx(() => (
|
||||||
<>
|
<>
|
||||||
{main.day.value === day ? `Get all elves to level 5.` : `${name} Complete!`}{" "}
|
{main.day.value === day ? `Get all elves to level 5.` : `${name} Complete!`} -
|
||||||
-
|
|
||||||
<button
|
<button
|
||||||
class="button"
|
class="button"
|
||||||
style="display: inline-block;"
|
style="display: inline-block;"
|
||||||
|
|
Loading…
Add table
Reference in a new issue