@Edict1Cost = 100
@Edict2Cost = 200
@Edict3Cost = 300

@EdictDuration = 3600

plentiful_traditions_malicious_intent = {
	length = @EdictDuration

	resources = {
		category = edicts
		cost = {
			influence = @Edict3Cost
		}
	}
	
	modifier = {
		damage_vs_country_type_fallen_empire_mult = 0.15
		damage_vs_country_type_awakened_fallen_empire_mult = 0.15
	}

	potential = {
		has_tradition = tr_plentiful_malice_finish
	}
		
	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			NOR = {
				has_ethic = ethic_authoritarian
				has_ethic = ethic_fanatic_authoritarian
			}
		}		
	}	
}

plentiful_traditions_industrial_goods = {
	length = @EdictDuration
	resources = {
		category = edicts
		cost = {
			influence = @Edict3Cost
		}
	}
	modifier = {
		planet_pops_consumer_goods_upkeep_mult = -0.2
	}
	
	potential = {
		has_tradition = tr_plentiful_industry_5
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			NOR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
				has_ethic = ethic_egalitarian
				has_ethic = ethic_fanatic_egalitarian
			}
		}		
	}	
}

plentiful_traditions_transformation_off = {
	length = 360
	resources = {
		category = edicts
		cost = {
			influence = 10
		}
	}
	
	allow = {
		NOT = { has_country_flag = transformation_on_flag_timed }
	}
	
	potential = {
		NOT = { has_country_flag = transformation_off_flag }
		has_tradition = tr_plentiful_transformation_2
	}

	effect = {
		add_resource = {
			influence = 10
		}
		set_country_flag = transformation_off_flag
		set_timed_country_flag = { flag = transformation_off_flag_timed days = 360 }
	}

	ai_weight = {
		weight = 0		
	}	
}

plentiful_traditions_transformation_on = {
	length = 360
	resources = {
		category = edicts
		cost = {
			influence = 10
		}
	}
	
	allow = {
		NOT = { has_country_flag = transformation_off_flag_timed }
	}
	
	potential = {
		has_country_flag = transformation_off_flag
		has_tradition = tr_plentiful_transformation_2
	}

	effect = {
		add_resource = {
			influence = 10
		}
		remove_country_flag = transformation_off_flag
		set_timed_country_flag = { flag = transformation_on_flag_timed days = 360 }
	}

	ai_weight = {
		weight = 0		
	}	
}