tr_archivism_adopt = {
	possible = {
	OR = {
		has_origin = origin_shoulders_of_giants 
		has_origin = origin_remnants
		has_origin = origin_riftworld
		has_origin = origin_endbringers
		has_origin = origin_cosmic_dawn
		has_origin = origin_unplugged
		has_technology = tech_galactic_archivism
		}
	}
	unlocks_agenda = agenda_astute_observation
	unlocks_agenda = agenda_astute_observation_g
	unlocks_agenda = agenda_astute_observation_gw
	modifier = {
		country_exhibit_unlocking_cost_mult = -0.5
		megastructures_grand_archive_cost_mult = -0.5
		ship_anomaly_generation_chance_mult = 0.15
	}
}

tr_archivism_finish = {
	custom_tooltip_with_modifiers = tr_archivism_finish_tt
	modifier = {
		specimens_produces_mult = 0.35
		find_arc_site_on_survey_chance_mult = 0.35
		ascension_perks_add = 1
	}

	on_enabled = {
		hidden_effect = {
			country_event = {
				id = grand_archive.4200
			}
		}
		if = {
			limit = {
				NOT = {
					has_technology = tech_galactic_archivism
				}
			}
			give_technology = { tech = tech_galactic_archivism message = yes }
		}
	}
}

tr_archivism_xeno_paleontology = {
	modifier = {
		ship_archaeological_site_excavation_speed_mult = 0.35
		planet_jobs_minor_artifacts_produces_mult = 0.35
		scientist_exp_gain = 0.35
	}

	ai_weight = {
		factor = 1000
	}
}

tr_archivism_expert_negociation = {
	modifier = {
		country_specimen_selling_cost_mult = 2.5
		country_trade_fee = -0.05
		planet_entertainers_trade_produces_add = 0.5
	}
	custom_tooltip_with_modifiers = tr_archivism_expert_negociation_tt

	on_enabled = {
		hidden_effect = {
			country_event = {
				id = grand_archive.4210
			}
		}
	}

	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_expert_negociation_homicidal
		trigger = {
			is_homicidal = yes
			is_gestalt = no
			is_wilderness_empire = no
		}
		modifier = {
			planet_entertainers_trade_produces_add = 1
		}
		custom_tooltip_with_modifiers = tr_archivism_expert_negociation_homicidal_tt

		on_enabled = {
			hidden_effect = {
				country_event = {
					id = grand_archive.4210
				}
			}
		}

		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_flawless_display
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = no
			is_homicidal = no
		}
		custom_tooltip_with_modifiers = tr_archivism_expert_negociation_tt

		modifier = {
			country_specimen_selling_cost_mult = 2.5
			country_trade_fee = -0.05
			planet_maintenance_drones_trade_produces_add = 0.25
		}

		on_enabled = {
			hidden_effect = {
				country_event = {
					id = grand_archive.4210
				}
			}
		}

		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_flawless_display
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = no
			is_homicidal = yes
		}
		custom_tooltip_with_modifiers = tr_archivism_expert_negociation_homicidal_tt

		modifier = {
			planet_maintenance_drones_trade_produces_add = 0.5
		}

		on_enabled = {
			hidden_effect = {
				country_event = {
					id = grand_archive.4210
				}
			}
		}

		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_flawless_display
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = yes
			is_homicidal = no
		}
		custom_tooltip_with_modifiers = tr_archivism_expert_negociation_tt

		modifier = {
			country_specimen_selling_cost_mult = 2.5
			country_trade_fee = -0.05
			planet_jobs_trade_produces_mult = 0.05
		}

		on_enabled = {
			hidden_effect = {
				country_event = {
					id = grand_archive.4210
				}
			}
		}

		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_flawless_display
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = yes
			is_homicidal = yes
		}
		custom_tooltip_with_modifiers = tr_archivism_expert_negociation_homicidal_tt

		modifier = {
			country_specimen_selling_cost_mult = 2.5
			country_trade_fee = -0.05
			planet_jobs_trade_produces_mult = 0.1
		}

		on_enabled = {
			hidden_effect = {
				country_event = {
					id = grand_archive.4210
				}
			}
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 1000
	}
}

