namespace = plentiful_traditions_faith

event = {
	id = plentiful_traditions_faith.1
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		owner = {
			has_tradition = tr_plentiful_faith_4
		}
		NOR = {
			has_planet_flag = plentiful_faith_1
			has_carrier_flag = plentiful_faith_1
		}
		OR = {
			has_building = building_holotemple
			has_building = building_system_conflux
		}
	}
	
	immediate = {
		owner = {
			add_monthly_resource_mult = {
				resource = unity
				value = 2
				min = 10
			}
		}
		set_planet_flag = plentiful_faith_1
		set_carrier_flag = plentiful_faith_1
	}
}

event = {
	id = plentiful_traditions_faith.2
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		owner = {
			has_tradition = tr_plentiful_faith_adopt
		}
	}
	
	immediate = {
		add_modifier = {
			modifier = modifier_plentiful_traditions_piety
			days = 3600
		}
	}
}