feat(skywars): display melee, void, bow and mobs kills stats
This commit is contained in:
@@ -21,9 +21,37 @@ export default function SkyWarsGeneralStats({
|
||||
</Stat>
|
||||
<BasicStat title="Coins: " value={formatNumber(stats.coins)} className="text-mc-gold" />
|
||||
<BasicStat title="Token: " value={formatNumber(stats.cosmetic_tokens)} className="text-mc-dark-green" />
|
||||
<p>
|
||||
<br />
|
||||
</p>
|
||||
<p>
|
||||
<br />
|
||||
</p>
|
||||
<BasicStat title="Blocks Placed: " value={formatNumber(stats.blocks_placed)} />
|
||||
<BasicStat title="Blocks Broken: " value={formatNumber(stats.blocks_broken)} />
|
||||
<BasicStat title="Chests Opened: " value={formatNumber(stats.chests_opened)} />
|
||||
<BasicStat title="Arrows Hit: " value={formatNumber(stats.arrows_hit)} />
|
||||
<BasicStat title="Arrows Shot: " value={formatNumber(stats.arrows_shot)} />
|
||||
<BasicStat title="Arrow Hit Accuracy: " value={`${((stats.arrows_hit / stats.arrows_shot) * 100).toFixed(2)}%`} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<BasicStat title="Kills: " value={formatNumber(stats.kills)} />
|
||||
<BasicStat title="Deaths: " value={formatNumber(stats.deaths)} />
|
||||
<BasicStat title="Assists: " value={formatNumber(stats.assists)} />
|
||||
<BasicStat title="Kill/Death Ratio: " value={(stats.kills / stats.deaths).toFixed(2)} />
|
||||
<p>
|
||||
<br />
|
||||
</p>
|
||||
<p>
|
||||
<br />
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<BasicStat title="Melee Kills: " value={formatNumber(stats.melee_kills)} />
|
||||
<BasicStat title="Void Kills: " value={formatNumber(stats.void_kills)} />
|
||||
<BasicStat title="Bow Kills: " value={formatNumber(stats.bow_kills)} />
|
||||
<BasicStat title="Mobs Kills: " value={formatNumber(stats.mobs_kills)} />
|
||||
</div>
|
||||
<div className="flex-1"></div>
|
||||
<div className="flex-1"></div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user