Derive ship scrap drop from threat

This commit is contained in:
2026-07-02 21:30:38 +02:00
parent 5bc581bcb8
commit 81b1c7a66b
16 changed files with 61 additions and 113 deletions

View File

@@ -39,9 +39,6 @@ max_rotation_speed_radps_formula = "6.28"
[ship.sensor]
sensor_range_m_formula = "150"
[ship.loot]
scrap_drop = 2
# Frigate — 5 cells in a plus shape. Holds a couple of small guns plus at
# most one 1x2 support (every 1x2 placement crosses the center cell), or one
@@ -73,9 +70,6 @@ max_rotation_speed_radps_formula = "4"
[ship.sensor]
sensor_range_m_formula = "200"
[ship.loot]
scrap_drop = 5
# Destroyer — 8 cells: a long gun deck with three turret bumps on top.
# Still no 2x2 area, so it packs more small guns than a frigate but can never
@@ -106,9 +100,6 @@ max_rotation_speed_radps_formula = "3"
[ship.sensor]
sensor_range_m_formula = "220"
[ship.loot]
scrap_drop = 8
# Cruiser — 12 cells with notched corners. Fits at most two 2x2 m guns
# (stacked through the middle), leaving the four side cells for small
@@ -141,9 +132,6 @@ max_rotation_speed_radps_formula = "2"
[ship.sensor]
sensor_range_m_formula = "250"
[ship.loot]
scrap_drop = 15
# Battlecruiser — 16 cells: a wide bow split into two gun cheeks, tapering
# toward the stern. Fits three 2x2 m guns (two in the cheeks, one through
@@ -177,9 +165,6 @@ max_rotation_speed_radps_formula = "1.5"
[ship.sensor]
sensor_range_m_formula = "260"
[ship.loot]
scrap_drop = 20
# Battleship — 24 cells: a broadside hull with notched flanks on every other
# row. Fits four 2x2 m guns (two per gun deck) with the bow, stern, and flank
@@ -216,9 +201,6 @@ max_rotation_speed_radps_formula = "1"
[ship.sensor]
sensor_range_m_formula = "280"
[ship.loot]
scrap_drop = 35
# Dreadnought — 36 cells: the main battery deck is split into three 3x3 gun
# slots by structural spacer columns, so exactly three l guns fit side by
@@ -254,9 +236,6 @@ max_rotation_speed_radps_formula = "0.5"
[ship.sensor]
sensor_range_m_formula = "300"
[ship.loot]
scrap_drop = 60
# Carrier — 37 cells: the top flight deck (rows 0-1) is the only place wide
# enough for the 2x6 drone hangar, and exactly one fits. The middle deck row
@@ -290,6 +269,3 @@ max_rotation_speed_radps_formula = "0.5"
[ship.sensor]
sensor_range_m_formula = "350"
[ship.loot]
scrap_drop = 60

View File

@@ -3,6 +3,7 @@ height_tiles = 40
refund_percentage = 100
starting_building_blocks = 1000
scrap_despawn_seconds = 30
scrap_per_threat = 0.01
tile_size_m = 10
belt_speed_mps = 20
tunnel_max_distance_tiles = 10

View File

@@ -22,9 +22,6 @@ max_rotation_speed_radps_formula = "100000"
[ship.sensor]
sensor_range_m_formula = "2000"
[ship.loot]
scrap_drop = 2
[[ship]]
id = "destroyer"
@@ -50,9 +47,6 @@ max_rotation_speed_radps_formula = "100000"
[ship.sensor]
sensor_range_m_formula = "3000"
[ship.loot]
scrap_drop = 4
[[ship]]
id = "salvage_ship"
@@ -77,9 +71,6 @@ max_rotation_speed_radps_formula = "100000"
[ship.sensor]
sensor_range_m_formula = "2500"
[ship.loot]
scrap_drop = 2
[[ship]]
id = "repair_ship"
@@ -103,6 +94,3 @@ max_rotation_speed_radps_formula = "100000"
[ship.sensor]
sensor_range_m_formula = "2500"
[ship.loot]
scrap_drop = 2

View File

@@ -3,6 +3,7 @@ height_tiles = 60
refund_percentage = 75
starting_building_blocks = 100
scrap_despawn_seconds = 30
scrap_per_threat = 1.0
tile_size_m = 10
belt_speed_mps = 20
tunnel_max_distance_tiles = 10