Пример #1
0
            public override string WeaponDamagePiercing()
            {   // %wdmp
                int   minDamLowerLimit = FormulaHelper.CalculateWeaponMinDamTypeLowerLimit(parent, 3);
                int   minDamUpperLimit = FormulaHelper.CalculateWeaponMinDamTypeUpperLimit(parent, 3);
                int   maxDamLowerLimit = FormulaHelper.CalculateWeaponMaxDamTypeLowerLimit(parent, 3);
                int   maxDamUpperLimit = FormulaHelper.CalculateWeaponMaxDamTypeUpperLimit(parent, 3);
                int   matMod           = parent.GetWeaponMaterialModFracture();
                float conditionMulti   = FormulaHelper.AlterDamageBasedOnWepCondition(parent, 3);

                return(String.Format("{0} - {1}", Mathf.Clamp((int)Mathf.Round((parent.GetBasePiercingDamageMin() + matMod) * conditionMulti), minDamLowerLimit, minDamUpperLimit), Mathf.Clamp((int)Mathf.Round((parent.GetBasePiercingDamageMax() + matMod) * conditionMulti), maxDamLowerLimit, maxDamUpperLimit)));
            }