コード例 #1
0
        private int GetOverheat()
        {
            var stat = statCollection.OverheatLevel();

            stat.Create();
            return(MechDefStatisticModifier.ModifyStatistic(stat, mechDef));
        }
コード例 #2
0
        private int GetHeatSinkCapacity()
        {
            var stat = statCollection.HeatSinkCapacity();

            stat.Create();
            return(MechDefStatisticModifier.ModifyStatistic(stat, mechDef));
        }
コード例 #3
0
        private float GetJumpJetMaxCountMultiplier()
        {
            var stat = statCollection.JumpJetCountMultiplier();

            stat.Create();
            return(MechDefStatisticModifier.ModifyStatistic(stat, mechDef));
        }
コード例 #4
0
        private int GetMaxHeat()
        {
            var stat = statCollection.MaxHeat();

            stat.Create();
            return(MechDefStatisticModifier.ModifyStatistic(stat, mechDef));
        }
コード例 #5
0
        private float GetWeaponHeatMultiplier()
        {
            var stat = statCollection.WeaponHeatMultiplier();

            stat.Create();
            return(MechDefStatisticModifier.ModifyStatistic(stat, mechDef));
        }
コード例 #6
0
        private float GetRunSpeed()
        {
            var stat = statCollection.RunSpeed();

            stat.CreateWithDefault(movement.RunSpeed);
            return(MechDefStatisticModifier.ModifyStatistic(stat, mechDef));
        }
コード例 #7
0
        private float GetJumpCapacity()
        {
            var stat = statCollection.JumpCapacity();

            stat.Create();
            return(MechDefStatisticModifier.ModifyStatistic(stat, mechDef));
        }
コード例 #8
0
            private float GetAccuracyModifier(float baseValue)
            {
                var stat = statCollection.AccuracyModifier(baseValue);

                stat.Create();
                return(MechDefStatisticModifier.ModifyWeaponStatistic(stat, mechDef, weaponDef));
            }
コード例 #9
0
            private float GetInstability(float baseValue)
            {
                var stat = statCollection.Instability(baseValue);

                stat.Create();
                return(MechDefStatisticModifier.ModifyWeaponStatistic(stat, mechDef, weaponDef));
            }
コード例 #10
0
            private float GetStructureDamage(float baseValue)
            {
                var stat = statCollection.StructureDamagePerShot(baseValue);

                stat.Create();
                return(MechDefStatisticModifier.ModifyWeaponStatistic(stat, mechDef, weaponDef));
            }
コード例 #11
0
            private float GetShotsWhenFired(int baseValue)
            {
                var stat = statCollection.ShotsWhenFired(baseValue);

                stat.Create();
                return(MechDefStatisticModifier.ModifyWeaponStatistic(stat, mechDef, weaponDef));
            }
コード例 #12
0
        private int GetJumpHeat()
        {
            var stat = statCollection.JumpHeat();

            stat.Create();
            MechDefStatisticModifier.ModifyStatistic(stat, mechDef);
            return(statCollection.GetJumpHeat(1));
        }
コード例 #13
0
        private int GetHeatGenerated()
        {
            var defaultValue = mechDef.Inventory
                               .Where(x => x.IsFunctionalORInstalling())
                               .Select(x => x.Def as WeaponDef)
                               .Where(x => x != null)
                               .Sum(x => x.HeatGenerated);

            var stat = statCollection.HeatGenerated();

            stat.CreateWithDefault(defaultValue);
            var value = MechDefStatisticModifier.ModifyStatistic(stat, mechDef);

            return(PrecisionUtils.RoundUpToInt(value));
        }
コード例 #14
0
        private int GetHeatGenerated()
        {
            var defaultValue = mechDef.Inventory
                               .Where(x => x.IsFunctionalORInstalling())
                               .Select(x => x.Def as WeaponDef)
                               .Where(x => x != null)
                               .Sum(x => x.HeatGenerated);

            // TODO HeatDivisor support or not? nah we just don't support COIL, who needs that anyway...

            var stat = statCollection.HeatGenerated();

            stat.CreateWithDefault(defaultValue);
            var value = MechDefStatisticModifier.ModifyStatistic(stat, mechDef);

            return(PrecisionUtils.RoundUpToInt(value));
        }