# 8 Armor

The `Armor` class is used to create equatable armor that protects from incoming attack damage. Armor has 5 identifier types:

| Identifier | Type |
| ---------- | ---- |
| 1          | HEAD |
| 2          | BODY |
| 3          | LEG  |
| 4          | HAND |
| 5          | FOOT |

The identifiers are used to decide which slot the armor belongs in when calling `Player.equiparmor` (which you can learn more about [here](https://stevetautonico.gitbook.io/tarbs/1.-player#1-15-player-equiparmor)). All instances contain a `defence` var. This var is used to reduce the amount of damage taken from opposing to attacks.

{% hint style="info" %}
The name of the armor can be accessed through `Armor.name`
{% endhint %}
