Hat

From NetHackWiki
Jump to navigation Jump to search

A hat is a subtype of helm in NetHack that is not made of a rigid material.

Description

Hats are generally helms made of a flimsy material: worn hats do not protect against damage from falling objects such as rocks and boulders, but can still lower the base amount of damage taken from hitting the ceiling when a hero quaffs a cursed potion of levitation (though only from d10 to d6 compared to a hard helm).[1] A hero or monster wearing a hat that polymorphs into a form with a horned head will not cause the hat to come off their head.

The following helms are referred to as hats in certain messages:[2]

The dwarvish iron helm has the appearance of a "hard hat" when unidentified, but is otherwise referred to as a "helm" in the same messages.

History

Hats are introduced in NetHack 3.0.0 with the elven leather helm and fedora, while the coornuthaum and dunce cap are added in NetHack 3.2.0.

The distinction between hats and other helmets is first made in NetHack 3.6.0 via commit 7672a2c6, which fixes bug C343-28 from NetHack 3.4.3.

Variants

Variants of NetHack may add new types of helm that are considered to be hats, and may also grant such helms additional characteristics. Additionally, elven leather helms in variants that implement object materials systems may simply appear as "hats" when unidentified.

dNetHack

In dNetHack, notdNetHack and notnotdNetHack, the following helms are considered hats, in addition to the standard hats from NetHack:

Some hats can be worn by a monster or a polymorphed hero even if they lack a head.

A user has suggested improving this page or section as follows:

"Which ones?"

References

  1. src/potion.c in NetHack 5.0.0, line 1199-L1200: cursed potion of levitation effects
  2. src/objnam.c in NetHack 5.0.0, line 5511-L5528: helm_simple_name() function