Progression tier parsing BigInt by string rathere
Some checks failed
CI / Foundry project (push) Waiting to run
CI / Foundry project (pull_request) Has been cancelled

This commit is contained in:
mic0 2024-10-31 14:09:18 +01:00
parent d83e5323d2
commit ad0aa6e6d3
Signed by: mico
GPG Key ID: A3F8023524CF1C8D
2 changed files with 14 additions and 14 deletions

View File

@ -4,17 +4,17 @@ import styles from "../styles/Army.module.css";
// Quote categories based on total minted GELD // Quote categories based on total minted GELD
const PROGRESSION_TIERS = { const PROGRESSION_TIERS = {
BEGINNER: BigInt(1000000), BEGINNER: BigInt("1000000"),
NOVICE: BigInt(10000000), NOVICE: BigInt("10000000"),
INTERMEDIATE: BigInt(100000000), INTERMEDIATE: BigInt("100000000"),
EXPERIENCED: BigInt(1000000000), EXPERIENCED: BigInt("1000000000"),
EXPERT: BigInt(10000000000), EXPERT: BigInt("10000000000"),
MASTER: BigInt(100000000000), MASTER: BigInt("100000000000"),
EPIC: BigInt(1000000000000), EPIC: BigInt("1000000000000"),
LEGENDARY: BigInt(10000000000000), LEGENDARY: BigInt("10000000000000"),
GUILD_LEADER: BigInt(100000000000000), GUILD_LEADER: BigInt("100000000000000"),
DIVINE: BigInt(1000000000000000), DIVINE: BigInt("1000000000000000"),
MAXIMUM: BigInt(10000000000000000), MAXIMUM: BigInt("10000000000000000"),
}; };
const quotes = { const quotes = {
@ -177,7 +177,7 @@ function PixelatedQuote() {
intervalIdRef.current = setInterval(() => { intervalIdRef.current = setInterval(() => {
const totalMinted = player?.total_minted ?? BigInt(0); const totalMinted = player?.total_minted ?? BigInt(0);
// Show welcome message only once at the start // Show welcome message only once at the start
if (!hasShownWelcome.current) { if (!hasShownWelcome.current) {
setCurrentQuote("Welcome to the Dark Forest!"); setCurrentQuote("Welcome to the Dark Forest!");

View File

@ -20,7 +20,7 @@ const bossToMountainsClass = {
} }
const Scene = () => { const Scene = () => {
const { isRegistered, boss } = usePlayer(); const { isRegistered, boss, player } = usePlayer();
const [isLeaderboardOpen, setIsLeaderboardOpen] = useState(false); const [isLeaderboardOpen, setIsLeaderboardOpen] = useState(false);
const handleMusicReady = useCallback((unmute: () => void) => { const handleMusicReady = useCallback((unmute: () => void) => {
@ -38,7 +38,7 @@ const Scene = () => {
<div className={`${styles.clouds_small} ${styles.background_asset}`} /> <div className={`${styles.clouds_small} ${styles.background_asset}`} />
<div className={`${styles.mountains} ${styles.background_asset} ${bossToMountainsClass[variant]}`} /> <div className={`${styles.mountains} ${styles.background_asset} ${bossToMountainsClass[variant]}`} />
<div className={`${styles.village} ${styles.background_asset}`} /> <div className={`${styles.village} ${styles.background_asset}`} />
{isRegistered && <BossInfo />} {isRegistered && player?.has_active_session && <BossInfo />}
<MarchingBand /> <MarchingBand />
<div className={`${styles.bonfire} ${styles.background_asset}`} /> <div className={`${styles.bonfire} ${styles.background_asset}`} />
<Army /> <Army />