﻿# URBANISM LEGACIES

fp2_urbanism_legacy_1 = { # Flourishing Cities
	legacy = fp2_urbanism_legacy_track

	can_be_picked = { eligible_for_fp2_dynasty_legacies_trigger = yes }

	effect = {
		# Each city increases development rate of their county
		custom_description_no_bullet = { text = fp2_urbanism_legacy_1_effect }
	}


	ai_chance = {
		value = 11
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_pillar = heritage_iberian
						has_cultural_pillar = heritage_arabic
					}
				}
			}
			multiply = 10
		}
		if = {
			limit = {
				can_start_new_legacy_track_trigger = no
			}
			multiply = 0
		}
		# Start New Bloc
		if = {
			limit = { root.house = { has_house_modifier = trad_fortune } }
			add = 1000
		}
		if = {
			limit = {
				OR = {
					# root.house = { has_house_modifier = trad_fortune }
					root.house = { has_house_modifier = trad_joy }
					root.house = { has_house_modifier = trad_freedom }
				}
			}
			multiply = 20
		}
		if = {
			limit = {
				OR = {
					root.house = { has_house_modifier = trad_knowledge }
					root.house = { has_house_modifier = trad_distinction }
				}
			}
			multiply = 10
		}
		# End New Bloc
	}
}

fp2_urbanism_legacy_2 = { # Republican Teaching
	legacy = fp2_urbanism_legacy_track

	# Chance to gain an extra traits for members of the dynasty or children educated by the members of the dynasty

	effect = {
		custom_description_no_bullet = { text = fp2_urbanism_legacy_2_effect }
	}

	ai_chance = {
		value = 100
	}
}

fp2_urbanism_legacy_3 = { #Replace by > faster and cheaper city development
	legacy = fp2_urbanism_legacy_track


	character_modifier = {
		city_holding_build_speed = -0.1
		city_holding_build_gold_cost = -0.1
		city_holding_holding_build_speed = -0.1
		city_holding_holding_build_gold_cost = -0.1
	}
	effect = {
		custom_description_no_bullet = { text = fp2_urbanism_legacy_3_effect }
	}

	ai_chance = {
		value = 100
	}
}

fp2_urbanism_legacy_4 = { #Replace by > get prestige +  cool character on dev level gain
	legacy = fp2_urbanism_legacy_track

	# Gain Prestige and guest when completing a building
	effect = {
		custom_description_no_bullet = { text = fp2_urbanism_legacy_4_effect }
	}

	ai_chance = {
		value = 100
	}
}

fp2_urbanism_legacy_5 = { #Replace by ???
	legacy = fp2_urbanism_legacy_track

	effect = {
		custom_description_no_bullet = { text = fp2_urbanism_legacy_5_effect }
	}

	ai_chance = {
		value = 100
	}
}

# COTERIE LEGACIES

fp2_coterie_legacy_1 = { # Inner Circle
	legacy = fp2_coterie_legacy_track

	can_be_picked = { eligible_for_fp2_dynasty_legacies_trigger = yes }


	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_1_effect }
	}

	ai_chance = {
		value = 11
		if = {
			limit = {
				culture = {
					OR = {
						has_cultural_pillar = heritage_iberian
						has_cultural_pillar = heritage_arabic
					}
				}
			}
			multiply = 10
		}
		if = {
			limit = {
				can_start_new_legacy_track_trigger = no
			}
			multiply = 0
		}
		# Start New Bloc
		if = {
			limit = { root.house = { has_house_modifier = trad_guile } }
			add = 1000
		}
		if = {
			limit = {
				OR = {
					# root.house = { has_house_modifier = trad_guile }
					root.house = { has_house_modifier = trad_respect }
					root.house = { has_house_modifier = trad_power }
					root.house = { has_house_modifier = trad_influence }
				}
			}
			multiply = 20
		}
		if = {
			limit = {
				OR = {
					root.house = { has_house_modifier = trad_family }
				}
			}
			multiply = 10
		}
		# End New Bloc
	}
}

fp2_coterie_legacy_2 = { # House bonds
	legacy = fp2_coterie_legacy_track

	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_2_effect }
	}

	ai_chance = {
		value = 100
	}
}

fp2_coterie_legacy_3 = { # Unity
	legacy = fp2_coterie_legacy_track

	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_3_effect }
	}

	character_modifier = {
		dynasty_house_opinion = 10
	}

	ai_chance = {
		value = 100
	}
}
fp2_coterie_legacy_4 = { # Eternal Trust
	legacy = fp2_coterie_legacy_track

	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_4_effect }
	}

	ai_chance = {
		value = 100
	}
}

fp2_coterie_legacy_5 = { # Pragmatic Roots
	legacy = fp2_coterie_legacy_track

	effect = {
		custom_description_no_bullet = { text = fp2_coterie_legacy_5_effect }
	}

	ai_chance = {
		value = 100
	}
}

