read tunnel length from different config and fix tests

This commit is contained in:
2026-04-26 20:41:40 +02:00
parent 89005d6bb7
commit 774f5dee28
9 changed files with 22 additions and 11 deletions

View File

@@ -164,6 +164,7 @@ refund_percentage = 75
scrap_despawn_seconds = 30
belt_speed_tiles_per_second = 2
starting_building_blocks = 100
tunnel_max_distance = 10
[regions]
asteroid_width = 40
@@ -209,6 +210,7 @@ refund_percentage = 75
scrap_despawn_seconds = 30
belt_speed_tiles_per_second = 2
starting_building_blocks = 100
tunnel_max_distance = 10
[regions]
asteroid_width = 40
@@ -322,3 +324,4 @@ duration_seconds = 1.0
ConfigLoader::loadRecipes((dir.path() / "recipes.toml").string()),
std::runtime_error);
}

View File

@@ -12,6 +12,20 @@ player_placeable = true
construction_time_seconds = 1
surface_mask = ["<A>"]
[[building]]
id = "tunnel_entry"
cost = 5
player_placeable = true
construction_time_seconds = 3
surface_mask = ["A>"]
[[building]]
id = "tunnel_exit"
cost = 5
player_placeable = true
construction_time_seconds = 3
surface_mask = ["A>"]
[[building]]
id = "miner"
cost = 15

View File

@@ -4,6 +4,7 @@ refund_percentage = 75
starting_building_blocks = 100
scrap_despawn_seconds = 30
belt_speed_tiles_per_second = 2
tunnel_max_distance = 10
[regions]
asteroid_width = 40