tr_archivism_frontier_archaeology = {
	possible = {
		has_tradition = tr_archivism_xeno_paleontology
	}

	custom_tooltip_with_modifiers = tr_archivism_frontier_archaeology_tt
	modifier = {
		ship_science_speed_mult = 0.5
		deposit_increase_on_survey_chance_mult = 0.5
		ship_archaeological_site_clues_add = 1
	}

	on_enabled = {
		hidden_effect = {
			artifact_analysis_give_xeno_geology_specimen = { ORIGIN = tr_archivism_frontier_archaeology }
		}
	}

	tradition_swap = {
		inherit_name = yes
		inherit_effects = no
		inherit_icon = yes
		trigger = {
			is_nomadic = yes
		}
		custom_tooltip_with_modifiers = tr_archivism_frontier_archaeology_nomads_tt
		modifier = {
			ship_science_speed_mult = 0.5
			deposit_increase_on_survey_chance_mult = 0.5
			ship_archaeological_site_clues_add = 1
		}

		on_enabled = {
			hidden_effect = {
				artifact_analysis_give_xeno_geology_specimen = { ORIGIN = tr_archivism_frontier_archaeology }
			}
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}

tr_archivism_flawless_display = {
	custom_tooltip = tr_archivism_flawless_display_bt_tt
	possible = {
		has_tradition = tr_archivism_expert_negociation
	}

	modifier = {
		planet_entertainers_unity_produces_add = 0.5
	}

	on_enabled = {
		artifact_analysis_give_aesthetic_wonders_specimen = { ORIGIN = tr_archivism_flawless_display }
		hidden_effect = {
			country_event = {
				id = grand_archive.4220
			}
		}
	}
	
	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_flawless_display
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = no
		}
		custom_tooltip = tr_archivism_flawless_display_btg_tt

		modifier = {
			planet_maintenance_drones_unity_produces_add = 0.25
		}

		on_enabled = {
			artifact_analysis_give_aesthetic_wonders_specimen = { ORIGIN = tr_archivism_flawless_display }
			hidden_effect = {
				country_event = {
					id = grand_archive.4220
				}
			}
		}

		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_flawless_display
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = yes
		}
		custom_tooltip = tr_archivism_flawless_display_btgw_tt

		modifier = {
			planet_jobs_unity_produces_mult = 0.05
		}

		on_enabled = {
			artifact_analysis_give_aesthetic_wonders_specimen = { ORIGIN = tr_archivism_flawless_display }
			hidden_effect = {
				country_event = {
					id = grand_archive.4220
				}
			}
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}

tr_archivism_exhibition_specialization = {
	custom_tooltip = tr_archivism_exhibition_specialization_bt_tt
	possible = {
		has_tradition = tr_archivism_expert_negociation
	}

	modifier = {
		planet_entertainers_society_research_produces_add = 0.5
		country_specimen_storage_cooldown_mult = -0.25
	}

	on_enabled = {
		artifact_analysis_give_historical_items_specimen = { ORIGIN = tr_archivism_exhibition_specialization }
	}

	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_exhibition_specialization
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = no
		}
		custom_tooltip = tr_archivism_exhibition_specialization_btg_tt

		modifier = {
			planet_maintenance_drones_society_research_produces_add = 0.25
			country_specimen_storage_cooldown_mult = -0.25
		}

		on_enabled = {
			artifact_analysis_give_historical_items_specimen = { ORIGIN = tr_archivism_exhibition_specialization }
		}

		weight = {
			factor = 1
		}
	}
	
	tradition_swap = {
		inherit_icon = yes
		name = tr_archivism_flawless_display
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = yes
		}
		custom_tooltip = tr_archivism_flawless_display_btgw_tt

		modifier = {
			planet_jobs_society_research_produces_mult = 0.05
			country_specimen_storage_cooldown_mult = -0.25
		}

		on_enabled = {
			artifact_analysis_give_historical_items_specimen = { ORIGIN = tr_archivism_exhibition_specialization }
		}

		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 5000
	}
}
