Exemple #1
0
        private double GetArmorPierceThreat(CWeapon weapon)
        {
            double threat = weapon.GetStat(EWeaponStat.Armor_Pierce);

            if (threat > 0)
            {
                return(WeaponThreatTable.Instance.Table[EWeaponStat.Armor_Pierce] / threat);
            }
            else
            {
                return(0);
            }
        }
Exemple #2
0
        private double GetShieldDamageThreat(CWeapon weapon)
        {
            double threat = weapon.GetStat(EWeaponStat.Shield_Damage_Percent);

            return(WeaponThreatTable.Instance.Table[EWeaponStat.Shield_Damage_Percent] * threat);
        }
Exemple #3
0
        private double GetDamageThreat(CWeapon weapon)
        {
            double threat = weapon.GetStat(EWeaponStat.Damage);

            return(WeaponThreatTable.Instance.Table[EWeaponStat.Damage] * threat);
        }
Exemple #4
0
        private double GetBlockIgnoreThreat(CWeapon weapon)
        {
            double threat = weapon.GetStat(EWeaponStat.Block_Ignore);

            return(WeaponThreatTable.Instance.Table[EWeaponStat.Block_Ignore] * threat);
        }
Exemple #5
0
        private double GetAccuracyThreat(CWeapon weapon)
        {
            double threat = weapon.GetStat(EWeaponStat.Accuracy_Mod);

            return(WeaponThreatTable.Instance.Table[EWeaponStat.Accuracy_Mod] * threat);
        }