refactor: game funcs moved to controller
This commit is contained in:
@@ -12,11 +12,3 @@ func TestPlanetProduction(t *testing.T) {
|
||||
assert.Equal(t, 750., game.PlanetProduction(1000., 0.))
|
||||
assert.Equal(t, 250., game.PlanetProduction(0., 1000.))
|
||||
}
|
||||
|
||||
func TestPlanetProductionCapacity(t *testing.T) {
|
||||
g := newGame()
|
||||
assert.NoError(t, g.CreateShips(Race_0_idx, ShipType_Cruiser, R0_Planet_0_num, 1))
|
||||
assert.Equal(t, 100., game.PlanetProductionCapacity(g, R0_Planet_0_num))
|
||||
g.ShipGroups[0] = game.UpgradeGroupPreference(g.ShipGroups[0], Cruiser, game.TechDrive, 1.6)
|
||||
assert.Equal(t, 53.125, game.PlanetProductionCapacity(g, R0_Planet_0_num))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user