cmd: upgrade group

This commit is contained in:
Ilia Denisov
2026-01-04 19:22:06 +02:00
parent 6157c07a35
commit c6e1cb5cdf
17 changed files with 918 additions and 245 deletions
+10 -8
View File
@@ -57,13 +57,15 @@ func buildGameOnMap(races []string, m generator.Map) (*game.Game, error) {
}
relations[i] = game.RaceRelation{RaceID: raceID, Relation: game.RelationWar}
g.Race[i] = game.Race{
ID: raceID,
Name: races[i],
Vote: raceID,
Drive: 1,
Weapons: 1,
Shields: 1,
Cargo: 1,
ID: raceID,
Name: races[i],
Vote: raceID,
Tech: map[game.Tech]float64{
game.TechDrive: 1,
game.TechWeapons: 1,
game.TechShields: 1,
game.TechCargo: 1,
},
}
gameMap.Planet = append(gameMap.Planet, NewPlanet(
planetCount,
@@ -125,7 +127,7 @@ func buildGameOnMap(races []string, m generator.Map) (*game.Game, error) {
return g, nil
}
func NewPlanet(num uint, name string, owner uuid.UUID, x, y, size, pop, ind, res float64, prod game.ProductionType) game.Planet {
func NewPlanet(num uint, name string, owner uuid.UUID, x, y, size, pop, ind, res float64, prod game.Production) game.Planet {
return game.Planet{
Owner: owner,
PlanetReport: game.PlanetReport{