private static bool IsJammed(Weapon weapon)
        {
            var statistic =
                StatisticHelper.GetOrCreateStatisic <bool>(weapon.StatCollection, JammedWeaponStatisticName, false);

            return(statistic.Value <bool>());
        }
 public static void Postfix(MechComponent __instance, ref Text __result)
 {
     if (!__instance.IsFunctional)
     {
         return;
     }
     if (__instance.GetType() != typeof(Weapon))
     {
         return;
     }
     if (!StatisticHelper
         .GetOrCreateStatisic <bool>(__instance.StatCollection, JammingEnabler.JammedWeaponStatisticName, false)
         .Value <bool>())
     {
         return;
     }
     __result.Append(" (JAM)", new object[0]);
 }