> For the complete documentation index, see [llms.txt](https://stevetautonico.gitbook.io/tarbs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stevetautonico.gitbook.io/tarbs/documentation/8-armor.md).

# 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](/tarbs/documentation/1.-player.md#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 %}
