#########################################################################
# NEW OILFIELDS EVENTS
#########################################################################

##### ブルガン油田＠クウェート　最大生産量300
event = {
	id = 90100
	random = no

	trigger = {
		control = { province = 1822 data = -1 }
		}

	name = "EVT_90100_NAME"
	desc = "EVT_90100_DESC"
	picture = "oil_supply"
	style = 0
	
	date = { day = 1 month = janualy year = 1939 }
	offset = 15

	action_a = {
		ai_chance = 90
		name = "EVT_90100_ACT1" 
		command = { type = money value = -100 }
		command = { type = metalpool value = -5 }
		command = { type = manpowerpool value = -1 }
		command = { type = trigger which = 90101 }
		}
	action_b = {
		ai_chance = 10
		name = "EVT_90100_ACT2" 
		command = { type = sleepevent which = 90101 }
		command = { type = sleepevent which = 90102 }
		}
	}

event = {
	id = 90101
	random = no

	name = "EVT_90101_NAME"
	desc = "EVT_90101_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1822 value = 45 where = oil }
		command = { type = add_prov_resource which = 1822 value = 3 where = energy }
		command = { type = setflag which = kwaitoil_lev1 }
	}
}


#開発2段階
event = {
	id = 90102
	random = no

	trigger = {
		control = { province = 1822 data = -1 }
		OR = {
			event = 90101
			flag = kwaitoil_lev1
			}
		}

	name = "EVT_90102_NAME"
	desc = "EVT_90102_DESC"
	picture = "oil_supply"
	style = 0

	date = { day = 1 month = janualy year = 1941 }
	offset = 15

	action_a = {
		name = "EVT_90102_ACT1" 
		ai_chance = 90
		command = { type = money value = -200 }
		command = { type = metalpool value = -10 }
		command = { type = manpowerpool value = -2 }
		command = { type = trigger which = 90103 }
		}
	action_b = {
		name = "EVT_90102_ACT2" 
		ai_chance = 10
		command = { type = sleepevent which = 90103 }
		command = { type = sleepevent which = 90104 }
		}
	}

event = {
	id = 90103
	random = no

	name = "EVT_90101_NAME"
	desc = "EVT_90101_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1822 value = 60 where = oil }
		command = { type = add_prov_resource which = 1822 value = 2 where = energy }
		command = { type = setflag which = kwaitoil_lev2 }
		command = { type = clrflag which = kwaitoil_lev1 }
	}
}

#開発3段階
event = {
	id = 90104
	random = no

	trigger = {
		control = { province = 1822 data = -1 }
		OR = {
			event = 90103
			flag = kwaitoil_lev2
			}
		}

	name = "EVT_90104_NAME"
	desc = "EVT_90104_DESC"
	picture = "oil_supply"
	style = 0

	date = { day = 1 month = janualy year = 1944 }
	offset = 15

	action_a = {
		name = "EVT_90102_ACT1" 
		ai_chance = 90
		command = { type = money value = -500 }
		command = { type = metalpool value = -15 }
		command = { type = manpowerpool value = -5 }
		command = { type = trigger which = 90105 }
		}
	action_b = {
		name = "EVT_90102_ACT2" 
		ai_chance = 10
		command = { type = sleepevent which = 90105 }
		command = { type = sleepevent which = 90106 }
		}
	}
event = {
	id = 90105
	random = no

	name = "EVT_90101_NAME"
	desc = "EVT_90101_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1822 value = 100 where = oil }
		command = { type = add_prov_resource which = 1822 value = 10 where = energy }
		command = { type = setflag which = kwaitoil_lev3 }
		command = { type = clrflag which = kwaitoil_lev2 }
	}
}

#開発4段階
event = {
	id = 90106
	random = no

	trigger = {
		control = { province = 1822 data = -1 }
		OR = {
			event = 90105
			flag = kwaitoil_lev3
			}
		}

	name = "EVT_90106_NAME"
	desc = "EVT_90106_DESC"
	picture = "oil_supply"
	style = 0

	date = { day = 1 month = june year = 1946 }
	offset = 15

	action_a = {
		name = "EVT_90102_ACT1" 
		ai_chance = 90
		command = { type = money value = -1000 }
		command = { type = metalpool value = -20 }
		command = { type = manpowerpool value = -10 }
		command = { type = trigger which = 90107 }
		}
	action_b = {
		name = "EVT_90102_ACT2" 
		ai_chance = 90
		command = { type = sleepevent which = 90107 }
		}
	}
