#####-----> Lootbox Decisions <><> <><> <><> <><> <><>

r56_decision_category_lootbox = {

	r56_decision_lootbox_acquirebox = {
		icon = generic_decision
		cost = 50

		fire_only_once = no
		fixed_random_seed = no

		ai_will_do = {
			factor = 0
		}
		allowed = {
			is_ai1 = yes
		}
		available = {
		}

		visible = {
			has_country_flag = r56_lootbox_active
		}

		complete_effect = {
			custom_effect_tooltip = r56_tooltip_lootbox_acquirebox
		}
		
		remove_effect = {
			add_to_variable = { var = r56_lootbox_amount value = 1 }
		}
	}
	
	r56_decision_lootbox_openbox = {
		icon = generic_construction
		cost = 0

		fire_only_once = no
		fixed_random_seed = no

		ai_will_do = {
			factor = 0
		}
		allowed = {
			is_ai1 = yes
		}
		available = {
			check_variable = { r56_lootbox_amount > 0 }
		}

		visible = {
			has_country_flag = r56_lootbox_active
		}

		complete_effect = {
			custom_effect_tooltip = r56_tooltip_lootbox_openbox
			hidden_effect = {
				random_list = {
					50 = {
						random_list = {
							12.5 = {
								country_event = { id = r56.lootbox.event.1 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.2 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.3 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.4 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.5 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.6 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.7 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.8 }
							}
						}
					}
					25 = {
						random_list = {
							12.5 = {
								country_event = { id = r56.lootbox.event.9 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.10 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.11 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.12 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.13 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.14 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.15 }
							}
							12.5 = {
								country_event = { id = r56.lootbox.event.16 }
							}
						}
					}
					15 = {
						random_list = {
							15 = {
								country_event = { id = r56.lootbox.event.17 }
							}
							10 = {
								country_event = { id = r56.lootbox.event.18 }
							}
							15 = {
								country_event = { id = r56.lootbox.event.19 }
							}
							15 = {
								country_event = { id = r56.lootbox.event.20 }
							}
							15 = {
								country_event = { id = r56.lootbox.event.21 }
							}
							15 = {
								country_event = { id = r56.lootbox.event.22 }
							}
							15 = {
								country_event = { id = r56.lootbox.event.23 }
							}
						}
					}
					8 = {
						random_list = {
							25 = {
								country_event = { id = r56.lootbox.event.24 }
							}
							25 = {
								country_event = { id = r56.lootbox.event.25 }
							}
							25 = {
								country_event = { id = r56.lootbox.event.26 }
							}
							25 = {
								country_event = { id = r56.lootbox.event.27 }
							}
						}
					}
					2 = {
						random_list = {
							40 = {
								country_event = { id = r56.lootbox.event.28 }
							}
							40 = {
								country_event = { id = r56.lootbox.event.29 }
							}
							20 = {
								modifier = {
									factor = 0
									any_country = {
										has_country_flag = WHY_unlock_alfie
									}
								}
								country_event = { id = r56.lootbox.event.30 }
							}
						}
					}
				}
			}
		}
		
		remove_effect = {
			subtract_from_variable = { var = r56_lootbox_amount value = 1 }
		}
	}
}

#####-----> End of File <><> <><> <><> <><> <><>