Protection
From DoomRL Wiki
Protection (often called armor) is a way for the player and his enemies to reduce the amount of damage they take.
For the purposes of protection, there are two kinds of damage: damage from attacks and damage from hazardous terrain such as acid and lava. Protection from armor only applies to damage from attack, while protection from boots only applies to damage from hazardous terrain. All other sources of protection apply to both kinds of damage.
Each point of protection a player has against a source of damage reduces the amount of damage by 1. However, every source of damage will always do 1 point of damage regardless of protection. For example, suppose a Lost Soul attacks the player and rolls a 4 for damage. If the player is wearing green armor and has 1 level of Tough as Nails, the actual to the player damage will be reduced from 4 to 2. If the player were instead wearing red armor, the damage would be reduced to 1, even though the player would have 5 points of protection.
It is important to note that sometimes some actions, like a chaingun blast, consist of multiple attacks. In this case, protection is applied to each attack separately.
Armor and boots also lose durability whenever the player is damaged by a source that their protection could apply to. The amount of durability lost is equal to the amount of damage reduced by the protection value of the armor or boots. Like damage, the durability lost in this way cannot be reduced below 1. Continuing the example above, an attack for 4 damage against a player with green armor and 1 level of Tough as Nails will damage the player's armor by 3. If the player had been wearing red armor, the armor would have been damaged by 1. Note that other sources of protection like Tough as Nails have no effect on the durability lost by the armor.
Sometimes the protection value of a piece of armor changes when it is damaged. In this case, the initial protection value before the armor is damaged is applied to the entire attack that damages the armor.
The most common sources of protection are:
- Wearing armor (only against enemy attacks)
- Wearing boots (only against hazardous terrain)
- The Tough as Nails trait