eoanb_category_economic = {

	MXE_decision_vic_Railway_1 = { # Mexico City & Oaxaca

        icon = generic_construction

		highlight_states = {
			state = 1114
		}

		available = {
			277 = { is_controlled_by = MXE }
			476 = { is_controlled_by = MXE }
		}

		visible = {
		    MXE = { has_completed_focus = MXE_Railway_Expansion_1 }
		    tag = MXE
		}
		allowed = { TAG = MXE }

		fire_only_once = yes
		is_good = yes

		cost = 0
		days_remove = 560

		modifier = {
			political_power_factor = -0.15
			industrial_capacity_factory = -0.06
		}

		remove_effect = {
			277 = {
				add_building_construction = {
				    type = infrastructure
				    level = 1
				    instant_build = yes
				}
			}
			476 = {
				add_building_construction = {
				    type = infrastructure
				    level = 1
				    instant_build = yes
				}
			}
		}

		ai_will_do = {
			base = 1
		}
    }

    MXE_decision_vic_Railway_2 = { # Veracruz

        icon = generic_construction

		highlight_states = {
			state = 477
		}

		available = {
			477 = { is_controlled_by = MXE }
		}

		visible = {
		    MXE = { has_completed_focus = MXE_Railway_Expansion_2 }
		    tag = MXE
		}
		allowed = { TAG = MXE }

		fire_only_once = yes
		is_good = yes

		cost = 0
		days_remove = 365

		modifier = {
			political_power_factor = -0.1
			industrial_capacity_factory = -0.04
		}

		remove_effect = {
			477 = {
				add_building_construction = {
				    type = infrastructure
				    level = 1
				    instant_build = yes
				}
			}
		}

		ai_will_do = {
			base = 1
		}
    }

	MXE_decision_vic_dockyard_veracruz = {

		icon = generic_construction

		available = {
			has_completed_focus = MXE_rebuild_the_docks
			num_of_civilian_factories_available_for_projects > 2
		}

		visible = {
			TAG = MXE
			owns_state = 447
			has_completed_focus = MXE_rebuild_the_docks
		}
		allowed = { TAG = MXE }

		fire_only_once = yes

		cost = 0

		days_remove = 180

		modifier = {
			civilian_factory_use = 3
		}

		remove_effect = {
			447 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = dockyard level = 1 instant_build = yes }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MXE_decision_vic_dockyard_yucatan = {

		icon = generic_construction

		available = {
			has_completed_focus = MXE_rebuild_the_docks
			num_of_civilian_factories_available_for_projects > 2
		}

		visible = {
			TAG = MXE
			owns_state = 474
			has_completed_focus = MXE_rebuild_the_docks
		}
		allowed = { TAG = MXE }

		fire_only_once = yes

		cost = 0

		days_remove = 180

		modifier = {
			civilian_factory_use = 3
		}

		remove_effect = {
			474 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = dockyard level = 1 instant_build = yes }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MXE_decision_vic_dockyard_chiapas = {

		icon = generic_construction

		available = {
			has_completed_focus = MXE_rebuild_the_docks
			num_of_civilian_factories_available_for_projects > 2
		}

		visible = {
			TAG = MXE
			owns_state = 475
			has_completed_focus = MXE_rebuild_the_docks
		}
		allowed = { TAG = MXE }

		fire_only_once = yes

		cost = 0

		days_remove = 180

		modifier = {
			civilian_factory_use = 3
		}

		remove_effect = {
			475 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = { type = dockyard level = 1 instant_build = yes }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
}

MXE_decision_category_imperial_forces = {
MXE_plateados_raids = {
		icon= generic_civil_support
		ai_will_do = { factor = 1 }
		available = {
			always = no
		}

		allowed = {
			tag = MXE
			}

		days_mission_timeout = 80

		activation = {
           OR = { has_war_with = MEC has_war_with = MEX }
		   tag = MXE
		}

		cancel_trigger = {
		    OR = { NOT = { country_exists = MEC country_exists = MEX } }
		}

		fire_only_once = no

		highlight_states = {
			state = 277
		}

		visible = {
			OR = { has_war_with = MEC has_war_with = MEX }
		    tag = MXE
		}

		is_good = yes

		timeout_effect = {
		    random_list = {
					25 = {
						MXE = { every_owned_state = { damage_building = { type = infrastructure damage = 0.01 } } }
					}
					25 = {
						MXE = { every_owned_state = { damage_building = { type = industrial_complex damage = 0.01 } } }
					}
					25 = {
						MXE = { add_stability = -0.02 }
					}
					25 = {
						MXE = { add_war_support = -0.02 }
                    }
			    }
			}

		complete_effect = {
            }
        }
MXE_decision_french_advisors = {

        icon = generic_construction

		available = {
		    tag = MXE
		    has_idea = MXE_idea_massive_french_influence
			OR = { NOT = { has_country_flag = MXE_austrian_advisors has_country_flag = MXE_belgian_advisors } }
			OR = { has_war_with = MEX has_war_with = MEC }
		}

		visible = {
		    tag = MXE
		}
		allowed = { TAG = MXE }

		fire_only_once = yes
		is_good = yes

		cost = 100

	    complete_effect = {
            set_country_flag = MXE_french_advisors
			#custom_effect_tooltip = MXE_vic_fra_advisors_tt

			# Add Charles Dupin as MHC
			#set_temp_variable = { temp_advisor_frame = 7 }
			#set_temp_variable = { temp_advisor_trait = 138 }
			#mhc_add_army_advisor = yes

			# Add Jean Danjou as MHC
			#set_temp_variable = { temp_advisor_frame = 8 }
			#set_temp_variable = { temp_advisor_trait = 1 }
			#mhc_add_army_advisor = yes
				}

		ai_will_do = {
			base = 1
		}
    }
MXE_decision_belgian_advisors = {

        icon = generic_construction

		available = {
		    tag = MXE
		    OR = { NOT = { has_country_flag = MXE_french_advisors has_country_flag = MXE_austrian_advisors } }
			OR = { has_war_with = MEX has_war_with = MEC }
		}

		visible = {
		    tag = MXE
		}
		allowed = { TAG = MXE }

		fire_only_once = yes
		is_good = yes

		cost = 100

	    complete_effect = {
            set_country_flag = MXE_belgian_advisors
			#custom_effect_tooltip = MXE_vic_bel_advisors_tt

			# Add Alfred Baron Van der Smissen as MHC
			#set_temp_variable = { temp_advisor_frame = 9 }
			#set_temp_variable = { temp_advisor_trait = 11 }
			#mhc_add_army_advisor = yes

			# Add Constant Tydgadt as MHC
			#set_temp_variable = { temp_advisor_frame = 10 }
			#set_temp_variable = { temp_advisor_trait = 35 }
			#mhc_add_army_advisor = yes
				}

		ai_will_do = {
			base = 1
		}
    }
MXE_decision_austrian_advisors = {

        icon = generic_construction

		available = {
		    tag = MXE
		    OR = { NOT = { has_country_flag = MXE_french_advisors has_country_flag = MXE_belgian_advisors } }
			OR = { has_war_with = MEX has_war_with = MEC }
		}

		visible = {
		    tag = MXE
		}
		allowed = { TAG = MXE }

		fire_only_once = yes
		is_good = yes

		cost = 100

	    complete_effect = {
            set_country_flag = MXE_austrian_advisors
			#custom_effect_tooltip = MXE_vic_aus_advisors_tt

			# Add Karl Graf Khevenhüller-Metsch as MHC
			#set_temp_variable = { temp_advisor_frame = 4 }
			#set_temp_variable = { temp_advisor_trait = 54 }
			#mhc_add_army_advisor = yes

			# Add Graf von Thun as MHC
			#set_temp_variable = { temp_advisor_frame = 5 }
			#set_temp_variable = { temp_advisor_trait = 4 }
			#mhc_add_army_advisor = yes
				}

		ai_will_do = {
			base = 1
		}
    }
}
