Esempio n. 1
0
        public void attack(Unit target)
        {
            int?tHP = target.UnitHealth;

            target.loseHP((int)((this.UnitOffense * (100 / (100 + target.UnitDefense))) * (this.UnitHealth / 100.0)));
            this.loseHP((int)((target.UnitOffense * (100 / (100 + this.UnitDefense))) * (tHP / 100.0)));
        }
Esempio n. 2
0
 public void Rattack(Unit target)
 {
     target.loseHP((int)((this.UnitOffense * (100 / (100 + target.UnitRangedDefense))) * (this.UnitHealth / 100.0)));
 }
Esempio n. 3
0
 public void Rattack(Unit target)
 {
     target.loseHP((int)((this.UnitOffense * (100 / (100 + target.UnitRangedDefense))) * (this.UnitHealth / 100.0)));
 }
Esempio n. 4
0
 public void attack(Unit target)
 {
     int? tHP = target.UnitHealth;
     target.loseHP((int)((this.UnitOffense * (100 / (100 + target.UnitDefense))) * (this.UnitHealth / 100.0)));
     this.loseHP((int)((target.UnitOffense * (100 / (100 + this.UnitDefense))) * (tHP / 100.0)));
 }