add coal drill elf milestones, also changed mining drill to coal drill

This commit is contained in:
unsoftcapped3 2022-12-14 00:39:48 +00:00
parent f87df61ebe
commit 219a0d7cb0
3 changed files with 53 additions and 9 deletions

View file

@ -278,7 +278,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
},
display: jsx(() => (
<>
<h3>Mining Drill</h3>
<h3>Coal Drill</h3>
<br />
Dig through the ground to find 50,000,000 coal
<br />
@ -575,7 +575,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
addend() {
return drillCoal.value;
},
description: "Mining Drills",
description: "Coal Drills",
enabled() {
return Decimal.gt(activeDrills.value, 0);
}

View file

@ -759,7 +759,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
visibility: () => showIf(plastic.elfUpgrades.clothElf.bought.value)
});
const plasticElves = [paperElf, boxElf, clothElf];
const miningDrillElf = createElf({
const coalDrillElf = createElf({
name: "Peppermint",
description:
"Peppermint will automatically purchase all mining drills you can afford, without actually spending any resources.",
@ -819,7 +819,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
}
}
});
const managementElves = [miningDrillElf, heavyDrillElf, oilElf];
const managementElves = [coalDrillElf, heavyDrillElf, oilElf];
const metalElf = createElf({
name: "Twinkle",
description:

View file

@ -822,7 +822,47 @@ const layer = createLayer(id, () => {
shouldEarn: () => clothElfTraining.level.value >= 5
}))
] as Array<GenericMilestone>;
const coalDrillElfMilestones = [
createMilestone(() => ({
display: {
requirement: "Peppermint Level 1",
effectDisplay: "The mining drill exponent is increased from 2 to 2.5"
},
shouldEarn: () => coalDrillElfTraining.level.value >= 1
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 2",
effectDisplay: "Coal boosts its own gain"
},
visibility: () => showIf(coalDrillElfMilestones[0].earned.value),
shouldEarn: () => coalDrillElfTraining.level.value >= 2
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 3",
effectDisplay: "The coal drill cost is decreased"
},
visibility: () => showIf(coalDrillElfMilestones[1].earned.value),
shouldEarn: () => coalDrillElfTraining.level.value >= 3
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 4",
effectDisplay: "Unlock another row of coal upgrades"
},
visibility: () => showIf(coalDrillElfMilestones[2].earned.value && main.day.value >= 13),
shouldEarn: () => coalDrillElfTraining.level.value >= 4
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 5",
effectDisplay: "Well depth boosts coal gain more"
},
visibility: () => showIf(coalDrillElfMilestones[3].earned.value && main.day.value >= 13),
shouldEarn: () => coalDrillElfTraining.level.value >= 5
}))
] as Array<GenericMilestone>;
// ------------------------------------------------------------------------------- Milestone display
const currentShown = persistent<string>("Holly");
@ -875,7 +915,8 @@ const layer = createLayer(id, () => {
const boxElfTraining = createElfTraining(elves.elves.boxElf, boxElfMilestones);
const clothElfTraining = createElfTraining(elves.elves.clothElf, clothElfMilestones);
const plasticElfTraining = [paperElfTraining, boxElfTraining, clothElfTraining];
const coalDrillElfTraining = createElfTraining(elves.elves.coalDrillElf, coalDrillElfMilestones);
const row5Elves = [coalDrillElfTraining]
const elfTraining = {
cutterElfTraining,
planterElfTraining,
@ -888,7 +929,8 @@ const layer = createLayer(id, () => {
kilnElfTraining,
paperElfTraining,
boxElfTraining,
clothElfTraining
clothElfTraining,
coalDrillElfTraining
};
const day12Elves = [
cutterElfTraining,
@ -916,7 +958,8 @@ const layer = createLayer(id, () => {
kilnElfTraining,
paperElfTraining,
boxElfTraining,
clothElfTraining
clothElfTraining,
coalDrillElfTraining
];
// ------------------------------------------------------------------------------- Update
@ -1380,7 +1423,8 @@ const layer = createLayer(id, () => {
treeElfTraining,
coalElfTraining,
fireElfTraining,
plasticElfTraining
plasticElfTraining,
row5Elves
)}
<Spacer />
{currentElfDisplay()}