﻿haunted_palace = {

	asset = {
		type = pdxmesh
		name = "fp4_legendary_western_watchtower_01_a_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_building_legendary_palace.dds"

	is_enabled = {
		always = yes
	}

	cost = {
		gold = 1500
	}

	character_modifier = {
		legitimacy_gain_mult = 0.1
		enemy_hostile_scheme_success_chance_add = -10 #TODO
        dread_decay_mult = -0.2
        stress_loss_mult = -0.15
        negate_health_penalty_add = -0.25
	}

	county_modifier = {
		tax_mult = 0.15
	}

    province_modifier = {
		travel_danger = 5
        fort_level = 2
	}

	ai_value = {
		base = 100
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	on_complete = {
		root = { save_scope_as = legendary_province }
	}

	type = special

	flag = travel_point_of_interest_intrigue
}

grand_library = {

	asset = {
		type = pdxmesh
		name = "fp4_legendary_steppe_shrine_01_a_mesh"
	}

	asset = {
		type = pdxmesh
		name = "fp4_legendary_building_christian_shrine_01_mesh"
		graphical_faiths = { "catholic_gfx" }
	}

	asset = {
		type = pdxmesh
		name = "fp4_legendary_islamic_shrine_01_a_mesh"
		graphical_faiths = { "islamic_gfx" "judaism_gfx" }
	}

	asset = {
		type = pdxmesh
		name = "fp4_legendary_building_norse_shrine_01_a_mesh"
		graphical_cultures = { norse_building_gfx }
		graphical_faiths = { pagan_gfx }
	}

	asset = {
		type = pdxmesh
		name = "fp4_legendary_dharmic_shrine_01_a_mesh"
		graphical_faiths = { dharmic_gfx }
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_building_university.dds"

	is_enabled = {
		always = yes
	}

	cost = {
		gold = 1500
	}

	character_modifier = {
		learning_per_prestige_level = 1
		monthly_lifestyle_xp_gain_mult = 0.2
		cultural_head_fascination_mult = 0.05
		monthly_dynasty_prestige = 0.25
	}

	county_modifier = {
		development_growth_factor = 0.1
		development_growth = 0.1
		epidemic_resistance = 10
	}

    province_modifier = {
		monthly_income = poor_building_tax_tier_1
	}

	ai_value = {
		base = 100
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	on_complete = {
		root = { save_scope_as = legendary_province }
	}

	type = special

	flag = travel_point_of_interest_learning
}

tax_center = {

	asset = {
		type = pdxmesh
		name = "fp4_legendary_western_palace_01_a_mesh"
	}

	asset = {
		type = pdxmesh
		name = "fp4_legendary_islamic_palace_01_a_mesh"
		graphical_faiths = { "islamic_gfx" }
	}

	asset = {
		type = pdxmesh
		name = "fp4_legendary_india_palace_01_a_mesh"
		graphical_regions = { "graphical_india" }
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_building_tax_assessor.dds"

	is_enabled = {
		always = yes
	}

	cost = {
		gold = 1500
	}

	character_modifier = {
		vassal_tax_contribution_mult = 0.3
		monthly_stewardship_lifestyle_xp_gain_mult = 0.2
	}

	county_modifier = {
		development_growth_factor = 0.1
		development_growth = 0.1
		county_opinion_add = 10
		monthly_county_control_growth_factor = -0.5
	}

    province_modifier = {
		monthly_income = good_building_tax_tier_3
		tax_mult = 0.3
	}

	ai_value = {
		base = 100
		modifier = { # Fill all building slots before going for special buildings
			factor = 0
			free_building_slots > 0
		}
	}

	on_complete = {
		root = { save_scope_as = legendary_province }
	}

	type = special

	flag = travel_point_of_interest_stewardship
}