Formatting for Boss info display
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:29:39 +01:00
parent 61ab8f2147
commit 9443561b9c
Signed by: mico
GPG Key ID: A3F8023524CF1C8D
2 changed files with 3 additions and 3 deletions

View File

@ -81,9 +81,9 @@ const BossInfo = () => {
}, [balance, army?.profit_per_second, player?.last_raided_at, boss?.level]) }, [balance, army?.profit_per_second, player?.last_raided_at, boss?.level])
return <div className={styles.bossInfo}> return <div className={styles.bossInfo}>
<p><strong className={bossLevelToClass[boss?.level || 0]}>{bossToName[variant]}</strong> Moloch <small>(lvl {boss ? boss.level + 1 : 0})</small></p> <p><strong className={bossLevelToClass[boss?.level || 0]}>{bossToName[variant]}</strong> Moloch <small>(lvl {boss ? boss.level + 1 : 0})</small></p>
<p><strong className={styles.reward}>{formatUnits(bossToReward[boss?.level || 0], 18)} RGCVII</strong> <small>reward</small></p> <p><strong className={styles.reward}>{parseFloat(parseFloat(formatUnits(bossToReward[boss?.level || 0], 18).toString()).toFixed(4))} RGCVII</strong> <small>reward</small></p>
<p> <p>
<strong>{chanceToDefeat.current * 100} % to slay</strong>{" "} <strong>{parseFloat((chanceToDefeat.current * 100).toFixed(2))} % to slay</strong>{" "}
{chanceToDefeat.current == maxChance ? <small className={styles.maxed}>(MAXED)</small> : <small>(Max {maxChance * 100}%)</small>} {chanceToDefeat.current == maxChance ? <small className={styles.maxed}>(MAXED)</small> : <small>(Max {maxChance * 100}%)</small>}
</p> </p>
</div> </div>

View File

@ -24,7 +24,7 @@ const WaitingForTxModal = ({
<div className={styles.loadingHamsterWheel} /> <div className={styles.loadingHamsterWheel} />
<div className={styles.loadingHamster} /> <div className={styles.loadingHamster} />
</div> </div>
<p className={styles.loadingText}>Writing contract ...</p> <p className={styles.loadingText}>Spinning the chain ...</p>
</div> </div>
} }