new_fleet_in_being = {
    folder = naval

    name = GRAND_DOCTRINE_FLEET_IN_BEING
    description = GRAND_DOCTRINE_FLEET_IN_BEING_DESC
    icon = GFX_doctrine_fleet_in_being_medium
    available = {
        always = yes
    }

    xp_cost = 100
    xp_type = navy

    ai_will_do = {
        base = 1
    }

    tracks = {
        submarines
        screens
        carriers
        capital_ships
    }

    # EFFECTS
	battleship = {
		max_organisation = 15			
	}
	navy_capital_ship_defence_factor = 0.1
	
    milestones = {
        {
            #Capital Ships
			mines_planting_by_fleets_factor = 0.2
			convoy_escort_efficiency = 0.15
            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = capital_ships_milestone_var
                        }
                    }
                    set_variable = { capital_ships_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { capital_ships_milestone_var = 1 }
                }
            }
        }
        {
            #Carriers
	        navy_capital_ship_attack_factor = 0.1

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = carriers_milestone_var
                        }
                    }
                    set_variable = { carriers_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { carriers_milestone_var = 1 }
                }
            }
        }
        {
            #Screens
			navy_anti_air_attack_factor = 0.10

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = screens_milestone_var
                        }
                    }
                    set_variable = { screens_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { screens_milestone_var = 1 }
                }
            }
        }
        {
            #Submarines
	        naval_torpedo_reveal_chance_factor = -0.05
			strike_force_movement_org_loss = -0.2

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = submarines_milestone_var
                        }
                    }
                    set_variable = { submarines_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { submarines_milestone_var = 1 }
                }
            }
        }
    }
}

new_convoy_raiding = {
    folder = naval

    name = GRAND_DOCTRINE_CONVOY_RAIDING
    description = GRAND_DOCTRINE_CONVOY_RAIDING_DESC
    icon = GFX_doctrine_trade_interdiction_medium
    available = {
        always = yes
    }

    xp_cost = 100
    xp_type = navy

    ai_will_do = {
        base = 1

        modifier = {
            factor = 10
            is_major = no
        }
    }

    tracks = {
        submarines
        screens
        carriers
        capital_ships
    }

    # EFFECTS
	
	
	submarine = {
		max_organisation = 10
		surface_detection = 0.10
	}
	convoy_raiding_efficiency_factor = 0.15
	
    milestones = {
        {
            #Capital Ships
			convoy_escort_efficiency = 0.10

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = capital_ships_milestone_var
                        }
                    }
                    set_variable = { capital_ships_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { capital_ships_milestone_var = 1 }
                }
            }
        }
        {
            #Carriers
	        submarine_attack = 0.10
			naval_torpedo_reveal_chance_factor = -0.10

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = carriers_milestone_var
                        }
                    }
                    set_variable = { carriers_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { carriers_milestone_var = 1 }
                }
            }
        }
        {
            #Screens
			strike_force_movement_org_loss = -0.15
			naval_detection = 0.1

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = screens_milestone_var
                        }
                    }
                    set_variable = { screens_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { screens_milestone_var = 1 }
                }
            }
        }
        {
            #Submarines
	        sortie_efficiency = 0.30
			naval_strike_targetting_factor = 0.1
			convoy_raiding_efficiency_factor = 0.1

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = submarines_milestone_var
                        }
                    }
                    set_variable = { submarines_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { submarines_milestone_var = 1 }
                }
            }
        }
    }
}

new_base_strike = {
    folder = naval

    name = GRAND_DOCTRINE_BASE_STRIKE
    description = GRAND_DOCTRINE_BASE_STRIKE_DESC
    icon = GFX_doctrine_base_strike_medium
    available = {
        always = yes
    }

    xp_cost = 100
    xp_type = navy

    ai_will_do = {
        base = 1
    }

    tracks = {
        submarines
        screens
        carriers
        capital_ships
    }

    # EFFECTS
	
	
	carrier = {
		max_organisation = 20
	}
	port_strike = 0.4
	
    milestones = {
        {
            #Capital Ships
			convoy_escort_efficiency = 0.15

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = capital_ships_milestone_var
                        }
                    }
                    set_variable = { capital_ships_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { capital_ships_milestone_var = 1 }
                }
            }
        }
        {
            #Carriers
	        naval_strike_targetting_factor = 0.1
			naval_torpedo_reveal_chance_factor = -0.10

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = carriers_milestone_var
                        }
                    }
                    set_variable = { carriers_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { carriers_milestone_var = 1 }
                }
            }
        }
        {
            #Screens
			carrier_capacity_penalty_reduction = -0.1
			naval_detection = 0.05

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = screens_milestone_var
                        }
                    }
                    set_variable = { screens_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { screens_milestone_var = 1 }
                }
            }
        }
        {
            #Submarines
	        sortie_efficiency = 0.30
			naval_strike_targetting_factor = 0.1
			navy_carrier_air_agility_factor = 0.10

            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = submarines_milestone_var
                        }
                    }
                    set_variable = { submarines_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { submarines_milestone_var = 1 }
                }
            }
        }
    }
}