implement ship modules

This commit is contained in:
2026-05-18 08:49:51 +02:00
parent b59e392461
commit d08bf5d37b
33 changed files with 1911 additions and 56 deletions

View File

@@ -0,0 +1,51 @@
[[module]]
id = "armor_plate"
surface_mask = ["OO", "OO"]
materials = [{item = "iron_ingot", amount = 2}]
player_production_level = 1
production_time_seconds = 3
threat_cost = 2.0
fill_color = "#808080"
glyph = "A"
[module.health]
multiplied_hp_formula = "1.0 + 0.2 * x"
[[module]]
id = "sensor_booster"
surface_mask = ["O"]
materials = [{item = "circuit_board", amount = 1}]
player_production_level = 1
production_time_seconds = 2
threat_cost = 1.0
fill_color = "#40A0FF"
glyph = "S"
[module.sensor]
added_sensor_range_formula = "2 + x"
[[module]]
id = "weapon_upgrade"
surface_mask = ["OO"]
materials = [{item = "iron_ingot", amount = 1}, {item = "circuit_board", amount = 1}]
player_production_level = 1
production_time_seconds = 4
threat_cost = 3.0
fill_color = "#FF4040"
glyph = "W"
[module.combat]
multiplied_damage_formula = "1.0 + 0.15 * x"
[[module]]
id = "engine_booster"
surface_mask = ["O", "O"]
materials = [{item = "iron_ingot", amount = 2}]
player_production_level = 1
production_time_seconds = 3
threat_cost = 1.5
fill_color = "#40FF80"
glyph = "E"
[module.movement]
added_speed_formula = "0.5 * x"

View File

@@ -1,6 +1,7 @@
[[ship]]
id = "fighter"
available_from_start = true
layout = ["XOX", "OOO", "XOX"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 3}, {item = "circuit_board", amount = 1}]
@@ -32,6 +33,7 @@ scrap_drop = 2
[[ship]]
id = "sniper"
available_from_start = true
layout = ["XOOX", "OOOO", "XOOX"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 3}, {item = "circuit_board", amount = 1}]
@@ -63,6 +65,7 @@ scrap_drop = 2
[[ship]]
id = "gunship"
available_from_start = true
layout = ["XOOOX", "OOOOO", "OOOOO", "XOOOX"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 3}, {item = "circuit_board", amount = 1}]
@@ -94,6 +97,7 @@ scrap_drop = 2
[[ship]]
id = "salvage_ship"
available_from_start = true
layout = ["OOO", "OOO"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 4}]
@@ -123,6 +127,7 @@ scrap_drop = 2
[[ship]]
id = "repair_ship"
available_from_start = false
layout = ["XOX", "OOO", "XOX"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 4}, {item = "circuit_board", amount = 2}]

View File

@@ -0,0 +1,38 @@
[[module]]
id = "armor_plate"
surface_mask = ["OO"]
materials = [{item = "iron_ingot", amount = 2}]
player_production_level = 1
production_time_seconds = 3
threat_cost = 2.0
fill_color = "#808080"
glyph = "A"
[module.health]
multiplied_hp_formula = "1.5"
[[module]]
id = "sensor_booster"
surface_mask = ["O"]
materials = [{item = "circuit_board", amount = 1}]
player_production_level = 1
production_time_seconds = 2
threat_cost = 1.0
fill_color = "#40A0FF"
glyph = "S"
[module.sensor]
added_sensor_range_formula = "10"
[[module]]
id = "weapon_upgrade"
surface_mask = ["O"]
materials = [{item = "iron_ingot", amount = 1}, {item = "circuit_board", amount = 1}]
player_production_level = 1
production_time_seconds = 4
threat_cost = 3.0
fill_color = "#FF4040"
glyph = "W"
[module.combat]
multiplied_damage_formula = "1.2"

View File

@@ -1,6 +1,7 @@
[[ship]]
id = "interceptor"
available_from_start = true
layout = ["XOX", "OOO", "XOX"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 3}, {item = "circuit_board", amount = 1}]
@@ -31,6 +32,7 @@ scrap_drop = 2
[[ship]]
id = "destroyer"
available_from_start = true
layout = ["XOOX", "OOOO", "XOOX"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 5}, {item = "circuit_board", amount = 2}]
@@ -61,6 +63,7 @@ scrap_drop = 4
[[ship]]
id = "salvage_ship"
available_from_start = true
layout = ["OOO", "OOO"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 4}]
@@ -90,6 +93,7 @@ scrap_drop = 2
[[ship]]
id = "repair_ship"
available_from_start = false
layout = ["XOX", "OOO", "XOX"]
[ship.schematic]
materials = [{item = "iron_ingot", amount = 4}, {item = "circuit_board", amount = 2}]