Implemented Jack lv1-3

This commit is contained in:
Anthony Lawn 2022-12-12 13:18:00 -06:00
parent 28c7ac581b
commit 5f7c3f0ab3
2 changed files with 11 additions and 2 deletions

View file

@ -431,6 +431,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
if (Decimal.gte(v, 200)) v = Decimal.pow(v, 2).div(200);
if (Decimal.gte(v, 2e6)) v = Decimal.pow(v, 2).div(2e6);
v = Decimal.pow(0.95, paper.books.heatedCuttersBook.amount.value).times(v);
if (management.elfTraining.heatedCuttersElfTraining.milestones[0].earned.value) {
v = Decimal.pow(0.95, paper.books.heatedCuttersBook.amount.value).times(v);
}
return Decimal.add(v, 1).pow(2.5).times(10);
},
display: {
@ -643,7 +646,12 @@ const layer = createLayer(id, function (this: BaseLayer) {
multiplier: oil.extractorCoal,
description: "Heavy Extractor",
enabled: () => Decimal.gt(oil.activeExtractor.value, 0)
}))
})),
createExponentialModifier(() => ({
exponent: 1.05,
description: "Jack Level 2",
enabled: management.elfTraining.heatedCutterElfTraining.milestones[1].earned
})
]) as WithRequired<Modifier, "description" | "revert">;
const computedCoalGain = computed(() => coalGain.apply(0));

View file

@ -554,7 +554,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
description:
"Jack will automatically purchase heated cutters you can afford, without actually spending any coal.",
buyable: coal.heatedCutters,
cooldownModifier: heatedCutterCooldown
cooldownModifier: heatedCutterCooldown,
buyMax: () => management.elfTraining.heatedCutterElfTraining.milestones[2].earned.value
});
const heatedPlantersElf = createElf({
name: "Mary",