# Do not change tags in here without changing every other reference to them.
# If adding new buildings, make sure they are uniquely named.
#
# Order in here matters for selection priority if icons are overlapping,
# so leave bases on top

# 
# cost = x #==> cost in ic to build (subject to other modifiers)
# time = x #==> number of days to build.
#


############# LATE GAME FACTORIES

aeroplane_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	max_level = 99
	cost = 0
	goods_cost =
	{
		machine_parts = 20
		electric_gear = 60
		steel = 60
		cement = 60
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = aeroplane_factory
	pop_build_factory = yes
}

barrel_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		electric_gear = 50
		steel = 50
		cement = 50
	}

	time = 730
	visibility = yes
	onmap = no

	production_type = barrel_factory
	pop_build_factory = yes
}

automobile_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		electric_gear = 20
		steel = 40
		cement = 40	
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = automobile_factory
	pop_build_factory = yes
}

radio_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		electric_gear = 20
		steel = 20
		cement = 20	
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = radio_factory
	pop_build_factory = yes
}

telephone_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		electric_gear = 20
		steel = 20
		cement = 20	
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = telephone_factory
	pop_build_factory = yes
}

############# STRATEGIC FACTORIES

electric_gear_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 30
		steel = 20
		cement = 210
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = electric_gear_factory
	pop_build_factory = yes
}

machine_parts_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		iron = 20
		cement = 20	
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = machine_parts_factory
	pop_build_factory = yes
}

synthetic_oil_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 30
		steel = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = synthetic_oil_factory
	pop_build_factory = yes
}

############# ADVANCED FACTORIES

fuel_refinery = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		steel = 20
		cement = 20
	}
	time = 365
	visibility = yes
	onmap = no

	production_type = fuel_refinery
	pop_build_factory = yes
}

steamer_shipyard = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 40
		steel = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = steamer_shipyard
	pop_build_factory = yes
}

############# LUXURY GOODS FACTORIES

luxury_clothes_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = luxury_clothes_factory
	pop_build_factory = yes
}

luxury_furniture_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = luxury_furniture_factory
	pop_build_factory = yes
}

############# MEDIUM FACTORIES

steel_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		iron = 20
		coal = 20
	}
	time = 365
	visibility = yes
	onmap = no
	
	production_type = steel_factory
	pop_build_factory = yes
}

artillery_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = artillery_factory
	pop_build_factory = yes
}

clipper_shipyard = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = clipper_shipyard
	pop_build_factory = yes
}

small_arms_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 14
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = small_arms_factory
	pop_build_factory = yes
}

############# COMMON FACTORIES

furniture_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 14
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = furniture_factory
	pop_build_factory = yes
}

paper_mill = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 14
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no
	
	production_type = paper_mill
	pop_build_factory = yes
}

regular_clothes_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 14
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = regular_clothes_factory
	pop_build_factory = yes
}

explosives_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 14
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = explosives_factory
	pop_build_factory = yes
}

############# CHEAP FACTORIES

ammunition_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 10
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = ammunition_factory
	pop_build_factory = yes
}

canned_food_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 8
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	production_type = canned_food_factory
	pop_build_factory = yes
}

dye_factory = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 8
		iron = 20
		cement = 20
	}
	time = 365
	visibility = yes
	onmap = no

	production_type = dye_factory
	pop_build_factory = yes
}

liquor_distillery = {
	type = factory

	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 8
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no
	
	default_enabled = yes	
	production_type = liquor_distillery
	pop_build_factory = yes
}

winery = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 8
		iron = 20
		cement = 20
	}
	time = 730
	visibility = yes
	onmap = no

	default_enabled = yes	
	production_type = winery
	pop_build_factory = yes
}

############# BASIC FACTORIES

lumber_mill = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 2
		iron = 20
		cement = 20
	}
	time = 365
	visibility = yes
	onmap = no

	production_type = lumber_mill
	pop_build_factory = yes
}

fabric_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 2
		iron = 20
		cement = 20
	}
	time = 365
	visibility = yes
	onmap = no

	production_type = fabric_factory
	pop_build_factory = yes
}

cement_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 2
		iron = 20
		timber = 20
	}
	time = 365
	visibility = yes
	onmap = no

	production_type = cement_factory
	pop_build_factory = yes
}

glass_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 4
		iron = 20
		cement = 20
	}
	time = 365
	visibility = yes
	onmap = no
	
	default_enabled = yes	
	production_type = glass_factory
	pop_build_factory = yes
}

fertilizer_factory = {
	type = factory
	on_completion = factory
	completion_size = 0.2
	cost = 0
	max_level = 99
	goods_cost =
	{
		machine_parts = 20
		iron = 20
		cement = 20
	}
	time = 365
	visibility = yes
	onmap = no

	production_type = fertilizer_factory
	pop_build_factory = yes
}

fort = {      
	type = fort

	cost = 0
	goods_cost =
	{
		lumber = 10 
		cement = 10 
		explosives = 5 
		small_arms = 5
		artillery = 4
	}
	time = 1080 
	visibility = yes
	onmap = yes
	max_level = 6
	province = yes
	fort_level = 1
}

naval_base = {    
	type = naval_base
  
	cost = 0
	goods_cost =
	{
		timber = 5
		lumber = 5
		cement = 10
		steel = 10
		machine_parts = 0.1
	}
	time = 1080
	naval_capacity = 1
	capital = yes
	onmap = yes
	port = yes
	visibility = yes
	max_level = 6
	province = yes
	
	colonial_range = 50
	local_ship_build = -0.10
}
       
railroad = {   
	type = infrastructure
    
	cost = 0
	goods_cost =
	{
		timber = 10	
		cement = 10
		steel = 10
	}
	time = 720
	visibility = yes
	onmap = yes
	max_level = 6
	province = yes
	
	infrastructure = 0.16
	
	pop_build_factory = yes
	spawn_railway_track = yes
}
