Пример #1
0
        public override Attack GenerateAttack()
        {
            Attack outgoing = new Attack(stats.MinimumDamage, stats.MaximumDamage, this.level);

            weapon.ModifyOutgoing(outgoing);
            potion.ModifyOutgoing(outgoing);

            return outgoing;
        }
Пример #2
0
 public override void ModifyOutgoing(Attack outgoing)
 {
     outgoing.MaximumDamage = (int)(outgoing.MaximumDamage * 1.6);
     outgoing.MinimumDamage = (int)(outgoing.MinimumDamage * 1.1);
 }
Пример #3
0
 public override void ModifyIncoming(Attack incoming)
 {
     // default: do nothing
     // note: you can completely omit this method if you don't wish to modify incoming attacks
 }
Пример #4
0
 public abstract void ModifyOutgoing(Attack outgoing);
Пример #5
0
 public virtual void ModifyIncoming(Attack incoming)
 {
     // default: do nothing
 }
Пример #6
0
 public override void RecieveAttack(Attack incoming)
 {
     Health -= (int)(incoming.GenerateDamage() * (1 - stats.DamageReduction));
 }
Пример #7
0
 public abstract void RecieveAttack(Attack incoming);
Пример #8
0
 public override void ModifyOutgoing(Attack outgoing)
 {
     outgoing.MultiplyDamage(1.1);
 }