######################################
### NEW SPANISH EMPIRE FOCUS TREE ####
######################################

focus_tree = {
    id = nsr_focustree

    country = {
        factor = 0
        modifier = {
            add = 10
            tag = NSR
        }
    }

    default = no

    focus = {
        id = NSR_never_forget_never_forgive
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
        x = 38
        y = 0
        cost = 10
        completion_reward = {
			add_political_power = 25
			add_stability = 0.02
        }
    }

    focus = {
        id = NSR_end_the_policy_of_war
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_never_forget_never_forgive
        x = 0
        y = 1
        cost = 5
		prerequisite = { focus = NSR_never_forget_never_forgive }
        completion_reward = {
			add_war_support = 0.025
			add_stability = 0.05

			remove_ideas = NSR_policy_of_war
        }
    }

    focus = {
        id = NSR_finish_the_purge
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_end_the_policy_of_war
        x = -4
        y = 1
        cost = 5
		prerequisite = { focus = NSR_end_the_policy_of_war }
        completion_reward = {
			add_political_power = 50
			add_manpower = -5000
			add_stability = -0.05

			add_ideas = NSR_des_republicanizacion
        }
    }

    focus = {
        id = NSR_the_final_solution_to_the_republic_question
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_finish_the_purge
        x = 0
        y = 1
        cost = 5
		prerequisite = { focus = NSR_finish_the_purge }
        completion_reward = {
			swap_ideas = {
				remove_idea = NSR_des_republicanizacion
				add_idea = NSR_des_republicanizacion_2
			}
        }
    }

    focus = {
        id = NSR_oppress_and_reward_the_natives
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_the_final_solution_to_the_republic_question
        x = -1
        y = 1
        cost = 5
		prerequisite = { focus = NSR_the_final_solution_to_the_republic_question }
        completion_reward = {
			add_ideas = NSR_oppressing_and_rewarding
        }
    }

    focus = {
        id = NSR_purificacion_nacional
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_the_final_solution_to_the_republic_question
        x = 1
        y = 1
        cost = 5
		prerequisite = { focus = NSR_the_final_solution_to_the_republic_question }
        completion_reward = {
			add_stability = 0.05
			add_manpower = -20000

			### modify the idea of Des-republicanizacion
        }
    }

    focus = {
        id = NSR_introduce_the_impuesto_alimentario
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_end_the_policy_of_war
        x = -1
        y = 1
        cost = 5
		prerequisite = { focus = NSR_end_the_policy_of_war }
        completion_reward = {
            add_popularity = { 
				ideology = monarchism 
				popularity = 0.05 
				}

			### add idea of impuesto alimentario
        }
    }

    focus = {
        id = NSR_agricultural_machinery
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_end_the_policy_of_war
        x = 1
        y = 1
        cost = 5
		prerequisite = { focus = NSR_end_the_policy_of_war }
        completion_reward = {

			add_manpower = -75000
			add_political_power = 75
			add_stability = -0.05

            add_popularity = { 
				ideology = monarchism 
				popularity = 0.025
				}

			### replace idea risk of famine with food problems
        }
    }

    focus = {
        id = NSR_violence_is_always_effective
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_agricultural_machinery
        x = -1
        y = 1
        cost = 5
		prerequisite = { focus = NSR_agricultural_machinery }
		prerequisite = { focus = NSR_introduce_the_impuesto_alimentario }
        completion_reward = {

			add_manpower = -25000
			add_political_power = 40
			add_stability = -0.05

			add_ideas = NSR_violent_methods
        }
    }

    focus = {
        id = NSR_loyalty_to_spain
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_violence_is_always_effective
        x = 0
        y = 1
        cost = 5
		prerequisite = { focus = NSR_violence_is_always_effective }
        completion_reward = {
			add_stability = 0.05
			add_political_power = 50

            add_popularity = { 
				ideology = monarchism 
				popularity = 0.5
			}
        }
    }

    focus = {
        id = NSR_rally_the_native_population
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_end_the_policy_of_war
        x = 4
        y = 1
        cost = 5
		prerequisite = { focus = NSR_end_the_policy_of_war }
        completion_reward = {

			add_manpower = 5000
			add_stability = -0.05

			if = {
				limit = {
					OR = {
						has_idea = disarmed_nation
						has_idea = volunteer_only
					}
				}
				add_ideas = limited_conscription
			}
			else = {
				add_political_power = 150
			}
        }
    }

    focus = {
        id = NSR_beat_everyone_to_submission
        icon =  GFX_focus_beateveryonetosubmission
		relative_position_id = NSR_rally_the_native_population
        x = 0
        y = 1
        cost = 5
		prerequisite = { focus = NSR_rally_the_native_population }
        completion_reward = {
			add_manpower = 50000
			add_stability = -0.05

            add_popularity = { 
				ideology = monarchism 
				popularity = -0.05
			}
        }
    }

    focus = {
        id = NSR_god_above_all
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_beat_everyone_to_submission
        x = 0
        y = 1
        cost = 5
		prerequisite = { focus = NSR_beat_everyone_to_submission }
        completion_reward = {
			add_manpower = 5000
			add_stability = -0.05

			add_ideas = extensive_conscription
        }
    }

    focus = {
        id = NSR_fate_of_the_royal_family
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_loyalty_to_spain
        x = 0
        y = 1
        cost = 5
		prerequisite = { focus = NSR_loyalty_to_spain }
		prerequisite = { focus = NSR_oppress_and_reward_the_natives }
		prerequisite = { focus = NSR_purificacion_nacional }
		prerequisite = { focus = NSR_god_above_all }

        completion_reward = {
			country_event = NSR.1 ### regency or alfonso
        }
    }

    focus = {
        id = NSR_coronation_of_alfonso
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_fate_of_the_royal_family
        x = 0
        y = 1
        cost = 5
		prerequisite = { focus = NSR_fate_of_the_royal_family }

        completion_reward = {
			country_event = NSR.2 ### make alfonso leader
        }
    }

    focus = {
        id = NSR_faithful_regency_in_power
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_fate_of_the_royal_family
        x = -5
        y = 1
        cost = 5
		prerequisite = { focus = NSR_fate_of_the_royal_family }

        completion_reward = {
			country_event = NSR.2 ### make alfonso leader
        }
    }

    focus = {
        id = NSR_socialism_prevails
        icon =  GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = NSR_fate_of_the_royal_family
        x = 5
        y = 1
        cost = 5
		prerequisite = { focus = NSR_fate_of_the_royal_family }

        completion_reward = {
			country_event = NSR.2 ### make alfonso leader
        }
    }
}