# 
# The Submarine Technology Group
#

#
#
#	
#	

technology = {
	id = 5
	category = submarine
	name = TECH_SUB_NAME #Localized name
	desc = TECH_SUB_DESC #Localized description
	
	level = { # 1 - Submarine Innovation
		id = 5000
		name = TECH_LEVEL_SUB_1_NAME 
		desc = TECH_LEVEL_SUB_1_DESC 
		
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Single Hull
			id = 5001
			name = TECH_APP_SUB_1_1_NAME
			desc = TECH_APP_SUB_1_1_DESC
			
			required = { }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Ballast Tanks
			id = 5002
			name = TECH_APP_SUB_1_2_NAME
			desc = TECH_APP_SUB_1_2_DESC
			
			required = { 5001 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Submarine Steam Engine
			id = 5003
			name = TECH_APP_SUB_1_3_NAME
			desc = TECH_APP_SUB_1_3_DESC
			
			required = { 6001 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Horizontal Propeller
			id = 5004
			name = TECH_APP_SUB_1_4_NAME
			desc = TECH_APP_SUB_1_4_DESC
			
			required = { }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Steam Torpedoes
			id = 5005
			name = TECH_APP_SUB_1_5_NAME
			desc = TECH_APP_SUB_1_5_DESC
			
			required = { }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Early Submarine
			id = 5006
			name = TECH_APP_SUB_1_6_NAME
			desc = TECH_APP_SUB_1_6_DESC
			
			required = { 5001 5002 5003 5004 5005 }
			chance = 90
			cost = 12
			time = 140
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = activate_unit_type which = submarine }
			}
		}
	} # Level 1

	level = { # 2 - Early Submarine Technology
		id = 5100
		name = TECH_LEVEL_SUB_2_NAME 
		desc = TECH_LEVEL_SUB_2_DESC 
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Basic Pressure Hull
			id = 5101
			name = TECH_APP_SUB_2_1_NAME
			desc = TECH_APP_SUB_2_1_DESC
			
			required = { 5001 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Small Submarine Hull
			id = 5102
			name = TECH_APP_SUB_2_2_NAME
			desc = TECH_APP_SUB_2_2_DESC
			
			required = { 5101 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Internal Ballast Tanks
			id = 5103
			name = TECH_APP_SUB_2_3_NAME
			desc = TECH_APP_SUB_2_3_DESC
			
			required = { 5102 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Conning Tower
			id = 5104
			name = TECH_APP_SUB_2_4_NAME
			desc = TECH_APP_SUB_2_4_DESC
			
			required = { }
			chance = 90
			cost = 10
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Submarine Petrol Engine
			id = 5105
			name = TECH_APP_SUB_2_5_NAME
			desc = TECH_APP_SUB_2_5_DESC
			
			required = { 5003 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
	} # Level 2

	level = { # 3- Basic Submarine Construction
		id = 5200
		name = TECH_LEVEL_SUB_3_NAME 
		desc = TECH_LEVEL_SUB_3_DESC 
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Horizontal Rudder
			id = 5201
			name = TECH_APP_SUB_3_1_NAME
			desc = TECH_APP_SUB_3_1_DESC
			
			required = { 5004 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Periscope
			id = 5202
			name = TECH_APP_SUB_3_2_NAME
			desc = TECH_APP_SUB_3_2_DESC
			
			required = { 5104 }
			chance = 90
			cost = 10
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Basic Torpedo Tubes
			id = 5203
			name = TECH_APP_SUB_3_3_NAME
			desc = TECH_APP_SUB_3_3_DESC
			
			required = { 5005 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Submarine Testing
			id = 5204
			name = TECH_APP_SUB_3_4_NAME
			desc = TECH_APP_SUB_3_4_DESC
			
			required = { 5102 5103 5105 5201 5202 }
			chance = 90
			cost = 12
			time = 140
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Short-Range Coastal Submarine
			id = 5205
			name = TECH_APP_SUB_3_5_NAME
			desc = TECH_APP_SUB_3_5_DESC
			
			required = { 5204 5203 }
			chance = 90
			cost = 12
			time = 140
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = submarine value = 1 }
			}
		}
		application = { # Submarine Freighter
			id = 5206
			name = TECH_APP_SUB_3_6_NAME
			desc = TECH_APP_SUB_3_6_DESC
			
			required = { 5204 }
			chance = 90
			cost = 10
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = supply_consumption which = battleship value = -0.1 }
				command = { type = supply_consumption which = carrier value = -0.1 }
				command = { type = supply_consumption which = cruiser value = -0.1 }
				command = { type = supply_consumption which = destroyer value = -0.1 }
				command = { type = supply_consumption which = submarine value = -0.1 }
				command = { type = fuel_consumption which = battleship value = -0.1 }
				command = { type = fuel_consumption which = carrier value = -0.1 }
				command = { type = fuel_consumption which = cruiser value = -0.1 }
				command = { type = fuel_consumption which = destroyer value = -0.1 }
				command = { type = fuel_consumption which = submarine value = -0.1 }
			}
		}
	} # Level 3

	level = { # 4 - Basic Submarine Equipment
		id = 5300
		name = TECH_LEVEL_SUB_4_NAME 
		desc = TECH_LEVEL_SUB_4_DESC
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Deck Gun 50mm+
			id = 5301
			name = TECH_APP_SUB_4_1_NAME
			desc = TECH_APP_SUB_4_1_DESC
			
			required = { 14002 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = naval_attack which = submarine when = on_upgrade value = 1 }
				command = { type = sub_attack which = submarine when = on_upgrade value = 1 }
			}
		}
		application = { # Improved Steam Torpedoes
			id = 5302
			name = TECH_APP_SUB_4_2_NAME
			desc = TECH_APP_SUB_4_2_DESC
			
			required = { 5203 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = naval_attack which = submarine value = 1 }
			}
		}
		application = { # Coastal Mine
			id = 5303
			name = TECH_APP_SUB_4_3_NAME
			desc = TECH_APP_SUB_4_3_DESC
			
			required = { 1105 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = naval_attack which = submarine when = on_upgrade value = 1 }
			}
		}
		application = { # Pressure Hull Testing
			id = 5304
			name = TECH_APP_SUB_4_4_NAME
			desc = TECH_APP_SUB_4_4_DESC
			
			required = { 5101 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Nautical Gyrocompass
			id = 5305
			name = TECH_APP_SUB_4_5_NAME
			desc = TECH_APP_SUB_4_5_DESC
			
			required = { }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = visibility which = submarine when = on_upgrade value -2 }
			}
		}
	} # Level 4

	level = { # 5 - Fuel-Driven Torpedoes
		id = 5400
		name = TECH_LEVEL_SUB_5_NAME 
		desc = TECH_LEVEL_SUB_5_DESC 
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Torpedo Testing
			id = 5401
			name = TECH_APP_SUB_5_1_NAME
			desc = TECH_APP_SUB_5_1_DESC
			
			required = { 5302 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Alcohol Torpedoes
			id = 5402
			name = TECH_APP_SUB_5_2_NAME
			desc = TECH_APP_SUB_5_2_DESC
			
			required = { 5401 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = naval_attack which = submarine value = 1 }
			}
		}
		application = { # Basic Petrol Torpedoes
			id = 5403
			name = TECH_APP_SUB_5_3_NAME
			desc = TECH_APP_SUB_5_3_DESC
			
			required = { 5401 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
			}
		}
	} # Level 5

	level = { # 6 - Improved Submarine Construction
		id = 5500
		name = TECH_LEVEL_SUB_6_NAME 
		desc = TECH_LEVEL_SUB_6_DESC 
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Improved Pressure Hull
			id = 5501
			name = TECH_APP_SUB_6_1_NAME
			desc = TECH_APP_SUB_6_1_DESC
			
			required = { 5304 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Medium Submarine Hull
			id = 5502
			name = TECH_APP_SUB_6_2_NAME
			desc = TECH_APP_SUB_6_2_DESC
			
			required = { 5102 5501 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Submarine Diesel Engine
			id = 5503
			name = TECH_APP_SUB_6_3_NAME
			desc = TECH_APP_SUB_6_3_DESC
			
			required = { 5105 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Improved Periscope
			id = 5504
			name = TECH_APP_SUB_6_4_NAME
			desc = TECH_APP_SUB_6_4_DESC
			
			required = { 5202 }
			chance = 90
			cost = 10
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Improved Torpedo Tubes
			id = 5505
			name = TECH_APP_SUB_6_5_NAME
			desc = TECH_APP_SUB_6_5_DESC
			
			required = { 5203 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { }
			}
		}
		application = { # Long-Range Coastal Submarine
			id = 5506
			name = TECH_APP_SUB_6_6_NAME
			desc = TECH_APP_SUB_6_6_DESC
			
			required = { 5502 5103 5503 5504 5505 }
			chance = 90
			cost = 12
			time = 140
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = new_model which = submarine value = 2 }
			}
		}
	} # Level 6

	level = { # 7 - Improved Submarine Equipment
		id = 5600
		name = TECH_LEVEL_SUB_7_NAME 
		desc = TECH_LEVEL_SUB_7_DESC 
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Deck Gun 70mm+
			id = 5601
			name = TECH_APP_SUB_7_1_NAME
			desc = TECH_APP_SUB_7_1_DESC
			
			required = { 5301 14203 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Improved Petrol Torpedoes
			id = 5602
			name = TECH_APP_SUB_7_2_NAME
			desc = TECH_APP_SUB_7_2_DESC
			
			required = { 5403 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = naval_attack which = submarine value = 1 }
			}
		}
		application = { # Low Frequency Wireless Sets
			id = 5603
			name = TECH_APP_SUB_7_3_NAME
			desc = TECH_APP_SUB_7_3_DESC
			
			required = { 3404 }
			chance = 90
			cost = 10
			time = 120
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = surface_detection which = submarine when = on_upgrade value = 1 }
				command = { type = air_detection which = submarine when = on_upgrade value = 1 }
			}
		}
		application = { # Recon and Navigation Services
			id = 5604
			name = TECH_APP_SUB_7_4_NAME
			desc = TECH_APP_SUB_7_4_DESC
			
			required = { 5603 }
			chance = 90
			cost = 10
			time = 120
			neg_offset = 20
			pos_offset = 40
			
			effects = {
				command = { type = surface_detection which = submarine when = on_upgrade value = 1 }
				command = { type = air_detection which = submarine when = on_upgrade value = 1 }
				command = { type = visibility which = submarine when = on_upgrade value -1 }
			}
		}
		application = { # Submarine Diesel Generator
			id = 5605
			name = TECH_APP_SUB_7_5_NAME
			desc = TECH_APP_SUB_7_5_DESC
			
			required = { 5503 }
			chance = 90
			cost = 6
			time = 60
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
	} # Level 7

	level = { # 8 - Advanced Submarine Construction
		id = 5700
		name = TECH_LEVEL_SUB_8_NAME 
		desc = TECH_LEVEL_SUB_8_DESC 
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Advanced Pressure Hull
			id = 5701
			name = TECH_APP_SUB_8_1_NAME
			desc = TECH_APP_SUB_8_1_DESC
			
			required = { 5501 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Large Submarine Hull
			id = 5702
			name = TECH_APP_SUB_8_2_NAME
			desc = TECH_APP_SUB_8_2_DESC
			
			required = { 5502 5701 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Submarine Electric Engine
			id = 5703
			name = TECH_APP_SUB_8_3_NAME
			desc = TECH_APP_SUB_8_3_DESC
			
			required = { 5605 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Advanced Periscope
			id = 5704
			name = TECH_APP_SUB_8_4_NAME
			desc = TECH_APP_SUB_8_4_DESC
			
			required = { 5504 }
			chance = 90
			cost = 10
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Advanced Torpedo Tubes
			id = 5705
			name = TECH_APP_SUB_8_5_NAME
			desc = TECH_APP_SUB_8_5_DESC
			
			required = { 5505 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { }
			}
		}
		application = { # Open Seas Submarine
			id = 5706
			name = TECH_APP_SUB_8_6_NAME
			desc = TECH_APP_SUB_8_6_DESC
			
			required = { 5702 5103 5703 5704 5705 }
			chance = 90
			cost = 12
			time = 140
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = new_model which = submarine value = 3 } 
			}
		}
	} # Level 8

	level = { # 9 - Advanced Submarine Equipment
		id = 5800
		name = TECH_LEVEL_SUB_9_NAME 
		desc = TECH_LEVEL_SUB_9_DESC 
				
		cost = 20
		time = 150
		neg_offset = 45
		pos_offset = 90
		
		application = { # Deck Gun 100mm+
			id = 5801
			name = TECH_APP_SUB_9_1_NAME
			desc = TECH_APP_SUB_9_1_DESC
			
			required = { 5601 14102 }
			chance = 90
			cost = 8
			time = 80
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = naval_attack which = submarine when = on_upgrade value = 1 }
				command = { type = sub_attack which = submarine when = on_upgrade value = 1 }
			}
		}
		application = { # Advanced Petrol Torpedoes
			id = 5802
			name = TECH_APP_SUB_9_2_NAME
			desc = TECH_APP_SUB_9_2_DESC
			
			required = { 5602 }
			chance = 90
			cost = 8
			time = 100
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = naval_attack which = submarine value = 1 }
			}
		}
		application = { # High Frequency Wireless Sets
			id = 5803
			name = TECH_APP_SUB_9_3_NAME
			desc = TECH_APP_SUB_9_3_DESC
			
			required = { 5603 3605 }
			chance = 90
			cost = 10
			time = 120
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = surface_detection which = submarine when = on_upgrade value = 1 }
				command = { type = air_detection which = submarine when = on_upgrade value = 1 }
			}
		}
		application = { # Open Seas Mines
			id = 5804
			name = TECH_APP_SUB_9_4_NAME
			desc = TECH_APP_SUB_9_4_DESC
			
			required = { 5303 }
			chance = 90
			cost = 12
			time = 140
			neg_offset = 30
			pos_offset = 60
			
			effects = {
				command = { type = naval_attack which = submarine when = on_upgrade value = 1 }
			}
		}
	} # Level 9
	
	level = { # 10 - Extra
		id = 5900
		name = TECH_LEVEL_SUB_10_NAME 
		desc = TECH_LEVEL_SUB_10_DESC 
				
		cost = 0
		time = 1
		neg_offset = 45
		pos_offset = 90
		
	} # Level 10

	level = { # 11 - Extra
		id = 5940
		name = TECH_LEVEL_SUB_11_NAME 
		desc = TECH_LEVEL_SUB_11_DESC 
				
		cost = 0
		time = 1
		neg_offset = 45
		pos_offset = 90
		
	} # Level 11

	level = { # 12 - Extra
		id = 5970
		name = TECH_LEVEL_SUB_12_NAME 
		desc = TECH_LEVEL_SUB_12_DESC 
				
		cost = 0
		time = 1
		neg_offset = 45
		pos_offset = 90
		
	} # Level 12
}