decision_add_aura_blocker = {
	owned_planets_only = yes
	sound = event_energy_field
	icon = decision_add_aura_blocker

	resources = {
		category = decisions
		cost = {
			food = 1000
		}
	}
	enactment_time = 360

	potential = {
		has_shroud_dlc = yes
		exists = owner
		owner = { has_country_flag = fertility_accord }
		# You need free district capacity to add the deposits
		if = {
			limit = {
				owner = {
					NOR = {
						has_covenant_with_the_composer_of_strands = yes
						has_country_flag = forging_our_own_path
					}
				}
			}
			free_district_slots > 1
		}
		count_deposits = {
			type = d_aura_blocker
			count <= value:max_shroud_vegetation
		}
	}

	effect = {
		custom_tooltip = decision_add_aura_blocker_tt
		hidden_effect = {
			while = {
				count = 2
				add_blocker = { type = d_aura_blocker }
			}
		}
	}

	ai_weight = {
		weight = 1
	}
}

decision_thought_police = {
	icon = decision_thought_police

	owned_planets_only = yes

	resources = {
		category = decisions
	}

	potential = {
		owner = {
			has_country_flag = thought_police_recruited
			check_variable = {
				which = thought_police_purchased
				value > 0
			}
			check_variable = {
				which = thought_police_established
				value < thought_police_purchased
			}
		}
		NOT = { has_modifier = thought_police_established }
	}

	effect = {
		add_modifier = {
			modifier = thought_police_established
			days = 3600
		}
		hidden_effect = {
			owner = {
				if = {
					limit = {
						check_variable = { which = thought_police_established value < 1 }
					}
					set_variable = {
						which = thought_police_established
						value = 1
					}
				}
				else = {
					change_variable = {
						which = thought_police_established
						value = 1
					}
				}
			}
		}
	}

	ai_weight = {
		weight = 1
	}
}

decision_dreamscaping = {
	icon = decision_dreamscaping

	owned_planets_only = no

	resources = {
		category = decisions
	}

	potential = {
		is_planet_class = pc_shrouded
		from = {
			check_variable = {
				which = available_dreamscaping_decisions
				value > 0
			}
		}
	}

	effect = {
		change_pc = pc_gaia
		hidden_effect = {
			clear_blockers = yes
			reroll_planet = yes
			from = {
				change_variable = {
					which = available_dreamscaping_decisions
					value = -1
				}
			}
		}
	}

	ai_weight = {
		weight = 1
	}
}

decision_divine_deposits = {
	owned_planets_only = yes
	icon = decision_surreal_visions

	potential = {
		exists = leader
		leader = { has_trait = leader_trait_disciple_of_the_instrument }
		NOT = { has_carrier_flag = has_divine_deposits }
	}

	resources = {
		category = decisions
		cost = {
			sr_zro = 150
		}
	}
	enactment_time = 900

	effect = {
		custom_tooltip = decision_divine_deposits_tt
		hidden_effect = {
			random_list = {
				1 = { add_deposit_with_message = { DEPOSIT = d_dust_caverns } }
				1 = { add_deposit_with_message = { DEPOSIT = d_dust_desert } }
				1 = { add_deposit_with_message = { DEPOSIT = d_bubbling_swamp } }
				1 = { add_deposit_with_message = { DEPOSIT = d_fuming_bog } }
				1 = { add_deposit_with_message = { DEPOSIT = d_crystalline_caverns } }
				1 = { add_deposit_with_message = { DEPOSIT = d_crystal_forest } }
				1 = { add_deposit_with_message = { DEPOSIT = d_crystal_reef } }
				1 = { add_deposit_with_message = { DEPOSIT = d_mineral_fields } }
				1 = { add_deposit_with_message = { DEPOSIT = d_mineral_striations } }
				1 = { add_deposit_with_message = { DEPOSIT = d_veiny_cliffs } }
				1 = { add_deposit_with_message = { DEPOSIT = d_prosperous_mesa } }
				1 = { add_deposit_with_message = { DEPOSIT = d_ore_rich_caverns } }
				1 = { add_deposit_with_message = { DEPOSIT = d_rich_mountain } }
				1 = { add_deposit_with_message = { DEPOSIT = d_submerged_ore_veins } }
			}
		}
		set_carrier_flag = has_divine_deposits
	}

	ai_weight = {
		weight = 1
	}
}

decision_banish = {
	icon = decision_banish

	resources = {
		category = decisions
	}

	potential = {
		is_capital = no
		habitable_planet = yes
		from = {
			check_variable = {
				which = available_banish_decisions
				value > 0
			}
		}
	}

	effect = {
		custom_tooltip = decision_banish_effects_tt
		from = {
			add_modifier = {
				modifier = shroud_surge
				years = 10
			}
		}
		hidden_effect = {
			change_pc = pc_shrouded
			clear_planet_modifiers = yes
			clear_deposits = yes
			from = {
				change_variable = {
					which = available_banish_decisions
					value = -1
				}
			}
		}
	}

	ai_weight = {
		weight = 0
	}
}
