diff options
author | nea <nea@nea.moe> | 2023-06-02 16:43:14 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-02 16:43:14 +0200 |
commit | ccf1d1d0e97983509b29c276caa058b8c8284a66 (patch) | |
tree | 09718e30925fdfc7758668e08a991cdbaf8e447d /src/main/kotlin/moe/nea/firmament/apis | |
parent | add5eb6a4a1c8228e789f90ca100fc92f12baaea (diff) | |
download | firmament-ccf1d1d0e97983509b29c276caa058b8c8284a66.tar.gz firmament-ccf1d1d0e97983509b29c276caa058b8c8284a66.tar.bz2 firmament-ccf1d1d0e97983509b29c276caa058b8c8284a66.zip |
Fix ex MVP++ users being shown as unranked
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/apis')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/apis/Profiles.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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<Member, Double>, val color: DyeColor) @Serializable data class Member( - val pets: List<Pet>, + val pets: List<Pet> = 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 |