private static float AdditionalHeatSinkDissipation(MechDef mechDef)
        {
            var engineHeatSinkDissipation = EngineHeat.GetEngineHeatDissipation(mechDef.Inventory);

            //Control.mod.Logger.LogDebug("engineHeatSinkDissipation=" + engineHeatSinkDissipation);
            return(engineHeatSinkDissipation);
        }
Ejemplo n.º 2
0
 // get heat dissipation rate of the engine by inventory and rating
 public static void Postfix(Mech __instance, ref float __result)
 {
     try
     {
         __result += EngineHeat.GetEngineHeatDissipation(__instance.MechDef.Inventory);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }