add units in config files
This commit is contained in:
@@ -71,10 +71,10 @@ TEST_CASE("ConfigLoader loads the committed bin/config/ configs end-to-end", "[c
|
||||
REQUIRE(cfg.world.heightTiles == 60);
|
||||
REQUIRE(cfg.world.refundPercentage == 75);
|
||||
REQUIRE(cfg.world.beltSpeed_tps == Approx(2.0));
|
||||
REQUIRE(cfg.world.regions.asteroidWidth == 40);
|
||||
REQUIRE(cfg.world.regions.playerBufferWidth == 10);
|
||||
REQUIRE(cfg.world.regions.enemyBufferWidth == 15);
|
||||
REQUIRE(cfg.world.expansion.columnsPerExpansion == 10);
|
||||
REQUIRE(cfg.world.regions.asteroidWidth_tiles == 40);
|
||||
REQUIRE(cfg.world.regions.playerBufferWidth_tiles == 10);
|
||||
REQUIRE(cfg.world.regions.enemyBufferWidth_tiles == 15);
|
||||
REQUIRE(cfg.world.expansion.columnsPerExpansion_tiles == 10);
|
||||
REQUIRE(cfg.world.push.bossAdvanceSeconds == Approx(60.0));
|
||||
|
||||
// Spot-check that a config-derived formula computes as expected.
|
||||
@@ -161,21 +161,21 @@ scrap_despawn_seconds = 30
|
||||
tile_size_m = 10
|
||||
belt_speed_mps = 20
|
||||
starting_building_blocks = 100
|
||||
tunnel_max_distance = 10
|
||||
tunnel_max_distance_tiles = 10
|
||||
departure_interval_seconds = 20
|
||||
|
||||
[regions]
|
||||
asteroid_width = 40
|
||||
player_buffer_width = 10
|
||||
contest_zone_width = 30
|
||||
# enemy_buffer_width intentionally missing
|
||||
asteroid_width_tiles = 40
|
||||
player_buffer_width_tiles = 10
|
||||
contest_zone_width_tiles = 30
|
||||
# enemy_buffer_width_tiles intentionally missing
|
||||
|
||||
[expansion]
|
||||
columns_per_expansion = 10
|
||||
columns_per_expansion_tiles = 10
|
||||
cost_building_blocks = 200
|
||||
|
||||
[push]
|
||||
push_expand_columns = 20
|
||||
push_expand_columns_tiles = 20
|
||||
scaling_factor = 1.2
|
||||
|
||||
[waves]
|
||||
@@ -194,7 +194,7 @@ spawn_duration_seconds = 10
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
const std::string msg = e.what();
|
||||
REQUIRE(msg.find("enemy_buffer_width") != std::string::npos);
|
||||
REQUIRE(msg.find("enemy_buffer_width_tiles") != std::string::npos);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,21 +209,21 @@ scrap_despawn_seconds = 30
|
||||
tile_size_m = 10
|
||||
belt_speed_mps = 20
|
||||
starting_building_blocks = 100
|
||||
tunnel_max_distance = 10
|
||||
tunnel_max_distance_tiles = 10
|
||||
departure_interval_seconds = 20
|
||||
|
||||
[regions]
|
||||
asteroid_width = 40
|
||||
player_buffer_width = 10
|
||||
contest_zone_width = 30
|
||||
enemy_buffer_width = 15
|
||||
asteroid_width_tiles = 40
|
||||
player_buffer_width_tiles = 10
|
||||
contest_zone_width_tiles = 30
|
||||
enemy_buffer_width_tiles = 15
|
||||
|
||||
[expansion]
|
||||
columns_per_expansion = 10
|
||||
columns_per_expansion_tiles = 10
|
||||
cost_building_blocks = 200
|
||||
|
||||
[push]
|
||||
push_expand_columns = 20
|
||||
push_expand_columns_tiles = 20
|
||||
boss_advance_seconds = 60
|
||||
|
||||
[waves]
|
||||
@@ -259,17 +259,17 @@ tile_size_m = 10
|
||||
belt_speed_mps = 20
|
||||
|
||||
[regions]
|
||||
asteroid_width = 40
|
||||
player_buffer_width = 10
|
||||
contest_zone_width = 30
|
||||
enemy_buffer_width = 15
|
||||
asteroid_width_tiles = 40
|
||||
player_buffer_width_tiles = 10
|
||||
contest_zone_width_tiles = 30
|
||||
enemy_buffer_width_tiles = 15
|
||||
|
||||
[expansion]
|
||||
columns_per_expansion = 10
|
||||
columns_per_expansion_tiles = 10
|
||||
cost_building_blocks = 200
|
||||
|
||||
[push]
|
||||
push_expand_columns = 20
|
||||
push_expand_columns_tiles = 20
|
||||
scaling_factor = 1.2
|
||||
|
||||
[waves]
|
||||
|
||||
Reference in New Issue
Block a user