Beispiel #1
0
        public static void Prepare()
        {
            var mech = new Traverse(typeof(ChassisHandler)).Field <MechDef>("mech").Value;

            in_work = mech.IsVehicle();
            if (in_work)
            {
                empty = CustomSalvage.Control.Instance.Settings.UnEquipedMech;
                broke = CustomSalvage.Control.Instance.Settings.MechBrokeType;

                CustomSalvage.Control.Instance.Settings.MechBrokeType = BrokeType.None;
                CustomSalvage.Control.Instance.Settings.UnEquipedMech = false;
            }
        }