add Frosty and Cocoa milestone descriptions

This commit is contained in:
unsoftcapped3 2022-12-14 01:20:59 +00:00
parent bc275d7cd7
commit ce37ed3dcc

View file

@ -900,6 +900,88 @@ const layer = createLayer(id, () => {
shouldEarn: () => metalElfTraining.level.value >= 5
}))
] as Array<GenericMilestone>;
const oilElfMilestones = [
createMilestone(() => ({
display: {
requirement: "Cocoa Level 1",
effectDisplay: "The depth boost to oil gain is better"
},
shouldEarn: () => oilElfTraining.level.value >= 1
})),
createMilestone(() => ({
display: {
requirement: "Cocoa Level 2",
effectDisplay: "Total oil gained boosts drill power"
},
visibility: () => showIf(oilElfMilestones[0].earned.value),
shouldEarn: () => oilElfTraining.level.value >= 2
})),
createMilestone(() => ({
display: {
requirement: "Cocoa Level 3",
effectDisplay: "Double drill power and oil gain"
},
visibility: () => showIf(oilElfMilestones[1].earned.value),
shouldEarn: () => oilElfTraining.level.value >= 3
})),
createMilestone(() => ({
display: {
requirement: "Cocoa Level 4",
effectDisplay: "Plastics are produced 5x faster but cost 5x as much oil"
},
visibility: () => showIf(oilElfMilestones[2].earned.value && main.day.value >= 13),
shouldEarn: () => oilElfTraining.level.value >= 4
})),
createMilestone(() => ({
display: {
requirement: "Cocoa Level 5",
effectDisplay: "Unlock another row of oil upgrades"
},
visibility: () => showIf(oilElfMilestones[3].earned.value && main.day.value >= 13),
shouldEarn: () => oilElfTraining.level.value >= 5
}))
] as Array<GenericMilestone>;
const heavyDrillElfMilestones = [
createMilestone(() => ({
display: {
requirement: "Frosty Level 1",
effectDisplay: "Oil boosts Star and Bell's xp gain"
},
shouldEarn: () => heavyDrillElfTraining.level.value >= 1
})),
createMilestone(() => ({
display: {
requirement: "Frosty Level 2",
effectDisplay: "Oil pumps are cheaper"
},
visibility: () => showIf(heavyDrillElfMilestones[0].earned.value),
shouldEarn: () => heavyDrillElfTraining.level.value >= 2
})),
createMilestone(() => ({
display: {
requirement: "Frosty Level 3",
effectDisplay: "Oil burners act like there are ^1.5 of them"
},
visibility: () => showIf(heavyDrillElfMilestones[1].earned.value),
shouldEarn: () => heavyDrillElfTraining.level.value >= 3
})),
createMilestone(() => ({
display: {
requirement: "Frosty Level 4",
effectDisplay: "Heavy drill's ln is now log2.5"
},
visibility: () => showIf(heavyDrillElfMilestones[2].earned.value && main.day.value >= 13),
shouldEarn: () => heavyDrillElfTraining.level.value >= 4
})),
createMilestone(() => ({
display: {
requirement: "Frosty Level 5",
effectDisplay: "Unlock another row of paper upgrades"
},
visibility: () => showIf(heavyDrillElfMilestones[3].earned.value && main.day.value >= 13),
shouldEarn: () => heavyDrillElfTraining.level.value >= 5
}))
] as Array<GenericMilestone>;
// ------------------------------------------------------------------------------- Milestone display
const currentShown = persistent<string>("Holly");
@ -954,7 +1036,9 @@ const layer = createLayer(id, () => {
const plasticElfTraining = [paperElfTraining, boxElfTraining, clothElfTraining];
const coalDrillElfTraining = createElfTraining(elves.elves.coalDrillElf, coalDrillElfMilestones);
const metalElfTraining = createElfTraining(elves.elves.metalElf, metalElfMilestones);
const row5Elves = [coalDrillElfTraining, metalElfTraining]
const oilElfTraining = createElfTraining(elves.elves.oilElf, oilElfMilestones);
const heavyDrillElfTraining = createElfTraining(elves.elves.heavyDrillElf, heavyDrillElfMilestones);
const row5Elves = [coalDrillElfTraining, metalElfTraining, oilElfTraining, heavyDrillElfTraining]
const elfTraining = {
cutterElfTraining,
planterElfTraining,
@ -969,7 +1053,9 @@ const layer = createLayer(id, () => {
boxElfTraining,
clothElfTraining,
coalDrillElfTraining,
metalElfTraining
metalElfTraining,
oilElfTraining,
heavyDrillElfTraining
};
const day12Elves = [
cutterElfTraining,
@ -999,7 +1085,9 @@ const layer = createLayer(id, () => {
boxElfTraining,
clothElfTraining,
coalDrillElfTraining,
metalElfTraining
metalElfTraining,
oilElfTraining,
heavyDrillElfTraining
];
// ------------------------------------------------------------------------------- Update