refactor: group launched/in_space state
This commit is contained in:
@@ -119,7 +119,7 @@ func TestUpgradeGroup(t *testing.T) {
|
||||
assert.NoError(t, c.CreateShips(Race_0_idx, ShipType_Cruiser, R0_Planet_0_num, 10))
|
||||
// group #2 - in_space
|
||||
assert.NoError(t, c.CreateShips(Race_0_idx, ShipType_Cruiser, R0_Planet_0_num, 1))
|
||||
c.ShipGroup(1).StateInSpace = &game.InSpace{Origin: 2, Range: 1.23}
|
||||
c.ShipGroup(1).StateInSpace = &InSpace
|
||||
// group #3 - in_orbit, foreign planet
|
||||
assert.NoError(t, c.CreateShips(Race_0_idx, ShipType_Cruiser, R0_Planet_0_num, 1))
|
||||
c.ShipGroup(2).Destination = R1_Planet_1_num
|
||||
|
||||
Reference in New Issue
Block a user