namespace = GE_Deccan_Reforms_Events

country_event = {
	id = GE_Deccan_Reforms_Events.1
	title = GE_Deccan_Reforms_Events.1.T
	desc = GE_Deccan_Reforms_Events.1.D
	picture = GOOD_WITH_MONARCH_eventPicture

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			export_to_variable = {
				which = adm_value
				value = ADM
			}
			export_to_variable = {
				which = dip_value
				value = DIP
			}
			export_to_variable = {
				which = mil_value
				value = MIL
			}
			change_variable = { which = adm_value which = dip_value }
			change_variable = { which = adm_value which = mil_value }
			while = {
				limit = {
					check_variable = {
						which = adm_value
						value = 1
					}
				}
				add_government_power = {
					mechanic_type = imperial_control_mechanic
					power_type = imperial_control
					value = 1
				}
				change_variable = { which = adm_value value = -1 }
			}
			every_owned_province = {
				limit = {
					OR = {
						has_province_modifier = ge_vij_dryland
						has_province_modifier = ge_vij_woodland
						has_province_modifier = ge_vij_wetland
					}
				}
				remove_province_modifier = ge_vij_dryland
				remove_province_modifier = ge_vij_woodland
				remove_province_modifier = ge_vij_wetland
			}
		}
	}

	option = {
		name = GE_Deccan_Reforms_Events.1.OPT1
		trigger = {
			capital_scope = {
				region_for_scope_province = {
					any_province = {
						owned_by = ROOT
						has_terrain = drylands
					}
				}
			}
		}
		ai_chance = {
			factor = 33
		}

		custom_tooltip = GE_VIJ_LAND_REVENUE_DRYLAND_TT
		tooltip = {
			add_province_modifier = {
				name = ge_vij_dryland
				duration = -1
				desc = ge_land_revenue_until_new
			}
		}
		hidden_effect = {
			capital_scope = {
				region = {
					every_province = {
						limit = {
							owned_by = ROOT
							has_terrain = drylands
						}
						add_province_modifier = {
							name = ge_vij_dryland
							duration = -1
							desc = ge_land_revenue_until_new
						}
					}
				}
			}
		}
	}

	option = {
		name = GE_Deccan_Reforms_Events.1.OPT2
		trigger = {
			capital_scope = {
				region_for_scope_province = {
					any_province = {
						owned_by = ROOT
						OR = {
							has_terrain = woods
							has_terrain = jungle
						}
					}
				}
			}
		}
		ai_chance = {
			factor = 33
		}

		custom_tooltip = GE_VIJ_LAND_REVENUE_WOODLAND_TT
		tooltip = {
			add_province_modifier = {
				name = ge_vij_woodland
				duration = -1
				desc = ge_land_revenue_until_new
			}
		}
		hidden_effect = {
			capital_scope = {
				region = {
					every_province = {
						limit = {
							owned_by = ROOT
							OR = {
								has_terrain = woods
								has_terrain = jungle
							}
						}
						add_province_modifier = {
							name = ge_vij_woodland
							duration = -1
							desc = ge_land_revenue_until_new
						}
					}
				}
			}
		}
	}

	option = {
		name = GE_Deccan_Reforms_Events.1.OPT3
		trigger = {
			capital_scope = {
				region_for_scope_province = {
					any_province = {
						owned_by = ROOT
						OR = {
							has_terrain = farmlands
							has_terrain = grasslands
						}
					}
				}
			}
		}
		ai_chance = {
			factor = 33
		}

		custom_tooltip = GE_VIJ_LAND_REVENUE_WETLAND_TT
		tooltip = {
			add_province_modifier = {
				name = ge_vij_wetland
				duration = -1
				desc = ge_land_revenue_until_new
			}
		}
		hidden_effect = {
			capital_scope = {
				region = {
					every_province = {
						limit = {
							owned_by = ROOT
							OR = {
								has_terrain = farmlands
								has_terrain = grasslands
							}
						}
						add_province_modifier = {
							name = ge_vij_wetland
							duration = -1
							desc = ge_land_revenue_until_new
						}
					}
				}
			}
		}
	}
}