updated math

This commit is contained in:
MasterGordon 2024-10-16 00:06:12 +02:00
parent 72150b070d
commit 5f9bf142b2
5 changed files with 11 additions and 6 deletions

View File

@ -311,6 +311,6 @@ export const game = {
const { finished, stage } = serverGame;
if (finished == 0) return 0;
if (stage < 2) return 0;
return Math.floor(Math.pow(2, stage * 0.9 + stage * 1.2));
return Math.floor(Math.pow(2, stage * 0.92 + stage * 1.2));
},
};

View File

@ -2,12 +2,12 @@ import {
keepPreviousData,
useInfiniteQuery,
useMutation,
UseMutationResult,
type UseMutationResult,
useQuery,
useQueryClient,
UseQueryResult,
type UseQueryResult,
} from "@tanstack/react-query";
import { Routes } from "../backend/router";
import type { Routes } from "../backend/router";
import { wsClient } from "./wsClient";
import type { z } from "zod";

View File

@ -1,4 +1,4 @@
import { Theme } from "./Theme";
import type { Theme } from "./Theme";
export const romanceTheme: Theme = {
size: 32,

5
src/vite-env.d.ts vendored
View File

@ -26,6 +26,11 @@ declare module "*&inline" {
export default outputs;
}
declare module "*.png" {
const outputs: string;
export default outputs;
}
declare module "*?as=metadata" {
const outputs: OutputMetadata[];
export default outputs;

View File

@ -24,5 +24,5 @@
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
},
"include": ["vite.config.ts", "backend/**/*.ts"]
"include": ["vite.config.ts", "backend/**/*.ts", "src", "backend"]
}