[Thing Template=AAGERBuildingPackable]
{
	IDS = ger_motor_pool
	name = "#ger_motor_pool_Thing_name"
	editor_name = "#ger_motor_pool_Thing_editor_name"

	[BodyComponent]
	health = 750
	defense = 5

	[EconomyComponent]
	{
		[Cost]	
		money = 20

		[Production]
		oil = 1
		
		[Upkeep]
		building_limit_consumed = 1	
	}
	
	[PropertiesComponent]
	{	
		[Property]
		property_IDS = motor_pool

		[Property]
		property_IDS = economic_building	

		[Property]
		property_IDS = oil
	}
	
	[ResearchComponent]
	{
		[ResearchItem]
		{
			property_IDS = tech_goliath
			type = GLOBAL	
			research_time = 300
		
			[ResearchCost Template=CostList]
			{
				money = 50
			}
		}	
		
		[ResearchItem]
		{
			property_IDS = tech_diesel_engines
			type = GLOBAL	
			research_time = 300
		
			[ResearchCost Template=CostList]
			{
				money = 100
			}
		}	

		[ResearchItem]
		{
			property_IDS = tech_panzerfaust
			type = GLOBAL	
			research_time = 300
		
			[ResearchCost Template=CostList]
			{
				money = 25
			}
		}
		
		[ResearchItem]
		{
			property_IDS = tech_schurzen
			type = GLOBAL
			research_time = 300
		
			[ResearchCost Template=CostList]
			{
				money = 50
			}
		}

		[ResearchItem]
		{
			property_IDS = tech_heavy_tank
			type = GLOBAL	
			research_time = 300
		
			[ResearchCost Template=CostList]
			{
				money = 100
			}
		}
			
		[ResearchItem]
		{
			property_IDS = tech_tank_king_tiger
			type = GLOBAL
			research_time = 300
			
			required_properties = tech_heavy_tank
		
			[ResearchCost Template=CostList]
			{
				money = 500
			}
		}
	}

	[Size]
	{
		height = 2
		blocking_shape = SQUARE
		square_size = 8
	}

	[View]
	{
		resource_prefix = GERMotorPool/GERMotorPool
		icon = /UI/Game/BuildingButtons/IconMotorPool.png
		
		[TextureSearchPath]
		path = /Units/GER/GERTruckBedless

		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = ground_depot_dirt
			terrain_group_filter = dirt
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = ground_depot_desert
			terrain_group_filter = desert
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = ground_depot_snow
			terrain_group_filter = snow
		}
		
		[WhenSelected Template=FXC_PlaySFX]
		{
			audio_ids = motor_pool_select
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = spotlight_03
			location = spotlight_ae_01
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = door_large
			location = door_01
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = door_large
			location = door_02
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = door_large
			location = door_03
			attached = true
		}
		
		[WhenConstructed Template=FXC_CreateVFX]
		{
			vfx_ids = door_large
			location = door_04
			attached = true
		}
	}

	[WhenEnter Template=FXC_PlaySFX]
	{
		actor_state = structure_packing
		audio_ids = pack_7s_sfx
	}
	
	[WhenEnter Template=FXC_PlaySFX]
	{
		actor_state = structure_unpacking
		audio_ids = unpack_7s_sfx
	}
}
