mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-16 09:31:43 +00:00
hardcap elf levels at school level
This commit is contained in:
parent
f3007eb942
commit
9ceacb08d9
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ const layer = createLayer(id, () => {
|
|||
const exp = persistent<DecimalSource>(0);
|
||||
const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(1e4));
|
||||
const level = computed(() =>
|
||||
Decimal.mul(9, exp.value).div(1e4).add(1).log10().floor().toNumber()
|
||||
Decimal.min(Decimal.mul(9, exp.value).div(1e4).add(1).log10().floor().toNumber(), schools.amount.value).toNumber()
|
||||
);
|
||||
const expToNextLevel = computed(() =>
|
||||
Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(1e4))
|
||||
|
@ -652,7 +652,7 @@ const layer = createLayer(id, () => {
|
|||
classroomUpgrade,
|
||||
display: jsx(() => (
|
||||
<>
|
||||
{import.meta.env.DEV ? (
|
||||
{import.meta.env.DEV || true ? (
|
||||
<>
|
||||
{main.day.value === day ? `Get all elves to level 5.` : `${name} Complete!`}{" "}
|
||||
-
|
||||
|
|
Loading…
Add table
Reference in a new issue