diff --git a/source/Patches/Contract_GenerateSalvage.cs b/source/Patches/Contract_GenerateSalvage.cs index 0df6630..2d3eeff 100644 --- a/source/Patches/Contract_GenerateSalvage.cs +++ b/source/Patches/Contract_GenerateSalvage.cs @@ -44,15 +44,6 @@ public static bool GenerateSalvage(List enemyMechs, List { var mech = lostUnits[i].mech; - if (!lostUnits[i].pilot.IsIncapacitated && !mech.IsDestroyed && !mech.Inventory.Any(cref => - cref.Def != null && cref.Def.CriticalComponent && - cref.DamageLevel == ComponentDamageLevel.Destroyed)) - { - Control.LogDebug(DType.SalvageProccess, $"-- Salvaging {mech.Name}"); - Control.LogDebug(DType.SalvageProccess, "--- not destroyed - skipped"); - lostUnits[i].mechLost = false; - continue; - } if (Control.Settings.OverrideRecoveryChance) { @@ -172,17 +163,7 @@ public static bool GenerateSalvage(List enemyMechs, List Control.LogDebug(DType.SalvageProccess, $"- Enemy Mechs {__instance.Name}"); foreach (var unit in enemyMechs) { - if (unit.pilot.IsIncapacitated || unit.mech.IsDestroyed || unit.mech.Inventory.Any(cref => - cref.Def != null && cref.Def.CriticalComponent && - cref.DamageLevel == ComponentDamageLevel.Destroyed)) - { - AddMechToSalvage(unit.mech, Contract, simgame, Constants, ___finalPotentialSalvage); - } - else - { - Control.LogDebug(DType.SalvageProccess, $"-- Salvaging {unit.mech.Name}"); - Control.LogDebug(DType.SalvageProccess, "--- not destroyed - skipped"); - } + AddMechToSalvage(unit.mech, Contract, simgame, Constants, ___finalPotentialSalvage); } Control.LogDebug(DType.SalvageProccess, $"- Enemy Vechicle {__instance.Name}");