special_forces_quantity = {
    folder = special_forces

    name = GRAND_DOCTRINE_SPECIAL_FORCES_QUANTITY
    description = GRAND_DOCTRINE_SPECIAL_FORCES_QUANTITY_DESC
    icon = GFX_doctrine_special_forces_1_medium
    available = {
        OR = {
            has_tech = tech_mountaineers
            has_tech = marines
            has_tech = paratroopers
            has_tech = rangers_tech
            has_tech = shocktroops
        }
    }

    xp_cost = 60
    xp_type = army

    ai_will_do = {
        base = 1
    }

    tracks = {
    	special_forces_first
    	special_forces_second
    }

    # EFFECTS

    special_forces_cap = 0.1 #RT56RPMITAKA changed from 0.04
    special_forces_training_time_factor = -0.2

    milestones = {
        {
        	#special_forces_cap = 0.04 #RT56RPMITAKA
            category_special_forces = {
                soft_attack = 0.05
            }
            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = special_forces_milestone_var
                        }
                    }
                    set_variable = { special_forces_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { special_forces_milestone_var = 1 }
                }
            }            
        }
        {
        	#special_forces_cap = 0.04 #RT56RPMITAKA
            category_special_forces = {
                max_organisation = 5
            }
            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = special_forces_milestone_var
                        }
                    }
                    set_variable = { special_forces_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { special_forces_milestone_var = 1 }
                }
            }                      
        }
    }
}

special_forces_quality = {
    folder = special_forces

    name = GRAND_DOCTRINE_SPECIAL_FORCES_QUALITY
    description = GRAND_DOCTRINE_SPECIAL_FORCES_QUALITY_DESC
    icon = GFX_doctrine_special_forces_2_medium
    available = {
        OR = {
            has_tech = tech_mountaineers
            has_tech = marines
            has_tech = paratroopers
            has_tech = rangers_tech
            has_tech = shocktroops
        }
    }

    xp_cost = 60
    xp_type = army

    ai_will_do = {
        base = 1
    }

    tracks = {
        special_forces_first
        special_forces_second
    }

    # EFFECTS

    category_special_forces = {
                max_organisation = 12.5 #RT56RPMITAKA changed from 10

    }
    special_forces_no_supply_grace = 32 #RT56RPMITAKA changed from 24
    special_forces_cap = -0.1 #RT56RPMITAKA
    special_forces_min = 140 #RT56RPMITAKA

    milestones = {
        {
            category_special_forces = {
                acclimatization_hot_climate_gain_factor = 0.1
                acclimatization_cold_climate_gain_factor = 0.1
                soft_attack = 0.05
                breakthrough = 0.08 #RT56RPMITAKA changed from 0.05
            }
            #special_forces_cap = 0.02 #RT56RPMITAKA
            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = special_forces_milestone_var
                        }
                    }
                    set_variable = { special_forces_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { special_forces_milestone_var = 1 }
                }
            }            
        }
        {
            category_special_forces = {
                acclimatization_hot_climate_gain_factor = 0.1
                acclimatization_cold_climate_gain_factor = 0.1
                soft_attack = 0.05
                defense = 0.08 #RT56RPMITAKA changed from 0.05
            }
            #special_forces_cap = 0.02 #RT56RPMITAKA
            effect = {
                if = {
                    limit = {
                        NOT = {
                            has_variable = special_forces_milestone_var
                        }
                    }
                    set_variable = { special_forces_milestone_var = 1 }
                }
                else = {
                    add_to_variable = { special_forces_milestone_var = 1 }
                }
            }            
        }
    }
}