event = {
	id = 90107
	random = no

	name = "EVT_90101_NAME"
	desc = "EVT_90101_DESC"
	picture = "factory"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1822 value = 160 where = oil }
		command = { type = add_prov_resource which = 1822 value = 15 where = energy }
		command = { type = setflag which = kwaitoil_lev4 }
		command = { type = clrflag which = kwaitoil_lev3 }
	}
}

#油田放火事件
event = {
	id = 90108
	random = yes

	trigger = {
		atwar = yes
		control = { province = 1822 data = -1 }
		OR = {
			flag = kwaitoil_lev4
			flag = kwaitoil_lev3
			flag = kwaitoil_lev2
			flag = kwaitoil_lev1
			}
		}

	name = "EVT_90108_NAME"
	desc = "EVT_90108_DESC"
	picture = "war"
	style = 0

	date = { day = 1 month = june year = 1946 }
	offset = 15

	action_a = {
		name = "EVT_90108_ACT1" 
		command = { type = add_prov_resource which = 1822 value = -100 where = oil }
		command = { type = setflag which = kwaitoil_dest }
		command = { type = sleepevent which = 90108 }
		}
	}
event = {
	id = 90109
	random = 25

	trigger = {
		atwar = yes
		control = { province = 1822 data = -1 }
		flag = kwaitoil_dest
		}

	name = "EVT_90109_NAME"
	desc = "EVT_90109_DESC"
	picture = "oil_supply"q
	style = 0

	date = { day = 1 month = june year = 1946 }
	offset = 15

	action_a = {
		name = "OK" 
		command = { type = add_prov_resource which = 1822 value = 100 where = oil }
		command = { type = clrflag which = kwaitoil_dest }
		}
	}

##### ガワール油田＠サウジ　最大生産量500
event = {
	id = 90110
	random = no

	date = { day = 1 month = janualy year = 1949 }
	offset = 15

	trigger = {
		control = { province = 1807 data = -1 }
		}

	name = "EVT_90110_NAME"
	desc = "EVT_90110_DESC"
	picture = "oil_supply"
	style = 0


	action_a = {
		name = "EVT_90100_ACT1" 
		ai_chance = 90
		command = { type = money value = -100 }
		command = { type = metalpool value = -5 }
		command = { type = manpowerpool value = -1 }
		command = { type = trigger which = 90111 }
		}
	action_b = {
		name = "EVT_90100_ACT2" 
		ai_chance = 10
		command = { type = sleepevent which = 90111 }
		command = { type = sleepevent which = 90112 }
		}
	}
event = {
	id = 90111
	random = no

	name = "EVT_90111_NAME"
	desc = "EVT_90111_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1807 value = 80 where = oil }
		command = { type = add_prov_resource which = 1807 value = 5 where = energy }
	}
}
event = {
	id = 90112
	random = no

	trigger = {
		control = { province = 1807 data = -1 }
		event = 90110
		}

	name = "EVT_90112_NAME"
	desc = "EVT_90112_DESC"
	picture = "oil_supply"
	style = 0

	date = { day = 1 month = janualy year = 1951 }
	offset = 15

	action_a = {
		name = "EVT_90102_ACT1" 
		ai_chance = 90
		command = { type = money value = -1200 }
		command = { type = metalpool value = -12 }
		command = { type = manpowerpool value = -12 }
		command = { type = trigger which = 90113 }
		}
	action_b = {
		name = "EVT_90102_ACT2" 
		ai_chance = 10
		command = { type = sleepevent which = 90113 }
		}
	}
event = {
	id = 90113
	random = no

	name = "EVT_90113_NAME"
	desc = "EVT_90113_DESC"
	picture = "oil_supply"

	style = 0
	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1807 value = 500 where = oil }
		command = { type = add_prov_resource which = 1807 value = 35 where = energy }
	}
}

##### ハシメサウド油田＠アルジェリア　最大生産量180
event = {
	id = 90114
	random = no

	date = { day = 1 month = janualy year = 1956 }
	offset = 15

	trigger = {
		control = { province = 1013 data = -1 }
		}

	name = "EVT_90114_NAME"
	desc = "EVT_90114_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "EVT_90100_ACT1" 
		command = { type = money value = -100 }
		command = { type = metalpool value = -5 }
		command = { type = manpowerpool value = -1 }
		command = { type = trigger which = 90115 }
		}
	action_b = {
		name = "EVT_90100_ACT2" 
		command = { type = sleepevent which = 90115 }
		command = { type = sleepevent which = 90116 }
		}
	}
