Adding bosses to the game #6

Merged
mico merged 21 commits from feature/boss-mechanic into main 2024-10-31 13:56:05 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 9443561b9c - Show all commits

View File

@ -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>

View File

@ -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>
}