From 5d337e2035131f631ff097e5a116c7168c41531a Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 13 Jun 2024 15:53:10 +0300 Subject: [PATCH] refactor: small corrections --- plugin/src/main/kotlin/sc/plugin2024/mistake/MoveMistake.kt | 2 +- sdk/src/main/framework/sc/shared/PlayerScore.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/kotlin/sc/plugin2024/mistake/MoveMistake.kt b/plugin/src/main/kotlin/sc/plugin2024/mistake/MoveMistake.kt index 9ee14d0ff..22fe9b4ba 100644 --- a/plugin/src/main/kotlin/sc/plugin2024/mistake/MoveMistake.kt +++ b/plugin/src/main/kotlin/sc/plugin2024/mistake/MoveMistake.kt @@ -7,6 +7,6 @@ enum class MoveMistake(override val message: String) : IMoveMistake { PUSH_ACTION_REQUIRED("Wenn du auf einem gegnerischen Schiff landest, muss darauf eine Abdrängaktion folgen."), SAND_BANK_END("Zug auf eine Sandbank muss letzte Aktion sein."), FIRST_ACTION_ACCELERATE("Du kannst nur in der ersten Aktion beschleunigen."), - MOVEMENT_POINTS_LEFT("Es sind noch Bewegungspunkte übrig."), + MOVEMENT_POINTS_LEFT("Nicht alle Bewegungspunkte verbraucht."), MOVEMENT_POINTS_MISSING("Nicht genug Bewegungspunkte."); } diff --git a/sdk/src/main/framework/sc/shared/PlayerScore.kt b/sdk/src/main/framework/sc/shared/PlayerScore.kt index e786ee2d5..383ab26ae 100644 --- a/sdk/src/main/framework/sc/shared/PlayerScore.kt +++ b/sdk/src/main/framework/sc/shared/PlayerScore.kt @@ -29,7 +29,7 @@ data class PlayerScore( fun toString(definition: ScoreDefinition): String { if(!matches(definition)) throw IllegalArgumentException("$definition does not match $this") - return "PlayerScore[${parts.withIndex().joinToString { "${definition[it.index].name}=${it.value}" }}]" + return "PlayerScore[${parts.withIndex().joinToString { (index, value) -> "${definition[index].name}=${value}" }}]" } override fun toString(): String = "PlayerScore(${parts.contentToString()})"