Part 2 - Armor
An armor is a kind of wearable thing.
An armor has a number called defense.
Some armors are defined by the Table of Armament
Table of Armament
name | defense |
a leather shirt | 10 |
a pair of gloves | 5 |
a helm | 10 |
a buckler | 10 |
a chainmail | 15 |
Understand "chain", "mail" as chainmail.
Instead of examining an armor:
say "The [noun] [have] a defense value of [defense of the noun][if the noun is not worn by the player], if worn[end if].".
After wearing something:
increase protection by defense of the noun;
say "You put on the [noun] and immediately feel better protected.".
Instead of taking off something worn:
say "That would be stupid, because you need all the protection you can get.".