mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-01-31 15:41:37 +00:00
Deactivate tons of shit
This commit is contained in:
parent
0179775e0e
commit
4a5771d2ad
3 changed files with 49 additions and 29 deletions
|
@ -214,7 +214,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Holly Level 4",
|
requirement: "Holly Level 4",
|
||||||
effectDisplay: "Multiply cutting speed by 1.1 per day completed"
|
effectDisplay: "Multiply cutting speed by 1.1 per day completed"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(cutterElfMilestones[2].earned.value),
|
visibility: () => showIf(cutterElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => cutterElfTraining.level.value >= 4
|
shouldEarn: () => cutterElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -222,7 +222,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Holly Level 5",
|
requirement: "Holly Level 5",
|
||||||
effectDisplay: "Reduce workshop expansion cost by ^0.95"
|
effectDisplay: "Reduce workshop expansion cost by ^0.95"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(cutterElfMilestones[3].earned.value),
|
visibility: () => showIf(cutterElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => cutterElfTraining.level.value >= 5
|
shouldEarn: () => cutterElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -255,7 +255,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Ivy Level 4",
|
requirement: "Ivy Level 4",
|
||||||
effectDisplay: "Divide planter cost by 10"
|
effectDisplay: "Divide planter cost by 10"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(planterElfMilestones[2].earned.value),
|
visibility: () => showIf(planterElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => planterElfTraining.level.value >= 4
|
shouldEarn: () => planterElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -263,7 +263,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Ivy Level 5",
|
requirement: "Ivy Level 5",
|
||||||
effectDisplay: "Boost planting/cutting speed based on which is falling behind"
|
effectDisplay: "Boost planting/cutting speed based on which is falling behind"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(planterElfMilestones[3].earned.value),
|
visibility: () => showIf(planterElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => planterElfTraining.level.value >= 5
|
shouldEarn: () => planterElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -296,7 +296,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Hope Level 4",
|
requirement: "Hope Level 4",
|
||||||
effectDisplay: "Unlock an elf that autobuys mining drills."
|
effectDisplay: "Unlock an elf that autobuys mining drills."
|
||||||
},
|
},
|
||||||
visibility: () => showIf(expanderElfMilestones[2].earned.value),
|
visibility: () => showIf(expanderElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => expandersElfTraining.level.value >= 4
|
shouldEarn: () => expandersElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -304,7 +304,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Hope Level 5",
|
requirement: "Hope Level 5",
|
||||||
effectDisplay: "Unlock an elf that autobuys metal buyables."
|
effectDisplay: "Unlock an elf that autobuys metal buyables."
|
||||||
},
|
},
|
||||||
visibility: () => showIf(expanderElfMilestones[3].earned.value),
|
visibility: () => showIf(expanderElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => expandersElfTraining.level.value >= 5
|
shouldEarn: () => expandersElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -337,7 +337,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Jack Level 4",
|
requirement: "Jack Level 4",
|
||||||
effectDisplay: "Oil gain is multiplied based on total elf levels."
|
effectDisplay: "Oil gain is multiplied based on total elf levels."
|
||||||
},
|
},
|
||||||
visibility: () => showIf(heatedCutterElfMilestones[2].earned.value),
|
visibility: () =>
|
||||||
|
showIf(heatedCutterElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => heatedCutterElfTraining.level.value >= 4
|
shouldEarn: () => heatedCutterElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -345,7 +346,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Jack Level 5",
|
requirement: "Jack Level 5",
|
||||||
effectDisplay: "Unlock an elf that autobuys oil buyables."
|
effectDisplay: "Unlock an elf that autobuys oil buyables."
|
||||||
},
|
},
|
||||||
visibility: () => showIf(heatedCutterElfMilestones[3].earned.value),
|
visibility: () =>
|
||||||
|
showIf(heatedCutterElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => heatedCutterElfTraining.level.value >= 5
|
shouldEarn: () => heatedCutterElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -378,7 +380,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Mary Level 4",
|
requirement: "Mary Level 4",
|
||||||
effectDisplay: "Metal gain is raised to the 1.1."
|
effectDisplay: "Metal gain is raised to the 1.1."
|
||||||
},
|
},
|
||||||
visibility: () => showIf(heatedPlanterElfMilestones[2].earned.value),
|
visibility: () =>
|
||||||
|
showIf(heatedPlanterElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => heatedPlanterElfTraining.level.value >= 4
|
shouldEarn: () => heatedPlanterElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -386,7 +389,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Mary Level 5",
|
requirement: "Mary Level 5",
|
||||||
effectDisplay: "Auto smelting speed is multiplied by (total XP/1000)^0.5"
|
effectDisplay: "Auto smelting speed is multiplied by (total XP/1000)^0.5"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(heatedPlanterElfMilestones[3].earned.value),
|
visibility: () =>
|
||||||
|
showIf(heatedPlanterElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -419,7 +423,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Noel Level 4",
|
requirement: "Noel Level 4",
|
||||||
effectDisplay: "Plastic² subtracts from oil refinery cost"
|
effectDisplay: "Plastic² subtracts from oil refinery cost"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(fertilizerElfMilestones[2].earned.value),
|
visibility: () =>
|
||||||
|
showIf(fertilizerElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => heatedPlanterElfTraining.level.value >= 4
|
shouldEarn: () => heatedPlanterElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -427,7 +432,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Noel Level 5",
|
requirement: "Noel Level 5",
|
||||||
effectDisplay: "Unlock an elf that autobuys drills and extractors"
|
effectDisplay: "Unlock an elf that autobuys drills and extractors"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(fertilizerElfMilestones[3].earned.value),
|
visibility: () =>
|
||||||
|
showIf(fertilizerElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
shouldEarn: () => heatedPlanterElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -460,7 +466,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Joy Level 4",
|
requirement: "Joy Level 4",
|
||||||
effectDisplay: "Metal gain is boosted by heavy drills"
|
effectDisplay: "Metal gain is boosted by heavy drills"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(smallfireElfMilestones[2].earned.value),
|
visibility: () =>
|
||||||
|
showIf(smallfireElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => smallfireElfTraining.level.value >= 4
|
shouldEarn: () => smallfireElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -468,7 +475,8 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Joy Level 5",
|
requirement: "Joy Level 5",
|
||||||
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(smallfireElfMilestones[3].earned.value),
|
visibility: () =>
|
||||||
|
showIf(smallfireElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => smallfireElfTraining.level.value >= 5
|
shouldEarn: () => smallfireElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -501,7 +509,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Faith Level 4",
|
requirement: "Faith Level 4",
|
||||||
effectDisplay: "Oil gain is boosted by heavy drill drills"
|
effectDisplay: "Oil gain is boosted by heavy drill drills"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(bonfireElfMilestones[2].earned.value),
|
visibility: () => showIf(bonfireElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => bonfireElfTraining.level.value >= 4
|
shouldEarn: () => bonfireElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -509,7 +517,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Faith Level 5",
|
requirement: "Faith Level 5",
|
||||||
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(bonfireElfMilestones[3].earned.value),
|
visibility: () => showIf(bonfireElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => bonfireElfTraining.level.value >= 5
|
shouldEarn: () => bonfireElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -542,7 +550,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Snowball Level 4",
|
requirement: "Snowball Level 4",
|
||||||
effectDisplay: "Plastic gain is boosted by heavy extractors"
|
effectDisplay: "Plastic gain is boosted by heavy extractors"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(kilnElfMilestones[2].earned.value),
|
visibility: () => showIf(kilnElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => kilnElfTraining.level.value >= 4
|
shouldEarn: () => kilnElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -550,7 +558,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Snowball Level 5",
|
requirement: "Snowball Level 5",
|
||||||
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
effectDisplay: "Raise Industrial Crucible's effect to the 1.1"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(kilnElfMilestones[3].earned.value),
|
visibility: () => showIf(kilnElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => kilnElfTraining.level.value >= 5
|
shouldEarn: () => kilnElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -583,7 +591,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Star Level 4",
|
requirement: "Star Level 4",
|
||||||
effectDisplay: "0.95^(total books) multiplies XP requirement"
|
effectDisplay: "0.95^(total books) multiplies XP requirement"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(paperElfMilestones[2].earned.value),
|
visibility: () => showIf(paperElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => paperElfTraining.level.value >= 4
|
shouldEarn: () => paperElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -591,7 +599,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Star Level 5",
|
requirement: "Star Level 5",
|
||||||
effectDisplay: "Gain 5 free books for all level 5 elves"
|
effectDisplay: "Gain 5 free books for all level 5 elves"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(paperElfMilestones[3].earned.value),
|
visibility: () => showIf(paperElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => paperElfTraining.level.value >= 5
|
shouldEarn: () => paperElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -624,7 +632,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Bell Level 4",
|
requirement: "Bell Level 4",
|
||||||
effectDisplay: "Unlock a second row of box buyables"
|
effectDisplay: "Unlock a second row of box buyables"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(boxElfMilestones[2].earned.value),
|
visibility: () => showIf(boxElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => boxElfTraining.level.value >= 4
|
shouldEarn: () => boxElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -632,7 +640,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Bell Level 5",
|
requirement: "Bell Level 5",
|
||||||
effectDisplay: "Unlock another row of box upgrades"
|
effectDisplay: "Unlock another row of box upgrades"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(boxElfMilestones[3].earned.value),
|
visibility: () => showIf(boxElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => boxElfTraining.level.value >= 5
|
shouldEarn: () => boxElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
@ -665,7 +673,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Gingersnap Level 4",
|
requirement: "Gingersnap Level 4",
|
||||||
effectDisplay: "sqrt(classrooms)/2+1 multiplies ALL dye gain, but reset all dyes."
|
effectDisplay: "sqrt(classrooms)/2+1 multiplies ALL dye gain, but reset all dyes."
|
||||||
},
|
},
|
||||||
visibility: () => showIf(clothElfMilestones[2].earned.value),
|
visibility: () => showIf(clothElfMilestones[2].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => clothElfTraining.level.value >= 4
|
shouldEarn: () => clothElfTraining.level.value >= 4
|
||||||
})),
|
})),
|
||||||
createMilestone(() => ({
|
createMilestone(() => ({
|
||||||
|
@ -673,7 +681,7 @@ const layer = createLayer(id, () => {
|
||||||
requirement: "Gingersnap Level 5",
|
requirement: "Gingersnap Level 5",
|
||||||
effectDisplay: "Well depth divides metal machine costs"
|
effectDisplay: "Well depth divides metal machine costs"
|
||||||
},
|
},
|
||||||
visibility: () => showIf(clothElfMilestones[3].earned.value),
|
visibility: () => showIf(clothElfMilestones[3].earned.value && main.day.value >= 13),
|
||||||
shouldEarn: () => clothElfTraining.level.value >= 5
|
shouldEarn: () => clothElfTraining.level.value >= 5
|
||||||
}))
|
}))
|
||||||
] as Array<GenericMilestone>;
|
] as Array<GenericMilestone>;
|
||||||
|
|
|
@ -31,7 +31,7 @@ import clothSymbol from "./symbols/cloth.png";
|
||||||
import oilSymbol from "./symbols/oil.png";
|
import oilSymbol from "./symbols/oil.png";
|
||||||
import plasticSymbol from "./symbols/plastic.png";
|
import plasticSymbol from "./symbols/plastic.png";
|
||||||
import dyesSymbol from "./symbols/dyes.png";
|
import dyesSymbol from "./symbols/dyes.png";
|
||||||
import managementSymbol from "./symbols/elfManagement.png"
|
import managementSymbol from "./symbols/elfManagement.png";
|
||||||
import coal from "./layers/coal";
|
import coal from "./layers/coal";
|
||||||
import elves from "./layers/elves";
|
import elves from "./layers/elves";
|
||||||
import paper from "./layers/paper";
|
import paper from "./layers/paper";
|
||||||
|
@ -260,7 +260,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
createDay(() => ({
|
createDay(() => ({
|
||||||
day: 12,
|
day: 12,
|
||||||
shouldNotify: false,
|
shouldNotify: false,
|
||||||
layer: "management", // "management"
|
layer: null,
|
||||||
symbol: managementSymbol,
|
symbol: managementSymbol,
|
||||||
story: "You watch as the elves work, and you realize that they could probably be trained to help out better. Just then, Santa comes over to check on your progress. You reply that you're doing fine, except that the elves may need a bit of behavior management. Santa offers to help, saying that he doesn't want to leave you to do everything. Unfortunately for you, the behavior problems won't fix themselves, so let's get to work!",
|
story: "You watch as the elves work, and you realize that they could probably be trained to help out better. Just then, Santa comes over to check on your progress. You reply that you're doing fine, except that the elves may need a bit of behavior management. Santa offers to help, saying that he doesn't want to leave you to do everything. Unfortunately for you, the behavior problems won't fix themselves, so let's get to work!",
|
||||||
completedStory: ""
|
completedStory: ""
|
||||||
|
@ -432,8 +432,7 @@ export const getInitialLayers = (
|
||||||
cloth,
|
cloth,
|
||||||
oil,
|
oil,
|
||||||
plastic,
|
plastic,
|
||||||
dyes,
|
dyes
|
||||||
management
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -454,6 +453,19 @@ export function fixOldSave(
|
||||||
player: Partial<PlayerData>
|
player: Partial<PlayerData>
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||||
): void {
|
): void {
|
||||||
|
if (oldVersion !== "0.0") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
player.offlineProd = false;
|
player.offlineProd = false;
|
||||||
|
delete player.layers?.management;
|
||||||
|
if (player.layers?.main?.days?.[11]) {
|
||||||
|
player.layers.main.days[11].opened = false;
|
||||||
|
}
|
||||||
|
if (player.layers?.main?.day === 12) {
|
||||||
|
player.layers?.main?.day === 11;
|
||||||
|
}
|
||||||
|
if (player.tabs) {
|
||||||
|
player.tabs = player.tabs.filter(l => l !== "management");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"discordName": "",
|
"discordName": "",
|
||||||
"discordLink": "",
|
"discordLink": "",
|
||||||
|
|
||||||
"versionNumber": "0.3",
|
"versionNumber": "0.4",
|
||||||
"versionTitle": "Initial Commit",
|
"versionTitle": "Initial Commit",
|
||||||
|
|
||||||
"allowGoBack": true,
|
"allowGoBack": true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue