public static bool Prefix(ChassisDef chassisDef, ref float currentValue, ref float maxValue)
 {
     try
     {
         MechStatUtils.SetStatValues(0, ref currentValue, ref maxValue);
         return(false);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
     return(true);
 }
コード例 #2
0
 public static bool Prefix(MechDef mechDef, ref float currentValue, ref float maxValue)
 {
     try
     {
         var value = OverrideStatTooltipsFeature.MeleeStat.BarValue(mechDef);
         MechStatUtils.SetStatValues(value, ref currentValue, ref maxValue);
         return(false);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
     return(true);
 }