# Triggered modifiers are here.
# these are checked for each countries once/month and then applied.
#
# Effects are fully scriptable here.

low_schools_fully_funded = {
    trigger = {
        exists = yes
        school_reforms = low_schools
        education_spending = 0.3
    }
    education_efficiency_modifier = 0.05
    icon = 19
}

acceptable_schools_fully_funded = {
    trigger = {
        exists = yes
        school_reforms = acceptable_schools
        education_spending = 0.4
    }
    education_efficiency_modifier = 0.075
    icon = 19
}

good_schools_fully_funded = {
    trigger = {
        exists = yes
        school_reforms = good_schools
        education_spending = 0.5
    }
    education_efficiency_modifier = 0.1
    icon = 19
}

education_fully_funded = {
    trigger = {
        exists = yes
        school_reforms = good_schools
        OR = {
            AND = {
                ai = yes
                education_spending = 0.74
            }
            AND = {
                ai = no
                education_spending = 0.99
            }
        }
    }
    education_efficiency_modifier = 0.1
    icon = 19
}

neglected_education = {
    trigger = {
        exists = yes
        civilized = yes
        ai = no
        number_of_states = 2
        total_pops = 1000000
        OR = {
            AND = {
                literacy = 0.75
                NOT = { education_spending = 0.3 }
            }
            AND = {
                literacy = 0.5
                NOT = { education_spending = 0.2 }
            }
            AND = {
                literacy = 0.25
                NOT = { education_spending = 0.1 }
            }
        }
    }
    education_efficiency_modifier = -1
    icon = 19
}


the_british_raj = {
    trigger = {
        exists = yes
        OR = {
            government = absolute_monarchy
            government = prussian_constitutionalism
            government = hms_government
        }
        NOT = { is_culture_group = indo_iranian }
        NOT = { is_culture_group = south_asian }
        1227 = {
            is_colonial = yes
            owned_by = THIS
        }
        1236 = {
            is_colonial = yes
            owned_by = THIS
        }
        1251 = {
            is_colonial = yes
            owned_by = THIS
        }
        1297 = {
            is_colonial = yes
            owned_by = THIS
        }
    }
    research_points = 0.5
    core_pop_militancy_modifier = -0.01
    prestige = 0.03
    icon = 19
}

own_kiel_canal = {
    trigger = {
        exists = yes
        owns = 369
        civilized = yes
        is_canal_enabled = 1
    }
    icon = 9
    tariff_efficiency_modifier = 0.05
}

own_suez_canal = {
    trigger = {
        exists = yes
        owns = 1755
        civilized = yes
        is_canal_enabled = 2
    }
    icon = 9
    tariff_efficiency_modifier = 0.1
    import_cost = -0.2
    prestige = 0.01
}

own_panama_canal = {
    trigger = {
        exists = yes
        owns = 1723
        civilized = yes
        is_canal_enabled = 3
    }
    icon = 9
    tariff_efficiency_modifier = 0.2
    import_cost = -0.25
    prestige = 0.02
}

small_but_efficient = {
    trigger = {
        exists = yes
        capital_scope = { continent = europe }
        civilized = yes
        NOT = { number_of_states = 4 }
        NOT = { num_of_cities = 8 }
        NOT = { total_pops = 500000 }
        NOT = { money = 1000000 }
        NOT = { year = 1886 }
        OR = {
            NOT = {
                is_culture_group = south_slavic
                is_culture_group = pan_romanian
                is_culture_group = levantine
            }
            NOT = { num_of_cities = 4 }
        }
    }

    icon = 9
    tax_efficiency = 0.5
    administrative_efficiency_modifier = 0.4
    tariff_efficiency_modifier = 0.4
    supply_consumption = -0.95
}

landlocked_nation = {
    trigger = {
        exists = yes
        NOT = { total_num_of_ports = 1 }
        NOT = { has_country_modifier = trek_boers }
    }

    import_cost = 0.5
    global_immigrant_attract = -1.5
    icon = 8
}

educational_spen = {
        trigger = {
            ai = yes
            exists = yes
            administration_spending = 0.74
        }

    education_efficiency_modifier = 0.3
    icon = 16
}

admin_spen = {
        trigger = {
            ai = yes
            exists = yes
            administration_spending = 0.74
        }

    administrative_efficiency_modifier = 0.3
    icon = 16
}

new_world_war = {
    trigger = {
        war = yes
        exists = yes
        OR = {
            capital_scope = { continent = north_america }
            capital_scope = { continent = south_america }
            capital_scope = { continent = australia_new_zealand }
        }
    }

    global_immigrant_attract = -1.3
    icon = 16
}

save_the_nation0.5  = {
	trigger = {
		revanchism = 0.05
		NOT = { revanchism = 0.10 }
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.005
	icon = 15
}

save_the_nation1  = {
	trigger = {
		revanchism = 0.10
		NOT = { revanchism = 0.15 }
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.010
	icon = 15
}

save_the_nation1.5  = {
	trigger = {
		revanchism = 0.15
		NOT = { revanchism = 0.20 }
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.012
	icon = 15
}

save_the_nation2  = {
	trigger = {
		revanchism = 0.20
		NOT = { revanchism = 0.25 }
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.014
	icon = 15
}

save_the_nation2.5  = {
	trigger = {
		revanchism = 0.25
		NOT = { revanchism = 0.30 }
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.020
	icon = 15
}

save_the_nation3  = {
	trigger = {
		revanchism = 0.30
		NOT = { revanchism = 0.35 }
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.022
	icon = 15
}

save_the_nation3.5  = {
	trigger = {
		revanchism = 0.35
		NOT = { revanchism = 0.40 }
		NOT = { has_country_flag = chinese }
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.024
	icon = 15
}

save_the_nation4  = {
	trigger = {
		revanchism = 0.40
		NOT = { revanchism = 0.45 }
		NOT = { has_country_flag = chinese }
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.026
	icon = 15
}

save_the_nation4.5  = {
	trigger = {
		revanchism = 0.45
		NOT = { revanchism = 0.50 }
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.028
	icon = 15
}

save_the_nation5  = {
	trigger = {
		revanchism = 0.50
		NOT = { has_country_flag = chinese }
		civilized = yes
	}
	
	suppression_points_modifier = 0.10
	
	mobilisation_size = 0.30
	icon = 15
}