cmd: delete ship type

This commit is contained in:
Ilia Denisov
2025-10-01 00:29:25 +03:00
parent 6f29288096
commit bcab29a47f
8 changed files with 100 additions and 15 deletions
+3 -3
View File
@@ -75,7 +75,7 @@ func buildGameOnMap(races []string, m generator.Map) (*game.Game, error) {
m.HomePlanets[i].HW.Size, // HW's pop & ind = size
m.HomePlanets[i].HW.Size,
m.HomePlanets[i].HW.Resources,
game.ResearchDrive.AsType(""),
game.ResearchDrive.AsType(uuid.Nil),
))
planetCount++
for dw := range m.HomePlanets[i].DW {
@@ -89,7 +89,7 @@ func buildGameOnMap(races []string, m generator.Map) (*game.Game, error) {
m.HomePlanets[i].DW[dw].Size, // DW's pop & ind = size
m.HomePlanets[i].DW[dw].Size,
m.HomePlanets[i].DW[dw].Resources,
game.ResearchDrive.AsType(""),
game.ResearchDrive.AsType(uuid.Nil),
))
planetCount++
}
@@ -111,7 +111,7 @@ func buildGameOnMap(races []string, m generator.Map) (*game.Game, error) {
0,
0,
m.FreePlanets[i].Resources,
game.ProductionNone.AsType(""),
game.ProductionNone.AsType(uuid.Nil),
))
planetCount++
}