Exemple #1
0
 // change the movement stats when loading into a combat game the first time
 public static void Postfix(Mech __instance)
 {
     try
     {
         EngineMisc.InitEffectStats(__instance);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
 // hide incompatible engines
 public static void Postfix(MechLabInventoryWidget __instance, float ___mechTonnage)
 {
     try
     {
         EngineMisc.RefreshAvailability(__instance, ___mechTonnage);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
 public static void Postfix(Mech __instance)
 {
     try
     {
         EngineMisc.OverrideInitEffectStats(__instance);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }
Exemple #4
0
 // only allow one engine part per specific location
 public static void Postfix(MechLabMechInfoWidget __instance, MechLabPanel ___mechLab, MechLabHardpointElement[] ___hardpoints)
 {
     try
     {
         EngineMisc.SetJumpJetHardpointCount(__instance, ___mechLab, ___hardpoints);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }