private int GetJumpHeat()
        {
            var stat = statCollection.JumpHeat();

            stat.Create();
            MechDefStatisticModifier.ModifyStatistic(stat, mechDef);
            return(statCollection.GetJumpHeat(1));
        }
Пример #2
0
        internal static int GetJumpHeat(this StatCollection statCollection, float ratio)
        {
            var jumpMaxHeat = statCollection.JumpHeat().Get();
            var jumpHeat    = ratio * jumpMaxHeat;

            jumpHeat = Mathf.Max(jumpHeat, EngineFeature.settings.MinimJumpHeat);
            return(PrecisionUtils.RoundUpToInt(jumpHeat));
        }