Author Topic: Armor - how does it work?  (Read 1073 times)

uncle

  • Guest
Armor - how does it work?
« on: 4 February 2012, 16:22:10 »
I noticed that there are several types of armor. Is it correct that the armor decreases the attack power on each shot by the number which is unique for each unit?

For example, when a catapult (impact) attacks a swordman (leather), will be the attack power decreased by the armor value (in this case 20)?
What happens if the swordman is attacked by an archer (piercing)? Will the armor protect the unit?

Thanks.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Armor - how does it work?
« Reply #1 on: 4 February 2012, 16:42:47 »
The armour is really basic. It just subtracts from the damage that would have been dealt. Armour types, however, have multipliers in the techtree XML. In Magitech, for example, impact has a 0.75 multiplier against leather armour, so all damage is multiplied by that number (after subtracting from the armour value). Thus, an attack that would have dealt 100 damage would only deal 75. Piercing, on the other hand, has a 1.25 multiplier over leather armour, so they'll take 25% more damage.

See also: https://docs.megaglest.org/XML/Techtree
« Last Edit: 18 June 2016, 19:05:49 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

uncle

  • Guest
Re: Armor - how does it work?
« Reply #2 on: 5 February 2012, 16:40:53 »
Now I understand it. Thanks.

 

anything