public Weapon(IStatsInfo stats, ItemRarity rarity, WeaponType type, int attackDamage)
 {
     this.Stats        = stats;
     this.Rarity       = rarity;
     this.Type         = type;
     this.AttackDamage = attackDamage;
 }
Example #2
0
 protected PlayableClass(ICollection <ICastable> skills, ICollection <WeaponType> usableWeaponTypes, ICollection <ArmorMaterial> usableArmorMaterials, IStatsInfo baseStats)
 {
     this.skills               = skills;
     this.usableWeaponTypes    = usableWeaponTypes;
     this.usableArmorMaterials = usableArmorMaterials;
     this.baseStats            = baseStats;
 }
Example #3
0
 public Armor(IStatsInfo stats, ItemRarity rarity, ArmorMaterial material, ArmorType type)
 {
     this.Stats    = stats;
     this.Rarity   = rarity;
     this.Material = material;
     this.Type     = type;
 }
        /// <summary>
        /// Calculates attack speed for a single stat entity
        /// </summary>
        /// <param name="stat">Stat entity</param>
        public AttackSpeed(IStatsInfo stat)
        {
            this.AttackSpeedBase         = stat.AttackSpeedBase;
            this.AttackSpeedBasePerLevel = (double)stat.Stats[1]["AttackSpeed"];
            this.AttackSpeedIncrease     = stat.AttackSpeedMultiplier;
            double atk_speed_perlvl_sum = stat.AttackSpeedPerLevel;

            this.AttackSpeedPerLevel = (atk_speed_perlvl_sum / 100.0) * this.AttackSpeedBase;
        }
 protected Mage(ICollection <ICastable> skills, ICollection <WeaponType> weaponTypes, ICollection <ArmorMaterial> armorMaterials,
                IStatsInfo baseStats) : base(skills, weaponTypes, armorMaterials, baseStats)
 {
 }