Difference between revisions of "Unique item"

From NetHackWiki
Jump to navigation Jump to search
(Overall rewrite; standardize first sentence, focus more on what a unique item is/isn't and less on artifacts, move some text into a direct comparison section. don't list EvilHack's artifacts which don't count against wishing as that's not the page focus)
Line 1: Line 1:
In ''[[NetHack]]'', all [[artifact]]s are unique, but there are four objects which the game specifically refers to as '''unique items''':
+
A '''unique item''' is one of four specific objects required to complete the game:
  
 
* The [[Candelabrum of Invocation]]
 
* The [[Candelabrum of Invocation]]
Line 6: Line 6:
 
* The [[Amulet of Yendor]]
 
* The [[Amulet of Yendor]]
  
These items are defined with the tag <code>OC_UNIQUE</code> in [[objects.c]], and the [[discoveries]] page also refers to these as unique items. While these are also commonly referred to as "invocation artifacts", they do not count as actual artifacts for purposes of artifact [[wish]]ing, as the player is always guaranteed to encounter them.
+
Unique items are defined by having the field <code>oc_unique</code> set to 1 in [[objects.c]]. It is not possible to [[wish]] for any of the unique items.
  
==Distinguishing from other "one-per-game" items==
+
== Unique items versus artifacts ==
Artifacts are not unique items in the sense of this article; they are specially named variants of their [[base item]] with additional benefits. For example, [[the Eye of the Aethiopica]] is a named [[amulet of ESP]] that also provides faster [[energy]] regeneration among other extra powers.
+
All [[artifact]]s are also unique within a game, but are not the same as unique items; they are specially named variants of their [[base item]] with additional benefits. The [[discoveries]] page lists identified artifacts under "Artifacts", whereas it lists unique items under "Unique Items".  
  
While [[Stormbringer]] is the only [[runesword]] and [[the Tsurugi of Muramasa]] the only [[tsurugi]] that can normally be generated in a game, neither counts as a unique item; it is possible to find a non-artifact runesword or tsurugi in a [[bones]] file (if the artifact has already been created), or by [[wish]]ing for one.
+
While the unique items are also commonly referred to as '''invocation artifacts''', they do not count as artifacts for wishing purposes, as the player is always guaranteed to encounter them.
 +
 
 +
== Distinguishing from other "one-per-game" items ==
 +
Most games will have no more than one [[runesword]] or [[tsurugi]], by virtue of those items never generating randomly except when [[Stormbringer]] or the [[Tsurugi of Muramasa]], respectively, are generated. Neither counts as a unique item; it is possible to wish for them or find them in a [[bones]] file (if the artifact already existed).
  
 
==Variants==
 
==Variants==
 
===EvilHack===
 
===EvilHack===
[[EvilHack]] adds several more "one-per-game" items:
+
[[EvilHack]] adds a few more "one-per-game" items that serve as the basis for artifacts and are never randomly generated (except when their associated artifact is generated):
 
 
* The [[Magic 8-Ball]]
 
* The [[Bag of the Hesperides]]
 
* [[Lifestealer]]
 
* [[Butcher]]
 
* The [[Wand of Orcus]]
 
  
While they do not share the same <code>OC_UNIQUE</code> tag as the invocation items and are considered actual artifacts, they also do not count towards the total number of artifacts in a game, as they are generated in ways that mean they are guaranteed to appear.
+
* triple-headed flail (basis for [[Butcher]])
 +
* eight ball (basis for the [[Magic 8-Ball]])
  
 
[[Category:Unique items]]
 
[[Category:Unique items]]
 
{{nethack-366}}
 
{{nethack-366}}

Revision as of 23:35, 18 December 2020

A unique item is one of four specific objects required to complete the game:

Unique items are defined by having the field oc_unique set to 1 in objects.c. It is not possible to wish for any of the unique items.

Unique items versus artifacts

All artifacts are also unique within a game, but are not the same as unique items; they are specially named variants of their base item with additional benefits. The discoveries page lists identified artifacts under "Artifacts", whereas it lists unique items under "Unique Items".

While the unique items are also commonly referred to as invocation artifacts, they do not count as artifacts for wishing purposes, as the player is always guaranteed to encounter them.

Distinguishing from other "one-per-game" items

Most games will have no more than one runesword or tsurugi, by virtue of those items never generating randomly except when Stormbringer or the Tsurugi of Muramasa, respectively, are generated. Neither counts as a unique item; it is possible to wish for them or find them in a bones file (if the artifact already existed).

Variants

EvilHack

EvilHack adds a few more "one-per-game" items that serve as the basis for artifacts and are never randomly generated (except when their associated artifact is generated):