#### UNIVERSITY
# Great Seminars .................. upgrade_great_seminars
# Wing of Diplomacy ............... upgrade_wing_of_diplomacy
# Wing of Strategy ................ upgrade_wing_of_martial
# Wing of Finance ................. upgrade_wing_of_stewardship
# Wing of Secrets ................. upgrade_wing_of_intrigue
# Wing of Learning ................ upgrade_wing_of_learning
# Guardian of Knowledge ........... upgrade_guardian_of_knowledge

#### GRAND LIBRARY
# Poetry and Drama Collection ..... upgrade_collection_drama
# Architecture Collection ......... upgrade_collection_architecture
# History Collection .............. upgrade_collection_history
# Natural Sciences Collection ..... upgrade_collection_science
# Math and Philosophy Collection .. upgrade_collection_math
# Scribe Room ..................... upgrade_scribe_room
# Keeper of the Tomes ............. upgrade_keeper_of_tomes

##########################################
############### University ###############
##########################################

upgrade_great_seminars = { # Great Seminars
	picture = GFX_upgrade_icon_written_paper

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		great_lecture_decision
		is_plural
		great_seminars
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		scholar_opinion = 5
		town_opinion = 3
		tech_growth_modifier = 0.35
	}
}


upgrade_wing_of_diplomacy = { # Wing of Diplomacy
	picture = GFX_upgrade_icon_written_paper

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		wing_of_diplomacy
		university_wing
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
		culture_techpoints = 0.05
	}

	owner_modifier = {
		diplomacy = 1
	}
}

upgrade_wing_of_martial = { # Wing of Strategy
	picture = GFX_upgrade_icon_book_red

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		wing_of_martial
		university_wing
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
		military_techpoints = 0.05
	}

	owner_modifier = {
		martial = 1
	}
}

upgrade_wing_of_stewardship = { # Wing of Finance
	picture = GFX_upgrade_icon_written_paper

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		wing_of_stewardship
		university_wing
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
		economy_techpoints = 0.05
	}

	owner_modifier = {
		stewardship = 1
	}
}

upgrade_wing_of_intrigue = { # Wing of Secrets
	picture = GFX_upgrade_icon_key

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		wing_of_intrigue
		university_wing
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
		culture_techpoints = 0.05
	}

	owner_modifier = {
		intrigue = 1
	}
}

upgrade_wing_of_learning = { # Wing of Learning
	picture = GFX_upgrade_icon_book_blue

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		wing_of_learning
		university_wing
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
		tech_growth_modifier = 0.15
	}

	owner_modifier = {
		learning = 1
	}
}

upgrade_guardian_of_knowledge = {
	picture = GFX_upgrade_icon_key

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		unlocks_minor_title
		guardian_of_knowledge
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		custom_modifier_text = guardian_of_knowledge_custom_modifier_tt
	}
}

##########################################
############## Grand Library #############
##########################################

upgrade_collection_drama = { # Poetry and Drama Collection
	picture = GFX_upgrade_icon_book_turquoise

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		poetry_and_drama
		romantic
		collection_drama
		library_collection
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		tech_growth_modifier_culture = 0.1
	}
}

upgrade_collection_architecture = { # Architecture Collection
	picture = GFX_upgrade_icon_written_paper

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		architecture
		collection_architecture
		library_collection
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		tech_growth_modifier_economy = 0.1
	}
}

upgrade_collection_history = { # History Collection
	picture = GFX_upgrade_icon_book_beige

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		history_flag
		collection_history
		library_collection
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		tech_growth_modifier_military = 0.1
	}
}

upgrade_collection_science = { # Natural Sciences Collection
	picture = GFX_upgrade_icon_book_green

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		natural_sciences
		collection_science
		library_collection
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		tech_growth_modifier_military = 0.1
	}
}

upgrade_collection_math = { # Math and Philosophy Collection
	picture = GFX_upgrade_icon_written_paper

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		math_and_philosophy
		collection_math
		library_collection
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		tech_growth_modifier_economy = 0.1
	}
}

upgrade_scribe_room = { # Scribe Room
	picture = GFX_upgrade_icon_written_paper

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		room
		is_singular
		scribe_room
	}

	build_time = 24
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		tech_growth_modifier = 0.25
		monthly_character_prestige = 0.1
	}
}

upgrade_keeper_of_tomes = {
	picture = GFX_upgrade_icon_key

	potential = {
	}

	allow = {
	}

	active = {
	}

	flags = {
		is_singular
		unlocks_minor_title
		keeper_of_tomes
	}

	build_time = 12
	gold_cost_flat = 450
	gold_cost_ticking = 1

	local_modifier = {
	}

	owner_modifier = {
		tech_growth_modifier_culture = 0.1
		custom_modifier_text = keeper_of_tomes_custom_modifier_tt
	}
}
