Fix ship flavors for NdRC admirals
authorTheSaminator <thesaminator@users.noreply.github.com>
Fri, 17 Jun 2022 16:02:47 +0000 (12:02 -0400)
committerTheSaminator <thesaminator@users.noreply.github.com>
Fri, 17 Jun 2022 16:02:47 +0000 (12:02 -0400)
src/jvmMain/kotlin/net/starshipfights/auth/providers.kt

index 4a7c8253873d57458741ee464bd3c7e3e1b867ed..fc8a70f7d7503d7e6ebda3421641fbd52dc3ee21 100644 (file)
@@ -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
                                        )