Announcement

Collapse
No announcement yet.

What does the Armor flag do?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What does the Armor flag do?

    Hello,

    I´ve searched in every place in this site and other, but I can´t find a place that explains what does the Armor flag in units.txt does.

    I read somewhere that it should divide the damage. Is that true? If so, how would the result be rounded? The tipical sum .5 and then remove the fraction?

    thanks,

    Felipe

  • #2
    A description would be in units.txt

    real total hitpoints used in combat = armor * maxhp

    Of course in units.txt every unit has maxhp 10, although this isnt shown in-game, only the armor stat is, so basically every unit has real hitpoints to a multiple of 10 (in the unmodded game).
    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
    CtP2 AE Wiki & Modding Reference
    One way to compile the CtP2 Source Code.

    Comment


    • #3
      Re: What does the Armor flag do?

      Originally posted by sekel
      I read somewhere that it should divide the damage. Is that true? If so, how would the result be rounded? The tipical sum .5 and then remove the fraction?
      If I understand it correctly, it does indeed divide the damage, but it doesn't perform any rounding (fractions are retained). Hence, armour effectively simply multiplies hitpoints.

      Comment

      Working...
      X