module Base
{
    template vehicle FRRadio
    {
		part Radio
		{
		    area = Engine,
		    itemType = Radio.RadioBlack;Radio.RadioRed;Radio.RadioMakeShift;Radio.HamRadio1;Radio.HamRadio2;Radio.HamRadioMakeShift,
		    specificItem = false,
			mechanicRequireKey = true,
		    table install
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                time = 100,
                professions = ,
                skills = ,
                traits = ,
                recipes = ,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.FR_VisualRadio,
            }
			
            table uninstall
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                time = 100,
                test = Vehicles.UninstallTest.FR_Default,
			    complete = Vehicles.UninstallComplete.FR_VisualDefault,
            }
			
			lua
			{
				create = Vehicles.Create.FR_VisualRadio,
				init = Vehicles.Init.FR_VisualRadio,
				update = Vehicles.Update.Radio,
			}
		}
	}
	
    template vehicle FRRadio_HAM
    {		
		part Radio
		{
		    area = Engine,
		    itemType = Radio.RadioBlack;Radio.RadioRed;Radio.RadioMakeShift;Radio.HamRadio1;Radio.HamRadio2;Radio.HamRadioMakeShift,
		    specificItem = false,
			mechanicRequireKey = true,
		    table install
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                time = 100,
                professions = ,
                skills = ,
                traits = ,
                recipes = ,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.FR_VisualRadio,
            }
			
            table uninstall
            {
                items
                {
                    1
                    {
                        type = Base.Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                time = 100,
                test = Vehicles.UninstallTest.FR_Default,
			    complete = Vehicles.UninstallComplete.FR_VisualDefault,
            }
			
			lua
			{
				create = Vehicles.Create.FR_VisualRadio_HAM,
				init = Vehicles.Init.FR_VisualRadio,
				update = Vehicles.Update.Radio,
			}
		}
	}
}

