Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit c503f5a

Browse files
authored
refactor: update description content (#1892)
1 parent e637a74 commit c503f5a

File tree

1 file changed

+40
-10
lines changed

1 file changed

+40
-10
lines changed

views/stats.ejs

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -529,14 +529,36 @@ function getDescription() {
529529
description.push(line.join(' '), '\n', '\n')
530530
}
531531
532-
// Avg. skill
533-
if (calculated.average_level) {
534-
description.push(
535-
`📚 Avg Skill Level: ${
536-
Math.floor(calculated.average_level * 10) / 10
537-
} `
538-
)
539-
description.push('\n')
532+
// Skyblock Level
533+
if (calculated.skyblock_level.xp !== 0 && calculated.skyblock_level.level !== 0) {
534+
description.push(
535+
`🌟 Skyblock Level: ${calculated.skyblock_level.level + calculated.skyblock_level.progress}`,
536+
'\n'
537+
)
538+
}
539+
540+
541+
542+
if (calculated.average_level || calculated.dungeons.class_average) {
543+
// Skill Average
544+
if (calculated.average_level) {
545+
description.push(
546+
`📚 Avg Skill Level: ${
547+
Math.floor(calculated.average_level * 10) / 10
548+
} `
549+
)
550+
}
551+
552+
// Dungeons classs average
553+
if (calculated.dungeons.class_average) {
554+
description.push(
555+
`⚔️ Avg Class Level: ${
556+
Math.floor(calculated.dungeons.class_average.avrg_level_with_progress * 10) / 10
557+
} `
558+
)
559+
}
560+
561+
description.push('\n')
540562
}
541563
542564
// Weights
@@ -552,13 +574,21 @@ function getDescription() {
552574
description.push('\n')
553575
}
554576
555-
// Bank & purse
577+
// Networth, Bank & purse
578+
if (calculated.networth.noInventory === false) {
579+
description.push(
580+
`💸 Networth: ${helper.formatNumber(calculated.networth.networth, true)} `
581+
)
582+
}
583+
556584
if (calculated.bank) {
557585
description.push(
558586
`🏦 Bank: ${helper.formatNumber(calculated.bank, true)} `
559587
)
560588
}
561-
description.push(`💰 Purse: ${helper.formatNumber(calculated.purse, true)}`)
589+
description.push(
590+
`💰 Purse: ${helper.formatNumber(calculated.purse, true)}`
591+
)
562592
563593
// Done!
564594
return description.join('')

0 commit comments

Comments
 (0)