From ccf1d1d0e97983509b29c276caa058b8c8284a66 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 2 Jun 2023 16:43:14 +0200 Subject: Fix ex MVP++ users being shown as unranked --- src/main/kotlin/moe/nea/firmament/apis/Profiles.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea/firmament/apis/Profiles.kt') diff --git a/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt b/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt index 3e6b2cb..2e483ee 100644 --- a/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt +++ b/src/main/kotlin/moe/nea/firmament/apis/Profiles.kt @@ -58,7 +58,7 @@ enum class Skill(val accessor: KProperty1, val color: DyeColor) @Serializable data class Member( - val pets: List, + val pets: List = listOf(), @SerialName("coop_invitation") val coopInvitation: CoopInvitation? = null, @SerialName("experience_skill_farming") @@ -129,7 +129,7 @@ data class PlayerData( val rankPlusColor: String = "GOLD" ) { val rankPlusDyeColor = LegacyFormattingCode.values().find { it.name == rankPlusColor } ?: LegacyFormattingCode.GOLD - val rankData get() = RepoManager.neuRepo.constants.misc.ranks[monthlyPackageRank ?: packageRank] + val rankData get() = RepoManager.neuRepo.constants.misc.ranks[if (monthlyPackageRank == "NONE" || monthlyPackageRank == null) packageRank else monthlyPackageRank] } @Serializable -- cgit