Updated stats
This commit is contained in:
@@ -85,6 +85,7 @@ export default function SkyWarsStats({ stats }: { stats: Player["player"]["stats
|
||||
<Separator className="my-4" />
|
||||
<SkywarsProgress level={Math.floor(level)} percent={percent} />
|
||||
<SkyWarsGeneralStats statsChecked={stats} level={level} />
|
||||
<Separator className="my-4" />
|
||||
</CollapsibleContent>
|
||||
</Collapsible>
|
||||
</CardContent>
|
||||
|
||||
@@ -12,6 +12,14 @@ export default function SkyWarsGeneralStats({
|
||||
}) {
|
||||
const stats = statsChecked!
|
||||
|
||||
function getCorruptionLevel() {
|
||||
let num = stats.angel_of_death_level + stats.angels_offering
|
||||
|
||||
if (stats.packages.find(p => p === "favor_of_the_angel")) num++
|
||||
|
||||
return num
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex mb-10">
|
||||
<div className="flex-1">
|
||||
@@ -53,6 +61,20 @@ export default function SkyWarsGeneralStats({
|
||||
<BasicStat title="Pearls Thrown: " value={formatNumber(stats.enderpearls_thrown)} />
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<BasicStat title="Wins: " value={formatNumber(stats.wins)} />
|
||||
<BasicStat title="Lab Wins: " value={formatNumber(stats.wins_lab)} />
|
||||
<BasicStat title="Losses: " value={formatNumber(stats.losses)} />
|
||||
<BasicStat title="Win/Loss Ratio: " value={(stats.wins / stats.losses).toFixed(2)} />
|
||||
<BasicStat title="Kill/Win Ratio: " value={(stats.kills / stats.wins).toFixed(2)} />
|
||||
<p>
|
||||
<br />
|
||||
</p>
|
||||
<BasicStat title="Heads: " value={formatNumber(stats.heads)} />
|
||||
<BasicStat title="Heads: " value={`${getCorruptionLevel()}%`} />
|
||||
<BasicStat title="Total Souls: " value={formatNumber(stats.souls_gathered)} />
|
||||
<BasicStat title="Current Souls: " value={formatNumber(stats.souls)} />
|
||||
<BasicStat title="Paid Souls: " value={formatNumber(stats.paid_souls)} />
|
||||
<BasicStat title="Soul Well Uses: " value={formatNumber(stats.soul_well)} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user