What worn items change
Items · The inventory · Item values
In brief
Worn body armour, shields held in a hand, bracers and, without enchanted armour, the Ring of Protection set a character's defense; lower is better. Each counts its type's adjustment less its enchantment. Three other rings act only while worn in a ring slot. Helmets, boots and amulets change nothing, although helmets carry an adjustment. A monster that takes an item leaves the defense unchanged until it is next computed.
Defense and rings
Defense. A character's defense, lower being better, is computed again after every exchange of items by the player and by some spells:1
defense = 10 + dexterity defense modifier
for body armour, hand 0, hand 1, bracers (in that order):
item = the slot's item
if item kind is ITEM_KIND_WORN and the character's class may use it:
if the slot is a hand: count it only if it is a shield
(and, for hand 1, only if hand 1 can be used)
defense += type defense adjustment - item value
if the body armour's value is 0 (or there is no body armour):
defense -= the larger value of the ITEM_KIND_WORN items in the two ring slots
then the limits of Armor, Shield and Magical Vestment; never below -10
An item's value is its enchantment: "+2 Plate Mail" improves defense by two more points than plain plate mail, "-2 Cursed Bracers of Protection" worsens it by two. Only the Ring of Protection is a worn-kind item in the ring slots of the original data; two of them do not add up, and a ring gives nothing with enchanted body armour. The shields are recognized by their item types, the shield and the Medusa Shield. For the spell limits, see what each spell does.
Rings. The other rings act only in a ring slot, according to their value:2
| Value | Ring | Effect |
|---|---|---|
| 0 | Adornment | None. |
| 1 | Wizardry | Doubles a mage's spell slots of levels 4 and 5 when spells are memorized; not for clerics. |
| 2 | Sustenance | Looked for by the food update and by resting; see food and the anomaly. |
| 3 | Feather Fall | Cancels damage that a script marks as avoided by this ring; see damage flags. |
No rule examined looks for a ring of another value, such as the Crimson Ring's 10; the values found in the original files are listed with the rings of the game. Helmets, boots and amulets change nothing while worn; amulets act only when used.
Helmets never improve defense. The defense routine reads only the body armour, the two hands and the bracers, although the helmet's item type carries a defense adjustment and the original data has an enchanted helmet. A faithful reimplementation ignores the helmet slot when computing defense.
When a monster takes an item from a character (see melee attacks), the game does not compute the character's defense again, although every other change of equipment does. Most body armour, helmets, shields, bracers and the Ring of Protection can be taken. The character keeps the defense the lost item gave until the next exchange of items or the next spell that recomputes it. A faithful reimplementation leaves the defense unchanged at that moment.
What a monster can take. A monster takes only an item whose type has the item-loss mark. In the original ITEMTYPE.DAT, 23 types have it, marked in the item catalogue: most weapons, banded armor, chainmail, plate mail and scale mail, helmets, shields, bracers, rings, lock picks and two of the three wand types. Leather armour, robes, cloaks, boots, bows, arrows, potions, scrolls and all the other types are never taken.
Sources
Locations refer to the game executable reference; comparative sources are listed in the technical references.