Skip to content

Commit 1fdbaea

Browse files
committed
feat: implemented naval units
1 parent cb895a4 commit 1fdbaea

File tree

2 files changed

+72
-68
lines changed

2 files changed

+72
-68
lines changed

common/combat_unit_types/01_naval_combat_unit_types.txt

Lines changed: 71 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ combat_unit_type_wartime_escort = {
1212
max_manpower = 1000
1313

1414
upkeep_modifier = {
15-
goods_input_manowars_add = 1
15+
goods_input_surface_ships_add = 1
16+
goods_input_artillery_add = 1
1617
}
1718

1819
battle_modifier = {
@@ -22,7 +23,7 @@ combat_unit_type_wartime_escort = {
2223
unit_morale_loss_add = 10
2324
}
2425

25-
unlocking_technologies = { navigation }
26+
unlocking_technologies = { screening_vessels }
2627

2728
combat_unit_image = {
2829
texture = "gfx/unit_illustrations/light_ships_frigate.dds"
@@ -38,14 +39,14 @@ combat_unit_type_modernized_escort = {
3839
max_manpower = 1000
3940

4041
upkeep_modifier = {
41-
goods_input_ironclads_add = 1
42-
goods_input_artillery_add = 1
43-
goods_input_ammunition_add = 1
42+
goods_input_surface_ships_add = 1
43+
goods_input_artillery_add = 1
44+
goods_input_ammunition_add = 1
4445
}
4546

4647
battle_modifier = {
4748
unit_offense_add = 20
48-
unit_defense_add = 30
49+
unit_defense_add = 35
4950
unit_blockade_add = 20
5051
unit_morale_loss_add = 8
5152
unit_convoy_defense_mult = 0.20
@@ -55,15 +56,15 @@ combat_unit_type_modernized_escort = {
5556
military_formation_movement_speed_mult = 0.2
5657
}
5758

58-
unlocking_technologies = { monitor_tech }
59+
unlocking_technologies = { anti_submarine_rockets }
5960

6061
combat_unit_image = {
6162
texture = "gfx/unit_illustrations/capital_ships_monitor.dds"
6263
}
6364

6465
upgrades = {
6566
combat_unit_type_guided_missile_destroyer
66-
combat_unit_type_torpedo_boat
67+
combat_unit_type_guided_missile_corvette
6768
}
6869
}
6970

@@ -72,9 +73,9 @@ combat_unit_type_guided_missile_destroyer = {
7273
max_manpower = 1000
7374

7475
upkeep_modifier = {
75-
goods_input_ironclads_add = 2
76-
goods_input_artillery_add = 2
77-
goods_input_ammunition_add = 2
76+
goods_input_surface_ships_add = 2
77+
goods_input_missiles_add = 2
78+
goods_input_artillery_add = 1
7879
}
7980

8081
battle_modifier = {
@@ -89,7 +90,7 @@ combat_unit_type_guided_missile_destroyer = {
8990
military_formation_movement_speed_mult = 0.2
9091
}
9192

92-
unlocking_technologies = { destroyer }
93+
unlocking_technologies = { anti_ship_missile }
9394
combat_unit_image = {
9495
texture = "gfx/unit_illustrations/light_ships_destroyer.dds"
9596
}
@@ -99,13 +100,14 @@ combat_unit_type_guided_missile_destroyer = {
99100
}
100101
}
101102

102-
combat_unit_type_torpedo_boat = {
103+
combat_unit_type_guided_missile_corvette = {
103104
group = combat_unit_group_escort_ships
104105
max_manpower = 1000
105106

106107
upkeep_modifier = {
107-
goods_input_ironclads_add = 2
108-
goods_input_explosives_add = 4
108+
goods_input_surface_ships_add = 2
109+
goods_input_missiles_add = 2
110+
goods_input_ammunition_add = 2
109111
}
110112

111113
battle_modifier = {
@@ -120,7 +122,7 @@ combat_unit_type_torpedo_boat = {
120122
military_formation_movement_speed_mult = 0.2
121123
}
122124

123-
unlocking_technologies = { self_propelled_torpedoes }
125+
unlocking_technologies = { surface_raiders }
124126

125127
combat_unit_image = {
126128
texture = "gfx/unit_illustrations/light_ships_torpedo_boat.dds"
@@ -136,25 +138,25 @@ combat_unit_type_guided_missile_cruiser = {
136138
max_manpower = 1000
137139

138140
upkeep_modifier = {
139-
goods_input_ironclads_add = 3
140-
goods_input_ammunition_add = 3
141-
goods_input_artillery_add = 3
142-
goods_input_radios_add = 1
141+
goods_input_surface_ships_add = 3
142+
goods_input_missiles_add = 3
143+
goods_input_computers_add = 1
143144
}
144145

145146
battle_modifier = {
146147
unit_offense_add = 50
147148
unit_defense_add = 50
148149
unit_blockade_add = 40
149150
unit_morale_loss_add = 6
150-
unit_convoy_defense_mult = 0.5
151+
unit_convoy_raiding_mult = 0.25
152+
unit_convoy_defense_mult = 0.25
151153
}
152154

153155
formation_modifier = {
154156
military_formation_movement_speed_mult = 0.2
155157
}
156158

157-
unlocking_technologies = { sea_lane_strategies }
159+
unlocking_technologies = { integrated_air_defense }
158160

159161
combat_unit_image = {
160162
texture = "gfx/unit_illustrations/light_ships_scout_cruiser.dds"
@@ -168,18 +170,20 @@ combat_unit_type_battleship = {
168170
max_manpower = 1000
169171

170172
upkeep_modifier = {
171-
goods_input_manowars_add = 3
173+
goods_input_surface_ships_add = 4
174+
goods_input_artillery_add = 2
175+
goods_input_ammunition_add = 2
172176
}
173177

174178
battle_modifier = {
175179
unit_offense_add = 25
176180
unit_defense_add = 25
177181
unit_blockade_add = 100
178182
unit_morale_loss_add = 10
179-
unit_convoy_raiding_mult = -0.9
183+
unit_convoy_raiding_mult = 0.5
180184
}
181185

182-
unlocking_technologies = { drydocks }
186+
unlocking_technologies = { naval_warfare }
183187

184188
combat_unit_image = {
185189
texture = "gfx/unit_illustrations/capital_ships_manowar.dds"
@@ -195,24 +199,25 @@ combat_unit_type_aircraft_carrier = {
195199
max_manpower = 1000
196200

197201
upkeep_modifier = {
198-
goods_input_ironclads_add = 3
199-
goods_input_artillery_add = 3
200-
goods_input_ammunition_add = 3
202+
goods_input_surface_ships_add = 4
203+
goods_input_military_aircraft_add = 2
204+
goods_input_ammunition_add = 2
201205
}
202206

203207
battle_modifier = {
204-
unit_offense_add = 50
205-
unit_defense_add = 50
208+
unit_offense_add = 60
209+
unit_defense_add = 60
206210
unit_blockade_add = 200
207211
unit_morale_loss_add = 8
208-
unit_convoy_raiding_mult = -0.9
209-
}
212+
unit_convoy_raiding_mult = -0.5
213+
military_formation_movement_speed_mult = -0.2
214+
}
210215

211216
formation_modifier = {
212217
military_formation_movement_speed_mult = -0.2
213218
}
214219

215-
unlocking_technologies = { ironclad_tech }
220+
unlocking_technologies = { naval_aviation }
216221

217222
combat_unit_image = {
218223
texture = "gfx/unit_illustrations/capital_ships_ironclad.dds"
@@ -228,25 +233,26 @@ combat_unit_type_nuclear_supercarrier = {
228233
max_manpower = 1000
229234

230235
upkeep_modifier = {
231-
goods_input_ironclads_add = 6
232-
goods_input_artillery_add = 6
233-
goods_input_ammunition_add = 6
234-
goods_input_radios_add = 2
236+
goods_input_surface_ships_add = 5
237+
goods_input_military_aircraft_add = 3
238+
goods_input_missiles_add = 2
239+
goods_input_uranium_add = 1
235240
}
236241

237242
battle_modifier = {
238-
unit_offense_add = 80
239-
unit_defense_add = 80
243+
unit_offense_add = 120
244+
unit_defense_add = 120
240245
unit_blockade_add = 400
241246
unit_morale_loss_add = 6
242-
unit_convoy_raiding_mult = -0.9
247+
unit_convoy_raiding_mult = -0.5
248+
military_formation_movement_speed_mult = -0.2
243249
}
244250

245251
formation_modifier = {
246252
military_formation_movement_speed_mult = -0.2
247253
}
248254

249-
unlocking_technologies = { dreadnought }
255+
unlocking_technologies = { marine_reactor }
250256

251257
combat_unit_image = {
252258
texture = "gfx/unit_illustrations/capital_ships_dreadnought.dds"
@@ -262,25 +268,26 @@ combat_unit_type_modern_aircraft_carrier = {
262268
max_manpower = 1000
263269

264270
upkeep_modifier = {
265-
goods_input_ironclads_add = 8
266-
goods_input_artillery_add = 8
267-
goods_input_ammunition_add = 8
268-
goods_input_radios_add = 3
271+
goods_input_surface_ships_add = 4
272+
goods_input_military_aircraft_add = 3
273+
goods_input_missiles_add = 3
274+
goods_input_computers_add = 1
269275
}
270276

271277
battle_modifier = {
272-
unit_offense_add = 100
273-
unit_defense_add = 100
274-
unit_blockade_add = 500
275-
unit_morale_loss_add = 4
276-
unit_convoy_raiding_mult = -0.9
278+
unit_offense_add = 160
279+
unit_defense_add = 160
280+
unit_blockade_add = 400
281+
unit_morale_loss_add = 6
282+
unit_convoy_raiding_mult = -0.5
283+
military_formation_movement_speed_mult = -0.2
277284
}
278285

279286
formation_modifier = {
280287
military_formation_movement_speed_mult = -0.2
281288
}
282289

283-
unlocking_technologies = { battleship_tech }
290+
unlocking_technologies = { modern_aircraft_carriers }
284291

285292
combat_unit_image = {
286293
texture = "gfx/unit_illustrations/capital_ships_battleship.dds"
@@ -294,25 +301,23 @@ combat_unit_type_diesel_submarine = {
294301
max_manpower = 1000
295302

296303
upkeep_modifier = {
297-
goods_input_ironclads_add = 2
298-
goods_input_artillery_add = 2
299-
goods_input_ammunition_add = 2
300-
goods_input_radios_add = 1
304+
goods_input_submarines_add = 1
305+
goods_input_ammunition_add = 2
301306
}
302307

303308
battle_modifier = {
304309
unit_offense_add = 60
305310
unit_defense_add = 20
306311
unit_blockade_add = 10
307312
unit_morale_loss_add = 8
308-
unit_convoy_raiding_mult = 1.0
313+
unit_convoy_raiding_mult = 0.5
309314
}
310315

311316
formation_modifier = {
312317
military_formation_movement_speed_mult = 0.2
313318
}
314319

315-
unlocking_technologies = { submarine }
320+
unlocking_technologies = { submarines }
316321

317322
combat_unit_image = {
318323
texture = "gfx/unit_illustrations/support_ships_submarine.dds"
@@ -324,27 +329,26 @@ combat_unit_type_diesel_nuclear_submarine = {
324329
max_manpower = 1000
325330

326331
upkeep_modifier = {
327-
goods_input_ironclads_add = 8
328-
goods_input_ammunition_add = 8
329-
goods_input_radios_add = 4
330-
goods_input_aeroplanes_add = 8
332+
goods_input_submarines_add = 2
333+
goods_input_missiles_add = 2
334+
goods_input_uranium_add = 1
331335
}
332336

333337
battle_modifier = {
334-
unit_offense_add = 120
335-
unit_defense_add = 60
336-
unit_blockade_add = 500
338+
unit_offense_add = 80
339+
unit_defense_add = 30
340+
unit_blockade_add = 10
337341
unit_morale_loss_add = 6
338-
unit_convoy_defense_mult = 0.25
342+
unit_convoy_raiding_mult = 1
339343
}
340344

341345
formation_modifier = {
342346
military_formation_movement_speed_mult = -0.2
343347
}
344348

345-
unlocking_technologies = { carrier_tech }
349+
unlocking_technologies = { marine_reactor }
346350

347351
combat_unit_image = {
348-
texture = "gfx/unit_illustrations/support_ships_carrier.dds"
352+
texture = "gfx/unit_illustrations/support_ships_submarine.dds"
349353
}
350354
}

gfx/map/spline_network/military_route_graphics/03_naval_vehicles.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ naval_route_graphics_01 = {
7575
is_fleet = yes
7676

7777
any_combat_unit = {
78-
has_unit_type = unit_type:combat_unit_type_torpedo_boat
78+
has_unit_type = unit_type:combat_unit_type_guided_missile_corvette
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)