Chain (item type)

From NetHackWiki
Jump to navigation Jump to search
This article is about the item class. For the individual item, see iron chain.
For other uses of the term, see chain.

A chain is a class of item that appears in NetHack.[1] Chains are represented by an underscore glyph, _.

The only type of chain in the item class is the iron chain.[2]

Description

Chains are not a randomly-generated item class, and its sole item is only generated when the hero is punished, a drawbridge is destroyed, or an iron golem is destroyed by any means other than digestion or disintegration. In practice, this makes iron chains "immune" to polypiling: they will only polymorph into other iron chains, unless they are used up in the process of creating an iron golem from several iron items in a pile being polymorphed.

History

The chain object type first appears in Hack 1.0.

Variants

Some NetHack variants add more objects to the chain item class.

dNetHack

dNetHack, notdNetHack and notnotdNetHack refers to the item class as "scrap", and adds several types of objects to the item class along with establishing "subtypes" of scrap.

The following items are grouped in the object class:

CrecelleHack

"Junk (item class)" redirects here. For non-specific items that are considered "useless", see junk.

CrecelleHack explicitly refers to the category of chain items to "junk", though the code that refers to it as the "chain class" is left untouched.

The following items are added to the object class:

References