Author Topic: Attack  (Read 3812 times)

FDS

  • Guest
Attack
« on: 4 January 2005, 00:57:00 »
What is the attack formule?

(strength + or - var) - attacked unit armor=damage?  
?
« Last Edit: 1 January 1970, 00:00:00 by FDS »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #1 on: 4 January 2005, 17:25:19 »
The attack damage is a number in the range:

(attack_strenght-attack_var, attack_strenght+attack_var) - armor
« Last Edit: 1 January 1970, 00:00:00 by martiño »

FDS

  • Guest
(No subject)
« Reply #2 on: 5 January 2005, 01:43:22 »
Thanks!
« Last Edit: 1 January 1970, 00:00:00 by FDS »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #3 on: 26 February 2005, 13:22:41 »
After the subtraction:

Code: [Select]

damage+= randRange(-var, var);
damage/= distance+1;
damage-= armor;
damage*= damageMultiplier;
if(damage<1){
damage= 1;
}


« Last Edit: 1 January 1970, 00:00:00 by martiño »

 

anything