From: TheSaminator Date: Fri, 17 Jun 2022 16:02:47 +0000 (-0400) Subject: Fix ship flavors for NdRC admirals X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=56b6074ef93d80443c791ba7eb3b2e317076e7bb;p=starship-fights Fix ship flavors for NdRC admirals --- diff --git a/src/jvmMain/kotlin/net/starshipfights/auth/providers.kt b/src/jvmMain/kotlin/net/starshipfights/auth/providers.kt index 4a7c825..fc8a70f 100644 --- a/src/jvmMain/kotlin/net/starshipfights/auth/providers.kt +++ b/src/jvmMain/kotlin/net/starshipfights/auth/providers.kt @@ -30,6 +30,7 @@ import net.starshipfights.data.auth.UserSession import net.starshipfights.data.createNonce import net.starshipfights.forbid import net.starshipfights.game.Faction +import net.starshipfights.game.FactionFlavor import net.starshipfights.game.ShipType import net.starshipfights.game.toUrlSlug import net.starshipfights.info.* @@ -274,6 +275,7 @@ interface AuthProvider { val newShip = ShipInDrydock( name = newShipName, shipType = shipType, + shipFlavor = FactionFlavor.defaultForFaction(admiral.faction), readyAt = Instant.now().plus(2, ChronoUnit.HOURS), owningAdmiral = admiralId )