refactor: planet owner
This commit is contained in:
@@ -182,7 +182,8 @@ func TestProduceShip(t *testing.T) {
|
||||
Shields: 35,
|
||||
Cargo: 0,
|
||||
}
|
||||
p := controller.NewPlanet(0, "Planet_0", uuid.New(), 1, 1, 1000, 1000, 1000, 10, game.ProductionShip.AsType(uuid.Nil))
|
||||
id := uuid.New()
|
||||
p := controller.NewPlanet(0, "Planet_0", &id, 1, 1, 1000, 1000, 1000, 10, game.ProductionShip.AsType(uuid.Nil))
|
||||
|
||||
r := controller.ProduceShip(&p, p.ProductionCapacity(), Drone.EmptyMass())
|
||||
assert.Equal(t, uint(99), r)
|
||||
|
||||
Reference in New Issue
Block a user