Exemplo n.º 1
0
 public Attack(Warrior Attacker, Warrior Target, int Accuracy, int Strength, DamageType DamageType, Ability Proc)
 {
     this.damageType = DamageType;
     this.target = Target;
     this.attacker = Attacker;
     this.accuracy = Accuracy;
     this.strength = Strength;
     this.proc = Proc;
 }
Exemplo n.º 2
0
 public UnarmedAttack(Warrior Attacker, DamageType DamageType, int SpeedBonus, int AccuracyBonus, Ability Proc)
 {
     this.effectType = EffectType.Attack;
     this.attacker = Attacker;
     this.speedBonus = SpeedBonus;
     this.accuracyBonus = AccuracyBonus;
     this.effectiveness = this.attacker.Strength;
     this.damageType = DamageType;
     this.proc = Proc;
 }
Exemplo n.º 3
0
 public WeaponAttack(Warrior Attacker, Weapon Weapon)
 {
     this.name = weapon.Name;
     this.effectType = EffectType.Attack;
     this.attacker = Attacker;
     this.weapon = Weapon;
     this.speedBonus = this.weapon.Speed;
     this.effectiveness = this.attacker.Strength + this.weapon.Damage;
     this.damageType = this.weapon.DamageType;
     this.proc = this.weapon.Proc;
 }
Exemplo n.º 4
0
 private string weaponText(Logic.Ability ability)
 {
     return(string.Format("{0} (damage: {1}, speed: {2})", ability.Name, ability.Effectiveness, ability.Speed));
 }