Adjust time
authorTheSaminator <TheSaminator@users.noreply.github.com>
Wed, 8 Jun 2022 19:31:15 +0000 (15:31 -0400)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Wed, 8 Jun 2022 19:31:15 +0000 (15:31 -0400)
src/jvmMain/kotlin/net/starshipfights/game/server_game.kt

index 46c39d940e355ed93a14d2c4c1c662e916b28102..aa5316c39f6d38e37204fd13d6955da97e043206 100644 (file)
@@ -24,18 +24,7 @@ import java.time.Instant
 import java.time.temporal.ChronoUnit
 import kotlin.collections.component1
 import kotlin.collections.component2
-import kotlin.collections.count
-import kotlin.collections.filter
-import kotlin.collections.filterKeys
-import kotlin.collections.filterValues
-import kotlin.collections.listOf
-import kotlin.collections.map
-import kotlin.collections.minus
-import kotlin.collections.mutableMapOf
-import kotlin.collections.plus
 import kotlin.collections.set
-import kotlin.collections.sumOf
-import kotlin.collections.toSet
 
 data class GameToken(val hostToken: String, val joinToken: String)
 
@@ -223,8 +212,8 @@ private val BattleSize.acumenPerSubplotWon: Int
 
 private suspend fun onGameEnd(gameState: GameState, gameEnd: GameEvent.GameEnd, startedAt: Instant, endedAt: Instant) {
        val damagedShipReadyAt = endedAt.plus(6, ChronoUnit.HOURS)
-       val intactShipReadyAt = endedAt.plus(3, ChronoUnit.HOURS)
-       val escapedShipReadyAt = endedAt.plus(3, ChronoUnit.HOURS)
+       val intactShipReadyAt = endedAt.plus(4, ChronoUnit.HOURS)
+       val escapedShipReadyAt = endedAt.plus(4, ChronoUnit.HOURS)
        
        val shipWrecks = gameState.destroyedShips
        val ships = gameState.ships