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; }
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; }
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; }
private string weaponText(Logic.Ability ability) { return(string.Format("{0} (damage: {1}, speed: {2})", ability.Name, ability.Effectiveness, ability.Speed)); }