﻿iron_freeminers_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
		NOT = {
			has_building_or_higher = mine_tier_1
		}
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		trade_good_iron_production_add = minor_iron_output_1
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = secondary_resource_building_income_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = secondary_resource_building_income_1_tribal
	}
	on_complete = {
	}
	next_building = iron_freeminers_2
	type_icon = "resource_buildings/iron_buildings.dds"
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_new_building_modifier = yes
	}

}

iron_freeminers_2 = {

	construction_time = construction_time_9_months
	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
		NOT = {
			has_building_or_higher = mine_tier_1
		}
	}
	can_construct_showing_failures_only = {
		building_mineral_early_medieval_trigger = yes
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = { #Base increase
		trade_good_iron_production_add = minor_iron_output_2
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = secondary_resource_building_income_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = secondary_resource_building_income_2_tribal
	}
	on_complete = {
	}
	next_building = iron_freeminers_3
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

iron_freeminers_3 = {

	construction_time = construction_time_1_year
	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
		NOT = {
			has_building_or_higher = mine_tier_1
		}
	}
	can_construct_showing_failures_only = {
		building_mineral_high_medieval_trigger = yes
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = { #Base increase
		trade_good_iron_production_add = minor_iron_output_3
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = secondary_resource_building_income_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = secondary_resource_building_income_3_tribal
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

#Iron Side Buildings:

blast_furnace_1 = {

	construction_time = construction_time_6_months
	district_level_requirement = 6
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_blast_furnaces }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_6_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.2 #Increased output, Osmonds
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_1_tribal
	}
	on_complete = {
	}
	next_building = blast_furnace_2
	type_icon = "resource_buildings/blast_furnace.dds"
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_new_building_modifier = yes
	}

}

blast_furnace_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 7
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_blast_furnaces }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_7_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.4
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_2_tribal
	}
	on_complete = {
	}
	next_building = blast_furnace_3
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

blast_furnace_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 8
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_blast_furnaces }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_8_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.6
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_3_tribal
	}
	on_complete = {
	}
	next_building = blast_furnace_4
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

blast_furnace_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_blast_furnaces }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_9_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.8
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_4_tribal
	}
	on_complete = {
	}
	next_building = blast_furnace_5
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

blast_furnace_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 10
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_blast_furnaces }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_10_cost
	province_modifier = {
		trade_good_iron_production_mult = 1.0
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_5_tribal
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Alternative to blast furnace, local - available earlier

wind_furnace_1 = {

	construction_time = construction_time_6_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_wootz_steel }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_6_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.2
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_1_tribal
	}
	on_complete = {
	}
	next_building = wind_furnace_2
	type_icon = "old_buildings/wind_furnaces.dds"
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_new_building_modifier = yes
	}

}

wind_furnace_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 4
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_wootz_steel }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_7_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.4
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_2_tribal
	}
	on_complete = {
	}
	next_building = wind_furnace_3
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

wind_furnace_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 6
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_wootz_steel }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_8_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.6
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_3_tribal
	}
	on_complete = {
	}
	next_building = wind_furnace_4
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

wind_furnace_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 8
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
		culture = { has_innovation = innovation_wootz_steel }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_9_cost
	province_modifier = {
		trade_good_iron_production_mult = 0.8
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_4_tribal
	}
	on_complete = {
	}
	next_building = wind_furnace_5
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

wind_furnace_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 10
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { has_potential_for_trade_good = trade_good_type:trade_good_iron }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_expensive_tier_10_cost
	province_modifier = {
		trade_good_iron_production_mult = 1.0
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = blast_furnace_income_tier_5_tribal
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_iron }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Iron into Gold, local modifiers from tools

tool_smith_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_iron
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_copper
				value > 0
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_1_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_1_main_income_tribal
	}
	#Tools
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
				stationed_maa_toughness_mult = normal_maa_toughness_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = tool_smith_2
	type_icon = "regular_buildings/civic_projects.dds"
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals }
		ai_income_building_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

tool_smith_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_iron
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_copper
				value > 0
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_2_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_2_main_income_tribal
	}
	#Tools
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need
		can_be_filled_multiple_times = 2
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
				stationed_maa_toughness_mult = normal_maa_toughness_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = tool_smith_3
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals }
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

tool_smith_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_iron
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_copper
				value > 0
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_3_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_3_main_income_tribal
	}
	#Tools
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need
		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
				stationed_maa_toughness_mult = normal_maa_toughness_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = tool_smith_4
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals }
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

tool_smith_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_iron
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_copper
				value > 0
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_4_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_4_main_income_tribal
	}
	#Tools
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need
		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
				stationed_maa_toughness_mult = normal_maa_toughness_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = tool_smith_5
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals }
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

tool_smith_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_iron
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_copper
				value > 0
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_5_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_5_main_income_tribal
	}
	#Tools
	market_modifier = {
		trade_category_base_metals_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good_category = trade_category_base_metals
		amount = metal_resource_need
		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
				stationed_maa_toughness_mult = normal_maa_toughness_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_need_category_modifier = { CATEGORY = trade_category_base_metals }
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Iron

weapon_armor_smith_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_iron
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_1_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_1_main_income_tribal
	}
	#Weapons
	market_modifier = {
		trade_good_iron_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = weapon_armor_smith_2
	type_icon = "resource_buildings/weapon_armor_smith.dds"
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

weapon_armor_smith_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_iron
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_2_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_2_main_income_tribal
	}
	#Weapons
	market_modifier = {
		trade_good_iron_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need
		can_be_filled_multiple_times = 2
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = weapon_armor_smith_3
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

weapon_armor_smith_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_iron
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_3_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_3_main_income_tribal
	}
	#Weapons
	market_modifier = {
		trade_good_iron_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need
		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = weapon_armor_smith_4
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

weapon_armor_smith_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_iron
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_4_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_4_main_income_tribal
	}
	#Weapons
	market_modifier = {
		trade_good_iron_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need
		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = weapon_armor_smith_5
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

weapon_armor_smith_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_iron
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = resource_tier_5_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = resource_tier_5_main_income_tribal
	}
	#Weapons
	market_modifier = {
		trade_good_iron_sell_price_mult = price_metal_building_1
	}
	trade_good_need = {
		trade_good = trade_good_iron
		amount = metal_resource_need
		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				stationed_maa_damage_mult = normal_maa_damage_tier_1
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_mining_tax = resource_tier_1_main_income_tribal
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_iron }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}
