forked from mico/idle_moloch
Formatting for Boss info display
This commit is contained in:
parent
61ab8f2147
commit
9443561b9c
@ -81,9 +81,9 @@ const BossInfo = () => {
|
||||
}, [balance, army?.profit_per_second, player?.last_raided_at, boss?.level])
|
||||
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={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>
|
||||
<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>}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -24,7 +24,7 @@ const WaitingForTxModal = ({
|
||||
<div className={styles.loadingHamsterWheel} />
|
||||
<div className={styles.loadingHamster} />
|
||||
</div>
|
||||
<p className={styles.loadingText}>Writing contract ...</p>
|
||||
<p className={styles.loadingText}>Spinning the chain ...</p>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user