# you need to check common/inline_scripts/traditions/tr_stage_1_tradition_swaps.txt for version diffs!

tr_cloning_stage_1_swap = {
    possible = {
        has_tradition = tr_cloning_evolutionary_extrapolation
    }

    custom_tooltip = tr_genetic_stage_1_swap_tt

    # Cloning Swap
    tradition_swap = {
        name = tr_genetic_stage_1_cloning_swap
        inherit_name = no
        inherit_icon = no
        trigger = {
            always = yes
            NOT = {
                has_country_flag = clone_army_full_potential
            }
        }

        inline_script = {
            script = traditions/tr_cloning_genomic_growth
        }
        weight = {
            factor = 1
        }
    }

    # Clone Army Swap
    tradition_swap = {
        name = tr_cloning_genomic_growth_clone_army
        inherit_name = no
        inherit_icon = no
        trigger = {
            has_country_flag = clone_army_full_potential
        }

        custom_tooltip_with_modifiers = tr_cloning_genomic_growth_clone_army_tt

        modifier = {

        }
        weight = {
            factor = 1
        }
    }

    ai_weight = {
        factor = 5000
    }
}

tr_cloning_stage_2_swap = {
    possible = {
        has_tradition = tr_cloning_somatic_synthesization
    }

    custom_tooltip = tr_genetic_stage_2_swap_tt

    # Cloning Swap
    tradition_swap = {
        name = tr_genetic_stage_2_cloning_swap
        inherit_name = no
        inherit_icon = no
        trigger = {
            is_cloning_authority = no
            NOT = {
                has_country_flag = clone_army_full_potential
            }
        }

        inline_script = {
            script = traditions/tr_cloning_biochemical_composure
        }
        weight = {
            factor = 1
        }
    }

    # Clone Army Swap
    tradition_swap = {
        name = tr_cloning_artificial_population_clone_army
        inherit_name = no
        inherit_icon = no
        trigger = {
            has_country_flag = clone_army_full_potential
            is_cloning_authority = no
        }
        modifier = {

        }
        inline_script = {
            script = traditions/tr_cloning_biochemical_composure
        }
        weight = {
            factor = 1
        }
    }

    # Cloning Swap
    tradition_swap = {
        name = tr_cloning_biochemical_composure_clones
        inherit_name = no
        inherit_icon = no
        trigger = {
            is_cloning_authority = yes
            NOT = {
                has_country_flag = clone_army_full_potential
            }
        }

        inline_script = {
            script = traditions/tr_cloning_biochemical_composure_clones
        }
        weight = {
            factor = 1
        }
    }

    # Clone Army Swap
    tradition_swap = {
        name = tr_cloning_biochemical_composure_clones_clone_army
        inherit_name = no
        inherit_icon = no
        trigger = {
            is_cloning_authority = yes
            has_country_flag = clone_army_full_potential
        }
        modifier = {

        }
        inline_script = {
            script = traditions/tr_cloning_biochemical_composure_clones
        }
        weight = {
            factor = 1
        }
    }

    ai_weight = {
        factor = 5000
    }
}

tr_cloning_stage_3_swap = {
    possible = {
        has_tradition = tr_cloning_evolutionary_extrapolation
        has_tradition = tr_cloning_somatic_synthesization
    }

    custom_tooltip = tr_genetic_stage_3_swap_tt

    # Cloning Swap
    tradition_swap = {
        name = tr_genetic_stage_3_cloning_swap
        inherit_name = no
        inherit_icon = no
        trigger = {
            NOT = {
                has_country_flag = clone_army_full_potential
            }
        }

        inline_script = {
            script = traditions/tr_cloning_artificial_population
        }
        weight = {
            factor = 1
        }
    }

    # Clone Army Swap
    tradition_swap = {
        name = tr_cloning_artificial_population_clone_army
        inherit_name = no
        inherit_icon = no
        trigger = {
            has_country_flag = clone_army_full_potential
        }
        custom_tooltip_with_modifiers = tr_cloning_artificial_population_clone_army_tt
        modifier = {
            pop_government_ethic_attraction = 0.50
        }
        weight = {
            factor = 1
        }
    }

    ai_weight = {
        factor = 5000
    }
}