Commit 6366e74 1 parent 26287e0 commit 6366e74 Copy full SHA for 6366e74
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ object SpellConfig {
56
56
}
57
57
val spellIds = HashSet <String >()
58
58
val result = Array (stars.size) {
59
- val isExMap = map[stars[it]] ? : throw HandlerException (" 符卡数量不足 " )
60
- val gameMap = isExMap[false ] ? : throw HandlerException (" 符卡数量不足 " )
59
+ val isExMap = map[stars[it]] ? : throw HandlerException (" ${stars[it]} 星符卡数量不足 " )
60
+ val gameMap = isExMap[false ] ? : throw HandlerException (" ${stars[it]} 星符卡数量不足 " )
61
61
var spell: Spell
62
62
do {
63
- val game = gameMap.keys.randomOrNull(rand) ? : throw HandlerException (" 符卡数量不足 " )
63
+ val game = gameMap.keys.randomOrNull(rand) ? : throw HandlerException (" ${stars[it]} 星符卡数量不足 " )
64
64
val spellList = gameMap[game]!!
65
65
spell = spellList.removeFirst()
66
66
if (spellList.isEmpty()) gameMap.remove(game)
@@ -75,7 +75,7 @@ object SpellConfig {
75
75
firstTry = false
76
76
} else {
77
77
index = (index + 1 ) % result.size
78
- if (index == exPos[i]) throw HandlerException (" 符卡数量不足 " )
78
+ if (index == exPos[i]) throw HandlerException (" EX符卡数量不足 " )
79
79
if (index in exPos) continue
80
80
}
81
81
val isExMap = map[stars[index]] ? : continue
You can’t perform that action at this time.
0 commit comments