some slight improvements

This commit is contained in:
circle-gon 2022-12-11 21:05:19 -05:00 committed by GitHub
parent 6199f07fbc
commit d9bbd9dce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ const layer = createLayer(id, () => {
const exp = persistent<DecimalSource>(0);
const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(1e4));
const level = computed(() =>
Decimal.min(Decimal.mul(9, exp.value).div(1e4).add(1).log10().floor().toNumber(), schools.amount.value).toNumber()
Decimal.min(Decimal.mul(9, exp.value).div(1e4).add(1).log10().floor(), schools.amount.value).toNumber()
);
const expToNextLevel = computed(() =>
Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(1e4))
@ -656,8 +656,6 @@ const layer = createLayer(id, () => {
classroomUpgrade,
display: jsx(() => (
<>
{import.meta.env.DEV || true ? (
<>
{main.day.value === day ? `Get all elves to level 5.` : `${name} Complete!`}{" "}
-
<button
@ -670,10 +668,6 @@ const layer = createLayer(id, () => {
{render(modifiersModal)}
{render(dayProgress)}
{render(tabs)}
</>
) : (
"The day is still being developed, please wait patiently."
)}
</>
))
};