mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-12-14 11:56:15 +08:00
[O] Use Iterable<T>.mapApply()
This commit is contained in:
@@ -2,6 +2,7 @@ package icu.samnyan.aqua.sega.maimai2.handler
|
|||||||
|
|
||||||
import ext.int
|
import ext.int
|
||||||
import ext.logger
|
import ext.logger
|
||||||
|
import ext.mapApply
|
||||||
import icu.samnyan.aqua.net.games.mai2.Maimai2
|
import icu.samnyan.aqua.net.games.mai2.Maimai2
|
||||||
import icu.samnyan.aqua.sega.general.BaseHandler
|
import icu.samnyan.aqua.sega.general.BaseHandler
|
||||||
import icu.samnyan.aqua.sega.general.dao.CardRepository
|
import icu.samnyan.aqua.sega.general.dao.CardRepository
|
||||||
@@ -31,7 +32,7 @@ class GetUserCharacterHandler(
|
|||||||
charaIds.associateWith { Mai2UserCharacter().apply { characterId = it; level = 1 } } +
|
charaIds.associateWith { Mai2UserCharacter().apply { characterId = it; level = 1 } } +
|
||||||
it.associateBy { it.characterId }
|
it.associateBy { it.characterId }
|
||||||
).values }
|
).values }
|
||||||
.let { if (gameOptions?.mai2UnlockCharaMaxLevel != true) it else it.map { it.apply { level = 9999 } } }
|
.let { if (gameOptions?.mai2UnlockCharaMaxLevel != true) it else it.mapApply { level = 9999 } }
|
||||||
|
|
||||||
return mapOf(
|
return mapOf(
|
||||||
"userId" to userId,
|
"userId" to userId,
|
||||||
|
|||||||
Reference in New Issue
Block a user