"Switch to Generic Tree" = {
    changefocus2 = {
        icon = generic_propaganda
        cost = 0
        fire_only_once = yes
        days_remove = 1

        ai_will_do = { factor = 0 } # AI will never take this decision

        complete_effect = {
            hidden_effect = {
                every_other_country = {
                    limit = {
                        is_ai = yes
                    }

                    #Flag makes the tree choice survive save load (see focus_tree country weights).
                    #RCP_generic_focus is the mod's own tree id (unique for R56 compatibility).
                    #Under the Players Only tree-access rule the AI gets the vanilla copy instead.
                    set_country_flag = RCP_switched_to_generic_tree
                    if = {
                        limit = { has_game_rule = { rule = RCP_tree_access option = PLAYERS_ONLY } }
                        set_country_flag = RCP_vanilla_tree_ai
                        load_focus_tree = RCP_vanilla_generic_focus
                    }
                    else = {
                        load_focus_tree = RCP_generic_focus
                    }
                    add_political_power = -60

				#Spirit removal lives in common/scripted_effects/rcp_scripted_effects.txt
				#(has_idea-guarded so idea on_remove chains only fire for spirits the
				#nation really has). Called twice to also sweep chain-added spirits.
				RCP_remove_starting_spirits = yes
				RCP_remove_starting_spirits = yes
				RCP_remove_starting_modifiers = yes
				RCP_remove_balance_of_power = yes

                }
            }
        }
    }
}