Adding bosses to the game #6
@ -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!");
|
||||||
|
|||||||
@ -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 />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user