module Base
{
	template vehicle M577TrunkCompartment
	{
		part M577Trunk
		{
			category = bodywork,
			area = SeatRearRight,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
			container
			{
                capacity = 400,
				conditionAffectsCapacity = false,
				test = M577.ContainerAccess.TrunkInner,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		part TruckBed
		{
			category = nodisplay,
			area = SeatRearRight,
			itemType = nil,
			mechanicRequireKey = true,
			repairMechanic = true,
			container
			{
				conditionAffectsCapacity = false,
				test = M577.ContainerAccess.TrunkInner,
			}
			lua
			{
				create = DAMN.Create.Blank,
			}
		}

        part M577ToolboxLeft
		{
			category = bodywork,
			area = ToolboxLeft,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
			container
			{
                capacity = 15,
				conditionAffectsCapacity = false,
				test = DAMN.ContainerAccess.ToolboxLeft,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}

        part M577ToolboxRight
		{
			category = bodywork,
			area = ToolboxRight,
			itemType = damnCraft.Trunk,
			mechanicRequireKey = true,
			repairMechanic = true,
			container
			{
                capacity = 15,
				conditionAffectsCapacity = false,
				test = DAMN.ContainerAccess.ToolboxRight,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}
	}
}

