Files
vnr/src/common/units/equipment/ship_hull_submarine.txt
2024-11-28 20:01:22 +00:00

503 lines
11 KiB
Plaintext
Executable File

equipments = {
ship_hull_submarine = {
year = 1922
can_be_produced = { # Commented until flag 'cannot_produce_ships' is used by any tag
NOT = { has_country_flag = cannot_produce_ships }
}
is_archetype = yes
is_buildable = no
type = submarine
group_by = archetype
priority = 2500
upgrades = {
ship_reliability_upgrade
sub_engine_upgrade
sub_stealth_upgrade
sub_torpedo_upgrade
}
interface_category = interface_category_other_ships
module_slots = {
fixed_ship_torpedo_slot = {
required = yes
allowed_module_categories = { ship_torpedo_sub }
}
fixed_ship_engine_slot = {
required = yes
allowed_module_categories = { sub_ship_engine }
}
fixed_ship_armor_slot = {
required = no
allowed_module_categories = { pressure_hull }
}
fixed_ship_extra_secondaries_slot = {
required = no
allowed_module_categories = { submarine_miscellaneous }
}
mid_1_custom_slot = {
required = no
allowed_module_categories = {
sub_ship_periscope
}
}
rear_1_custom_slot = {
required = no
allowed_module_categories = {
ship_torpedo_sub
ship_mine_layer_sub
}
}
}
module_count_limit = {
category = sub_fire_control_system
count < 2
}
module_count_limit = {
category = ship_sonar
count < 2
}
module_count_limit = {
category = ship_radar
count < 2
}
module_count_limit = {
module = oxygen_generator
count < 2
}
module_count_limit = {
module = diving_plane
count < 2
}
module_count_limit = {
module = vlf_receiver
count < 2
}
module_count_limit = {
module = sub_wire_guided_torpedo
count < 2
}
default_modules = {
fixed_ship_torpedo_slot = empty
fixed_ship_engine_slot = sub_ship_engine_1
fixed_ship_armor_slot = pressure_hull_1
mid_1_custom_slot = sub_ship_periscope_0
rear_1_custom_slot = empty
}
lg_armor_piercing = 0
lg_attack = 0
hg_armor_piercing = 0
hg_attack = 0
torpedo_attack = 0
sub_attack = 0
anti_air_attack = 0
armor_value = 0
surface_detection = 10
sub_detection = 0
surface_visibility = 1
sub_visibility = 26
naval_speed = 13
reliability = 0.60
naval_range = 4000
max_strength = 10
fuel_consumption = 1
build_cost_ic = 100
resources = {
#oil = 1
steel = 1
}
manpower = 120
naval_supremacy_factor = 0.4
naval_weather_penalty_factor = 1 #this value gets -1 before its used so 1.5 will increase the effects of weather penalties by 0.5. this is base value is required for MIO stat modifiers
#MIO stat modifers will factory by the unmodified stat value so here a 0.5 mio stat modifier would make this ships naval_weather_penalty_factor stat 1.5.
# change this from 1 at your own risk
}
### vnr hulls
vnr_ship_hull_submarine_1 = {
derived_variant_name = submarine_equipment_1
abbreviation = "heb"
year = 1922
archetype = ship_hull_submarine
priority = 2500
can_convert_from = { vnr_ship_hull_submarine_1 }
module_slots = inherit
}
vnr_ship_hull_submarine_2 = {
derived_variant_name = submarine_equipment_2
abbreviation = "hec"
year = 1936
archetype = ship_hull_submarine
priority = 2500
can_convert_from = { vnr_ship_hull_submarine_2 }
parent = vnr_ship_hull_submarine_1
module_slots = {
fixed_ship_torpedo_slot = inherit
fixed_ship_engine_slot = inherit
fixed_ship_armor_slot = inherit
fixed_ship_fire_control_system_slot = {
required = no
allowed_module_categories = { sub_fire_control_system ship_sonar }
}
fixed_ship_radar_slot = {
required = no
allowed_module_categories = { ship_radar ship_sonar }
}
fixed_ship_extra_secondaries_slot = inherit
mid_1_custom_slot = inherit
rear_1_custom_slot = inherit
}
default_modules = {
rear_1_custom_slot = empty
fixed_ship_engine_slot = sub_ship_engine_2
fixed_ship_armor_slot = pressure_hull_2
mid_1_custom_slot = sub_ship_periscope_0
}
sub_visibility = 24
naval_speed = 17
reliability = 0.70
naval_range = 6000
reliability = 0.70
max_strength = 20
build_cost_ic = 180
resources = {
#oil = 1
steel = 2
}
}
vnr_ship_hull_submarine_3 = {
derived_variant_name = submarine_equipment_3
abbreviation = "hed"
year = 1940
archetype = ship_hull_submarine
priority = 2500
can_convert_from = { vnr_ship_hull_submarine_3 }
parent = vnr_ship_hull_submarine_2
module_slots = {
fixed_ship_torpedo_slot = inherit
fixed_ship_engine_slot = inherit
fixed_ship_armor_slot = inherit
fixed_ship_fire_control_system_slot = inherit
fixed_ship_radar_slot = inherit
fixed_ship_extra_secondaries_slot = inherit
front_1_custom_slot = {
required = no
allowed_module_categories = {
ship_torpedo_sub
ship_mine_layer_sub
}
}
mid_1_custom_slot = inherit
mid_2_custom_slot = {
required = no
allowed_module_categories = {
ship_sub_snorkel
}
}
rear_1_custom_slot = front_1_custom_slot
}
default_modules = {
front_1_custom_slot = empty
mid_1_custom_slot = sub_ship_periscope_0
rear_1_custom_slot = empty
fixed_ship_engine_slot = sub_ship_engine_3
fixed_ship_armor_slot = pressure_hull_3
}
sub_visibility = 18
naval_speed = 18
reliability = 0.75
naval_range = 7000
max_strength = 30
build_cost_ic = 250
resources = {
steel = 2
}
}
vnr_ship_hull_submarine_4 = {
derived_variant_name = submarine_equipment_4
abbreviation = "hee"
year = 1944
archetype = ship_hull_submarine
priority = 2500
can_convert_from = { vnr_ship_hull_submarine_4 }
parent = vnr_ship_hull_submarine_3
module_slots = {
fixed_ship_torpedo_slot = inherit
fixed_ship_engine_slot = inherit
fixed_ship_armor_slot = inherit
fixed_ship_fire_control_system_slot = inherit
fixed_ship_radar_slot = inherit
fixed_ship_extra_secondaries_slot = inherit
front_1_custom_slot = inherit
mid_1_custom_slot = inherit
mid_2_custom_slot = inherit
mid_3_custom_slot = {
required = no
allowed_module_categories = {
sub_ship_stealth
}
}
rear_1_custom_slot = front_1_custom_slot
}
default_modules = {
front_1_custom_slot = empty
mid_1_custom_slot = sub_ship_periscope_0
rear_1_custom_slot = empty
fixed_ship_engine_slot = sub_ship_engine_4
fixed_ship_armor_slot = pressure_hull_4
}
sub_visibility = 15
naval_speed = 18
reliability = 0.80
naval_range = 8000
max_strength = 35
build_cost_ic = 350
resources = {
steel = 3
chromium = 1
}
}
vnr_ship_hull_submarine_5 = {
derived_variant_name = submarine_equipment_5
year = 1944
archetype = ship_hull_submarine
priority = 2500
parent = vnr_ship_hull_submarine_4
module_slots = {
fixed_ship_torpedo_slot = {
required = yes
allowed_module_categories = { ship_torpedo_sub ship_sub_missile }
}
fixed_ship_engine_slot = inherit
fixed_ship_armor_slot = inherit
fixed_ship_fire_control_system_slot = inherit
fixed_ship_radar_slot = inherit
fixed_ship_extra_secondaries_slot = inherit
fixed_ship_extra_missile_slot = fixed_ship_extra_secondaries_slot
front_1_custom_slot = inherit
mid_1_custom_slot = inherit
mid_2_custom_slot = inherit
mid_3_custom_slot = {
required = no
allowed_module_categories = {
sub_ship_stealth
}
}
rear_1_custom_slot = {
required = no
allowed_module_categories = { ship_torpedo_sub ship_mine_layer_sub sub_rocket }
}
rear_2_custom_slot = rear_1_custom_slot
}
default_modules = {
front_1_custom_slot = empty
mid_1_custom_slot = sub_ship_periscope_0
rear_1_custom_slot = empty
fixed_ship_engine_slot = sub_ship_engine_4
fixed_ship_armor_slot = pressure_hull_4
}
sub_visibility = 11
naval_speed = 18
reliability = 1.5
naval_range = 8000
max_strength = 50
build_cost_ic = 500
resources = {
steel = 3
chromium = 1
}
}
vnr_ship_hull_cruiser_submarine = {
derived_variant_name = submarine_equipment_sc
abbreviation = "hef"
year = 1940
archetype = ship_hull_submarine
can_convert_from = { vnr_ship_hull_cruiser_submarine }
priority = 2600
module_slots = {
fixed_ship_torpedo_slot = inherit
fixed_ship_battery_slot = {
required = no
allowed_module_categories = { sub_battery }
}
fixed_ship_engine_slot = inherit
fixed_ship_armor_slot = inherit
fixed_ship_fire_control_system_slot = {
required = no
allowed_module_categories = { sub_fire_control_system ship_sonar }
}
fixed_ship_extra_secondaries_slot = inherit
fixed_ship_radar_slot = {
required = no
allowed_module_categories = { ship_radar ship_sonar }
}
front_1_custom_slot = {
required = no
allowed_module_categories = {
ship_torpedo_sub
sub_airplane_launcher
ship_mine_layer_sub
ship_extra_fuel_tank
}
}
mid_1_custom_slot = {
required = no
allowed_module_categories = {
sub_ship_periscope
}
}
mid_2_custom_slot = {
required = no
allowed_module_categories = {
ship_sub_snorkel
}
}
mid_3_custom_slot = {
required = no
allowed_module_categories = {
sub_ship_stealth
}
}
rear_1_custom_slot = {
required = no
allowed_module_categories = {
ship_torpedo_sub
ship_mine_layer_sub
sub_airplane_launcher
ship_extra_fuel_tank
}
}
}
default_modules = {
front_1_custom_slot = empty
mid_1_custom_slot = sub_ship_periscope_0
rear_1_custom_slot = empty
fixed_ship_armor_slot = pressure_hull_1
}
sub_visibility = 24
naval_speed = 16
reliability = 0.75
naval_range = 6500
max_strength = 30
build_cost_ic = 320
resources = {
steel = 2
}
}
vnr_ship_hull_midget_submarine = {
abbreviation = "ssm"
year = 1930
archetype = ship_hull_submarine
can_convert_from = { vnr_ship_hull_midget_submarine }
priority = 1500
module_slots = {
fixed_ship_torpedo_slot = inherit
fixed_ship_engine_slot = inherit
fixed_ship_armor_slot = inherit
fixed_ship_extra_secondaries_slot = inherit
mid_1_custom_slot = {
required = no
allowed_module_categories = {
sub_ship_periscope
}
}
mid_2_custom_slot = {
required = no
allowed_module_categories = {
ship_sub_snorkel
sub_ship_stealth
}
}
rear_1_custom_slot = {
required = no
allowed_module_categories = { ship_mine_layer_sub }
}
}
default_modules = {
fixed_ship_torpedo_slot = inherit
fixed_ship_engine_slot = inherit
mid_1_custom_slot = sub_ship_periscope_0
}
sub_visibility = 15
naval_speed = 8.3
reliability = 0.65
naval_range = 500
max_strength = 5
manpower = 50
build_cost_ic = 100
resources = {
steel = 1
}
}
}