Fixed some management issues

This commit is contained in:
thepaperpilot 2022-12-12 23:11:42 -06:00
parent 39dfe97599
commit 6a00574a78
2 changed files with 14 additions and 9 deletions

View file

@ -196,12 +196,17 @@ const layer = createLayer(id, () => {
const elfXPGainComputed = computed(() => elfXPGain.apply(0.1)); const elfXPGainComputed = computed(() => elfXPGain.apply(0.1));
const click = createClickable(() => ({ const click = createClickable(() => ({
display: { display: {
title: elf.name, title: jsx(() => (
<>
{elf.name} - LV {formatWhole(level.value)}
</>
)),
description: jsx(() => ( description: jsx(() => (
<> <>
{elf.name} is currently at level {formatWhole(level.value)}, and achieved a Current XP: {format(exp.value)}
total of {format(exp.value)} XP. They buy buyables{" "} <br />
{formatWhole(elf.computedAutoBuyCooldown.value)} times per second, gaining{" "} {elf.name} can buy buyables {formatWhole(elf.computedAutoBuyCooldown.value)}{" "}
times per second, gaining{" "}
{Decimal.gte(level.value, schools.amount.value) {Decimal.gte(level.value, schools.amount.value)
? 0 ? 0
: format( : format(
@ -487,7 +492,7 @@ const layer = createLayer(id, () => {
</> </>
)) ))
}, },
shouldEarn: () => heatedPlanterElfTraining.level.value >= 1 shouldEarn: () => fertilizerElfTraining.level.value >= 1
})), })),
createMilestone(() => ({ createMilestone(() => ({
display: { display: {
@ -495,7 +500,7 @@ const layer = createLayer(id, () => {
effectDisplay: `"The Garden Tree's Handbook" affects "Fertilized Soil" twice` effectDisplay: `"The Garden Tree's Handbook" affects "Fertilized Soil" twice`
}, },
visibility: () => showIf(fertilizerElfMilestones[0].earned.value), visibility: () => showIf(fertilizerElfMilestones[0].earned.value),
shouldEarn: () => heatedPlanterElfTraining.level.value >= 2 shouldEarn: () => fertilizerElfTraining.level.value >= 2
})), })),
createMilestone(() => ({ createMilestone(() => ({
display: { display: {
@ -503,7 +508,7 @@ const layer = createLayer(id, () => {
effectDisplay: "Divide the mining drill cost by ln(Total logs + e)" effectDisplay: "Divide the mining drill cost by ln(Total logs + e)"
}, },
visibility: () => showIf(fertilizerElfMilestones[1].earned.value), visibility: () => showIf(fertilizerElfMilestones[1].earned.value),
shouldEarn: () => heatedPlanterElfTraining.level.value >= 3 shouldEarn: () => fertilizerElfTraining.level.value >= 3
})), })),
createMilestone(() => ({ createMilestone(() => ({
display: { display: {
@ -516,7 +521,7 @@ const layer = createLayer(id, () => {
}, },
visibility: () => visibility: () =>
showIf(fertilizerElfMilestones[2].earned.value && main.day.value >= 13), showIf(fertilizerElfMilestones[2].earned.value && main.day.value >= 13),
shouldEarn: () => heatedPlanterElfTraining.level.value >= 4 shouldEarn: () => fertilizerElfTraining.level.value >= 4
})), })),
createMilestone(() => ({ createMilestone(() => ({
display: { display: {