Ejemplo n.º 1
0
        public override Attack GenerateAttack()
        {
            Attack outgoing = new Attack(stats.MinimumDamage, stats.MaximumDamage, this.level);

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

            return outgoing;
        }
Ejemplo n.º 2
0
 public override void ModifyOutgoing(Attack outgoing)
 {
     outgoing.MaximumDamage = (int)(outgoing.MaximumDamage * 1.6);
     outgoing.MinimumDamage = (int)(outgoing.MinimumDamage * 1.1);
 }
Ejemplo n.º 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
 }
Ejemplo n.º 4
0
 public abstract void ModifyOutgoing(Attack outgoing);
Ejemplo n.º 5
0
 public virtual void ModifyIncoming(Attack incoming)
 {
     // default: do nothing
 }
Ejemplo n.º 6
0
 public override void RecieveAttack(Attack incoming)
 {
     Health -= (int)(incoming.GenerateDamage() * (1 - stats.DamageReduction));
 }
Ejemplo n.º 7
0
 public abstract void RecieveAttack(Attack incoming);
Ejemplo n.º 8
0
 public override void ModifyOutgoing(Attack outgoing)
 {
     outgoing.MultiplyDamage(1.1);
 }