Пример #1
0
 static void Postfix(Contract __instance, List <SalvageDef> ___finalPotentialSalvage)
 {
     try {
         Web.PostUnusedSalvage(___finalPotentialSalvage, __instance.Override.employerTeam.faction);
     }
     catch (Exception e) {
         Logger.LogError(e);
     }
 }
Пример #2
0
 static void Postfix(Contract __instance, List <SalvageDef> ___finalPotentialSalvage)
 {
     try {
         SimGameState simulation = __instance.BattleTechGame.Simulation;
         if (simulation.IsFactionAlly(__instance.Override.employerTeam.FactionValue, null) && Fields.canPostSalvage)
         {
             Web.PostUnusedSalvage(___finalPotentialSalvage, __instance.Override.employerTeam.FactionValue);
         }
     }
     catch (Exception e) {
         PersistentMapClient.Logger.LogError(e);
     }
 }