mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix ranking type
parent
bb9bce67d8
commit
0f87ed82e3
|
@ -16,14 +16,15 @@ fun ChusanController.chusanInit() {
|
||||||
cmApiInit()
|
cmApiInit()
|
||||||
upsertApiInit()
|
upsertApiInit()
|
||||||
|
|
||||||
// Game music popularity
|
// Game music popularity (seems to be removed in lmn+)
|
||||||
"GetGameRanking" {
|
"GetGameRanking" {
|
||||||
val type = parsing { data["type"]!!.int }
|
val type = parsing { data["type"]!!.int }
|
||||||
|
|
||||||
// TODO: figure out what type does
|
// Maybe 1 = current and 2 = old
|
||||||
mapOf("type" to type, "length" to 0, "gameRankingList" to (pop.ranking["chusan"] ?: listOf()).map {
|
val lst = if (type == 1) (pop.ranking["chusan"] ?: listOf()).map {
|
||||||
mapOf("id" to it.musicId, "point" to it.weight)
|
mapOf("id" to it.musicId, "point" to it.weight)
|
||||||
})
|
} else empty
|
||||||
|
mapOf("type" to type, "length" to 0, "gameRankingList" to lst)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stub handlers
|
// Stub handlers
|
||||||
|
|
Loading…
Reference in New Issue