event = {
	id = 90115
	random = no

	name = "EVT_90115_NAME"
	desc = "EVT_90115_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1013 value = 50 where = oil }
		command = { type = add_prov_resource which = 1013 value = 5 where = energy }
	}
}
event = {
	id = 90116
	random = no

	trigger = {
		control = { province = 1013 data = -1 }
		event = 90115
		}

	name = "EVT_90116_NAME"
	desc = "EVT_90116_DESC"
	picture = "oil_supply"
	style = 0

	date = { day = 1 month = janualy year = 1958 }
	offset = 15

	action_a = {
		name = "EVT_90102_ACT1" 
		command = { type = money value = -1200 }
		command = { type = metalpool value = -12 }
		command = { type = manpowerpool value = -12 }
		command = { type = trigger which = 90117 }
		}
	action_b = {
		name = "EVT_90102_ACT2" 
		command = { type = sleepevent which = 90117 }
		}
	}
event = {
	id = 90117
	random = no

	name = "EVT_90117_NAME"
	desc = "EVT_90117_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 1013 value = 130 where = oil }
		command = { type = add_prov_resource which = 1013 value = 13 where = energy }
	}
}

##### ニジェールデルタ＠ナイジェリア　最大生産量250
event = {
	id = 90118
	random = no

	date = { day = 1 month = janualy year = 1956 }
	offset = 15

	trigger = {
		control = { province = 1013 data = -1 }
		}

	name = "EVT_90118_NAME"
	desc = "EVT_90118_DESC"
	picture = "oil_supply"
 	style = 0


	action_a = {
		name = "EVT_90100_ACT1" 
		command = { type = money value = -100 }
		command = { type = metalpool value = -5 }
		command = { type = manpowerpool value = -1 }
		command = { type = trigger which = 90119 }
		}
	action_b = {
		name = "EVT_90100_ACT2" 
		command = { type = sleepevent which = 90119 }
		command = { type = sleepevent which = 90120 }
		}
	}
event = {
	id = 90119
	random = no

	name = "EVT_90119_NAME"
	desc = "EVT_90119_DESC"
	picture = "oil_supply"
	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 926 value = 10 where = oil }
		command = { type = add_prov_resource which = 926 value = 1 where = energy }
		command = { type = add_prov_resource which = 927 value = 12 where = oil }
		command = { type = add_prov_resource which = 927 value = 1 where = energy }
		command = { type = add_prov_resource which = 922 value = 18 where = oil }
		command = { type = add_prov_resource which = 922 value = 2 where = energy }
		command = { type = add_prov_resource which = 918 value = 32 where = oil }
		command = { type = add_prov_resource which = 918 value = 3 where = energy }
		command = { type = add_prov_resource which = 917 value = 8 where = oil }
		command = { type = add_prov_resource which = 917 value = 1 where = energy }
	}
}
event = {
	id = 90120
	random = no

	trigger = {
		control = { province = 1013 data = -1 }
		event = 90119
		}

	name = "EVT_2500310_NAME"
	desc = "EVT_2500310_DESC"
	picture = "oil_supply"
	style = 0

	date = { day = 1 month = janualy year = 1958 }
	offset = 15

	action_a = {
		name = "EVT_90102_ACT1" 
		command = { type = money value = -1200 }
		command = { type = metalpool value = -12 }
		command = { type = manpowerpool value = -12 }
		command = { type = trigger which = 90121 }
		}
	action_b = {
		name = "EVT_90102_ACT2" 
		command = { type = sleepevent which = 90121 }
		}
	}
event = {
	id = 90121
	random = no

	name = "EVT_90121_NAME"
	desc = "EVT_90121_DESC"
	picture = "oil_supply"
 	style = 0

	action_a = {
		name = "OK"
		command = { type = add_prov_resource which = 926 value = 20 where = oil }
		command = { type = add_prov_resource which = 926 value = 1 where = energy }
		command = { type = add_prov_resource which = 927 value = 30 where = oil }
		command = { type = add_prov_resource which = 927 value = 1 where = energy }
		command = { type = add_prov_resource which = 922 value = 40 where = oil }
		command = { type = add_prov_resource which = 922 value = 2 where = energy }
		command = { type = add_prov_resource which = 918 value = 70 where = oil }
		command = { type = add_prov_resource which = 918 value = 3 where = energy }
		command = { type = add_prov_resource which = 917 value = 10 where = oil }
		command = { type = add_prov_resource which = 917 value = 1 where = energy }
	}
}

