module Base
{

    model 73fordFalconWindshield
    {
        mesh = vehicles/Vehicles_73fordFalcon_Body|falcon_windshield_front,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

    model 73fordFalconWindshieldRear
    {
        mesh = vehicles/Vehicles_73fordFalcon_Body|falcon_windshield_rear,
        shader = damn_vehicle_shader,
        scale = 0.1,
    }

	template vehicle FLC73Windshield
	{
        part Windshield
        {
            model windshieldFront
            {
                file = 73fordFalconWindshield,
            }
            window
            {
                openable = false,
            }
                
            itemType = Base.73fordFalconWindshield,
            area = Engine,
            category = bodywork,
            mechanicRequireKey = false,
            durability = 2,
            table install
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
			            equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Advanced Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
						equip = primary,
                    }
                }
                    time = 700,
                    skills = Mechanics:5,
                    recipes = Advanced Mechanics,
                    requireUninstalled = DAMNWindshieldArmor,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
    }

    template vehicle FLC73WindshieldRear
	{
        part WindshieldRear
        {
            model windshieldRear
            {
                file = 73fordFalconWindshieldRear,
            }

                
            itemType = Base.73fordFalconRearWindshield,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = false,
            durability = 2,
            table install
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Intermediate Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                    time = 700,
                    skills = Mechanics:5,
                    requireUninstalled = DAMNWindshieldRearArmor,
                    recipes = Intermediate Mechanics,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = Vehicles.Create.Default,
            }
        }
    }

    template vehicle FLC73WindshieldRearPS
	{
        part WindshieldRear
        {
            model windshieldRear
            {
                file = 73fordFalconWindshieldRear,
            }

                
            itemType = Base.73fordFalconRearWindshield,
            area = TruckBed,
            category = bodywork,
            mechanicRequireKey = false,
            durability = 2,
            table install
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                time = 700,
                skills = Mechanics:5,
                recipes = Intermediate Mechanics,
                test = Vehicles.InstallTest.Default,
                complete = Vehicles.InstallComplete.Window,
                requireUninstalled = FLC73Storage,
            }
            table uninstall
            {
                items
                {
                    1
                    {
                        tags = Screwdriver,
                        count = 1,
                        keep = true,
                        equip = primary,
                    }
                }
                    time = 700,
                    skills = Mechanics:5,
                    requireUninstalled = DAMNWindshieldRearArmor,
                    recipes = Intermediate Mechanics,
                    test = Vehicles.UninstallTest.Default,
            }
            lua
            {
                create = DAMN.Create.Blank,
            }
        }
    }

}
