Jump to content

How does the HP system work?


Isodiso
 Share

Recommended Posts

25 minutes ago, Isodiso said:

Hello,

Im new to the game and i dont know how the HP system works in 0AD. Can somebody explain me the things like hack and pierce and what kind of effect it has on different units.

HP is basically  how long your units will survive  certain attacks (the amount of life) that is decreased by every hit by certain attack calculated against armor some  types of attacks are listed in code here https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/components/Attack.js?rev=20367    hack means hit by a sword or another weapon/unit that is listed in that class and pierce means hit by spear or similar weapon that can do serious damage through getting through armor . Btw there is also crush damage and so on. This might be also interesting https://trac.wildfiregames.com/changeset/20203

Edited by asterix
Link to comment
Share on other sites

Hello and welcome to the forum. 

In game are 3 main types of damage (talking just about vanila, no mods activated) pierce, hack and crush. 

The same types are for armour. Every unit deals different types of damages.

For example, swordsman has high hack damage. Pikeman, spearman, archer has high pierce damage, catapults and slingers, believe elephants too have high crush damage. 

 

Acording to damage types mentioned above, every unit and building has 3 types of armour. pierce crush and hack. 

When you select an unit or building and looks on its stats, you will see that every type of armour is different. These numbers are levels of armour protection ( higher better) but you have behind it how much percent of incoming damage of that type will be ignored. 

 

for example, use swordsman against rams because rams have high pierce armour and low hack armour. 

I think there are some modifiers saying that spearman deals 2xdamage to cavalry. it means every type of dealt damage is multiplied by this number (now 2 for this example).

 

If unit is attacked, first is calculated how much of damage will be actually dealt for every damage type ( based on how many will armour block) it is sumed and the health of unit is degreesed by computed this sumed damage. 

Edited by Angen
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...