break for big numbers

This commit is contained in:
Christian Fehmer 2024-09-19 14:03:45 +03:00
parent b34a5d61e5
commit 94cf83881f
No known key found for this signature in database
GPG key ID: FE53784A69964062
3 changed files with 4 additions and 3 deletions

View file

@ -115,7 +115,7 @@ nav {
position: absolute;
color: var(--text-color);
display: grid;
grid-template-columns: auto 2.5em;
grid-template-columns: auto minmax(5ch, max-content);
gap: 0.5em;
//justify-items: center;
width: 100%;

View file

@ -191,7 +191,7 @@ export function update(snapshot: MonkeyTypes.Snapshot | undefined): void {
export async function updateXpBar(
currentXp: number,
addedXp: number,
breakdown?: Record<string, number>
breakdown?: XpBreakdown
): Promise<void> {
skipBreakdown = false;
const startingXp = Levels.getXpDetails(currentXp);

View file

@ -98,10 +98,11 @@ export function appendButton(): void {
console.log("click");
await updateXpBar(1000, 5000, {
base: 100,
"100%": 200,
fullAccuracy: 200,
accPenalty: 300,
quote: 400,
punctuation: 500,
streak: 10_000,
configMultiplier: 2,
});
});