Difference between revisions of "Property"

From NetHackWiki
Jump to navigation Jump to search
(Intrinsic properties)
(SLASH'EM Doppelgangers get polymorph control at level 9)
Line 122: Line 122:
  
 
* Put on or eat a [[ring of polymorph control]]
 
* Put on or eat a [[ring of polymorph control]]
* (In ''[[SLASH'EM]]'') be a [[Doppelganger]] at level 10
+
* (In ''[[SLASH'EM]]'') be a [[Doppelganger]] at level 9
 
|-
 
|-
 
|''[[levitation]]''<br /><tt>LEVITATION</tt>
 
|''[[levitation]]''<br /><tt>LEVITATION</tt>
Line 249: Line 249:
 
|-
 
|-
 
| ''[[sliming resistance]]''
 
| ''[[sliming resistance]]''
| Provides immunity to the ''[[sliming]]'' process; this protects against the slime attack of the [[green slime]].<ref>{{sourcecode|mhitu.c|1524}}, {{sourcecode|mondata.h|51}}</ref>* Polymorph into a [[green slime]], [[fire vortex]], [[flaming sphere]], [[fire elemental]] or [[salamander]]
+
| Provides immunity to the ''[[sliming]]'' process; this protects against the slime attack of the [[green slime]].<ref>{{sourcecode|mhitu.c|1524}}, {{sourcecode|mondata.h|51}}</ref>* Polymorph into a [[green slime]], [[fire vortex]], [[flaming sphere]], [[fire elemental]] or [[salamander]]* Be ''[[unchanging]]''
* Be ''[[unchanging]]''
 
 
|-
 
|-
 
| ''[[drain resistance]]''<br /><tt>DRAIN_RES</tt>
 
| ''[[drain resistance]]''<br /><tt>DRAIN_RES</tt>
Line 288: Line 287:
 
| ''[[fumbling]]''<br /><tt>FUMBLING</tt>
 
| ''[[fumbling]]''<br /><tt>FUMBLING</tt>
 
| Causes you to sometimes trip while walking, accidentally drop items, fall down stairs, and have other such problems.
 
| Causes you to sometimes trip while walking, accidentally drop items, fall down stairs, and have other such problems.
 +
  
 
* Wear [[gauntlets of fumbling]] or [[fumble boots]]
 
* Wear [[gauntlets of fumbling]] or [[fumble boots]]
Line 297: Line 297:
 
| ''[[displacement]]''<br /><tt>DISPLACED</tt>
 
| ''[[displacement]]''<br /><tt>DISPLACED</tt>
 
| Produces a displaced image of you on a nearby square, such that monsters sometimes attack the image and miss you.
 
| Produces a displaced image of you on a nearby square, such that monsters sometimes attack the image and miss you.
 +
  
 
* Wear a [[cloak of displacement]]
 
* Wear a [[cloak of displacement]]
Line 303: Line 304:
 
| ''[[clairvoyance]]''<br /><tt>CLAIRVOYANT</tt>
 
| ''[[clairvoyance]]''<br /><tt>CLAIRVOYANT</tt>
 
| Every few turns, the map of the area around you appears in your mind. This helps explore new areas and discover hidden paths.
 
| Every few turns, the map of the area around you appears in your mind. This helps explore new areas and discover hidden paths.
 +
  
 
* Buy temporary clairvoyance by [[donating to priests]]
 
* Buy temporary clairvoyance by [[donating to priests]]
Line 354: Line 356:
 
| ''[[warned of monster type]]''<br /><tt>WARN_OF_MON</tt>, <tt>WARN_UNDEAD</tt>
 
| ''[[warned of monster type]]''<br /><tt>WARN_OF_MON</tt>, <tt>WARN_UNDEAD</tt>
 
| Detects all monsters on the dungeon level that match certain monster types.
 
| Detects all monsters on the dungeon level that match certain monster types.
 +
  
 
* To be [[warned of orcs]], wield [[Sting]]
 
* To be [[warned of orcs]], wield [[Sting]]
Line 368: Line 371:
 
| ''[[stun]]''<br /><tt>STUNNED</tt>
 
| ''[[stun]]''<br /><tt>STUNNED</tt>
 
| Movement commands may cause you to step in a random direction, and you may hit pets by mistake.
 
| Movement commands may cause you to step in a random direction, and you may hit pets by mistake.
 +
  
 
* Eat a [[bat]] or [[giant bat]] corpse
 
* Eat a [[bat]] or [[giant bat]] corpse
Line 385: Line 389:
 
| ''[[restful sleep]]''<br /><tt>SLEEPING</tt>
 
| ''[[restful sleep]]''<br /><tt>SLEEPING</tt>
 
| You keep falling asleep.
 
| You keep falling asleep.
 +
  
 
* Wear an [[amulet of restful sleep]]
 
* Wear an [[amulet of restful sleep]]
Line 390: Line 395:
 
| ''[[paralysis]]''
 
| ''[[paralysis]]''
 
| You become immobile and miss some number of turns.
 
| You become immobile and miss some number of turns.
 +
  
 
* Quaff [[potion of paralysis]], or let monster throw it at you
 
* Quaff [[potion of paralysis]], or let monster throw it at you
 
|-
 
|-
 
| ''[[wounded legs]]''<br /><tt>WOUNDED_LEGS</tt>
 
| ''[[wounded legs]]''<br /><tt>WOUNDED_LEGS</tt>
| Among other effects, you can carry less [[weight]], and you cannot [[jump]] or [[kick]].
+
| Among other effects, you can carry less [[weight]], and you cannot [[jump]] or [[kick]]. #[[jump]] out of a [[bear trap]]* Attack of a [[xan]]
#[[jump]] out of a [[bear trap]]
 
* Attack of a [[xan]]
 
 
* Step on a [[Land Mine]]
 
* Step on a [[Land Mine]]
 
|-
 
|-
Line 406: Line 410:
 
| ''[[slippery fingers]]''<br /><tt>GLIB</tt>
 
| ''[[slippery fingers]]''<br /><tt>GLIB</tt>
 
| Causes wielded objects to drop from your grasp.
 
| Causes wielded objects to drop from your grasp.
 +
  
 
* Eat greasy food from a [[tin]]
 
* Eat greasy food from a [[tin]]
Line 411: Line 416:
 
| ''[[invulnerability]]''<br /><tt>INVULNERABLE</tt>
 
| ''[[invulnerability]]''<br /><tt>INVULNERABLE</tt>
 
| Blocks all damage and prevents most causes of death!
 
| Blocks all damage and prevents most causes of death!
 +
  
 
* (In [[vanilla]]) only available as the "shimmering light" during [[prayer]]
 
* (In [[vanilla]]) only available as the "shimmering light" during [[prayer]]
Line 417: Line 423:
 
| ''[[monster detection]]''<br /><tt>DETECT_MONSTERS</tt>
 
| ''[[monster detection]]''<br /><tt>DETECT_MONSTERS</tt>
 
| Detect all monsters on the dungeon level. This property is only available as a temporary intrinsic.
 
| Detect all monsters on the dungeon level. This property is only available as a temporary intrinsic.
 +
  
 
* Quaff a [[potion of monster detection]]
 
* Quaff a [[potion of monster detection]]
Line 443: Line 450:
 
| ''[[strangulation]]''<br /><tt>STRANGLED</tt>
 
| ''[[strangulation]]''<br /><tt>STRANGLED</tt>
 
| Your amulet will strangle you to instadeath in five turns, unless you can somehow remove it before then.
 
| Your amulet will strangle you to instadeath in five turns, unless you can somehow remove it before then.
 +
  
 
* Wear an [[amulet of strangulation]]
 
* Wear an [[amulet of strangulation]]

Revision as of 08:07, 3 July 2010

A property is any of several on-or-off traits of the hero or a monster. Properties include the resistances, the effects of rings, the temporary effects of certain potions, negative effects (as confusion, stoning), and others. A property may be intrinsic or extrinsic.

A property is boolean; you either have it or you have it not. Thus numerical traits (as alignment record, dexterity, luck, prayer timeout, ...) are not properties in this sense. Enlightenment will reveal many properties of the hero, along with some other traits.

Intrinsic versus extrinsic

In NetHack, an intrinsic is any property that your character has internally, as opposed to an extrinsic that your character has from using some item.

You gain an extrinsic when you wield, wear or put on an item that provides it. The item is typically a ring, amulet, armor or artifact. For example, either the amulet of ESP or the helm of telepathy grants extrinsic telepathy. The extrinsic goes away when you take off the item. Some nice quest artifacts provide an extrinsic when carried; in that case, the extrinsic goes away when you drop or lose the artifact or place it in a container.

There are more ways to gain an intrinsic.

The gremlin has an attack that steals a random intrinsic. Also, you can lose an innate property if something drains you below the required level.

List of properties

The following tables provide a brief description of each property that the hero might have, and some notable sources of that property. (The property may have other sources.) The individual articles for each property might provide more details.

The left column also gives the associated constant from prop.h, if any. The right column may refer to a monster flag (like M1_FLY); then you may search monst.c to find a monster with that flag for polymorph.

Intrinsic properties

It is possible to receive any of these properties as intrinsics that never time out. Some are also available as extrinsics, or as temporary intrinsics. This list includes each property that may be intrinsic, even if the only way is to eat the correct ring. (Eating a ring has a chance to fail to convey the property!)

Common name
of property
Description
Notable sources
fire resistance
FIRE_RES
Prevents fire damage, but does not fireproof your inventory.
  • Eat a corpse (see fire resistance page)
  • Polymorph into a resistant monster (MR_FIRE)
cold resistance
COLD_RES
Prevents cold damage, but does not protect your potions.
  • Eat a corpse (see cold resistance page)
  • Polymorph into a resistant monster (MR_COLD)
sleep resistance
SLEEP_RES
Prevents sleep. Alternatively, free action works for potions only.
  • Be an Elf at level 4
  • Eat an elf, orange dragon or other monster that provides it
  • Eat a ring of free action (wearing it would provide free action)
  • Polymorph into a resistant monster (MR_SLEEP)
disintegration resistance
DISINT_RES
Prevents instadeath from black dragon breath (or use reflection to block the breath); also the only way to prevent instadeath from wide-angle disintegration beams.
  • Eat a black dragon corpse
  • Polymorph into a resistant monster (MR_DISINT)
shock resistance
SHOCK_RES
Prevents damage from electric attacks, but does not defend rings or wands.
poison resistance
POISON_RES
Prevents poisoning, also prevents the instadeath from poison.
regeneration
REGENERATION
Increases the rate of recovery of your hit points, so that they sooner return to maximum.
searching
SEARCHING
Automatically searchsquares around you, increasing the chance that you notice hidden doors or traps.
see invisible
SEE_INVIS
Allows you to see invisible monsters (and in SLASH'EM, invisible objects).
invisible
INVIS
Makes you invisible. Monsters may struggle to find you and miss with their attacks.


teleportation/teleportitis
TELEPORT
Every few turns, randomly teleports you around the dungeon level.


teleport control
TELEPORT_CONTROL
When you teleport, allows you to choose your destination tile.


polymorph/polymorphitis
POLYMORPH
Every few turns, randomly polymorphs you into another monster type.


polymorph control
POLYMORPH_CONTROL
When you polymorph, allows you to choose the type of monster to become.


levitation
LEVITATION
You float in the air, and cannot reach the floor! However, you can pass over moats, trap doors and pits (except the pits in Sokoban with air currents).
stealth
STEALTH
Allows you to move around quietly, so that your steps do not wake sleeping monsters.


aggravate monster
AGGRAVATE_MONSTER
Increases probability that nearby sleeping monsters notice you and wake.


conflict
CONFLICT
Monsters will attack other nearby monsters (including you), disregarding their tame/peaceful/hostile status.


protection
PROTECTION
Indicates that you either have intrinsic divine protection, or wear an item of protection, for the purpose of the enlightenment message.
protection from shape changers
PROT_FROM_SHAPE_CHANGERS
Forces shapeshifters and chameleons to stay in normal form.
warning
WARNING
Labels unseen, undetected nearby monsters with a danger indicator from 1 to 5.


hunger
HUNGER
Increases the rate that you lose nutrition. This is bad, unless you are trying to make room for your next meal.
telepathy
TELEPAT
Intrinsic telepathy allows you to sense most monsters (except mindless monsters), but only when you are blind.

Extrinsic telepathy also functions in a limited radius when you are not blind.

speed
FAST
Intrinsic speed makes you fast, allowing four moves for every three turns.

Extrinsic speed, and temporary intrinsic speed, make you very fast, allowing five moves every three turns.

food appraisal Before eating something, warns you of any bad effects that might result, and allows you to abort. Lost after activating once.


unbreathing
MAGICAL_BREATHING
Allows you to survive without breathing. You can go underwater. You will not choke on your food.


amphibiousness Allows you to breathe both in the air and underwater. You can go underwater.


  • Polymorph into an amphibious monster, such as any ; (M1_AMPHIBIOUS)
  • Be unbreathing
jumping
JUMPING
Allows you to land on another tile in one move.


infravision
INFRAVISION
Your eyes sense the heat from warm monsters, making them visible to you, even in dark places.
  • Play as a dwarf, elf, gnome or orc (these have M3_INFRAVISION)
  • Polymorph into a monster with M3_INFRAVISION

Extrinsic properties

There are no sources that provide any of these properties as an intrinsic (without polymorphing), but there exist extrinsic sources, or you may polymorph into a certain monster to gain the property.

Common name
of property
Description
Notable sources
acid resistance
ACID_RES
Prevents acid damage (from yellow dragon breath, or from eating acidic corpses), but does not rustproof your armour.
stoning resistance
STONE_RES
Prevents the stoning process. This is one way to fight cockatrices and chickatrices.
sliming resistance Provides immunity to the sliming process; this protects against the slime attack of the green slime.[1]* Polymorph into a green slime, fire vortex, flaming sphere, fire elemental or salamander* Be unchanging
drain resistance
DRAIN_RES
Protects against loss of experience levels, for example from the drain life attack of monsters. Prevents instadeath from drain below level 1.
adornment
ADORNED
Indicates that you wear a ring of adornment (of any enchantment). This seems to be an intrinsic only to allow the enlightenment message.
reflection
REFLECTING
Bounces gaze and ray attacks away from you, so that they do not affect you.
life saving
LIFESAVED
When you die, the worn amulet of life saving will resurrect you.
magic resistance
ANTIMAGIC
Prevents damage from certain traps, from magic missile and certain other magic attacks, and rays/fingers of death, among other useful benefits.
phasing
PASSES_WALLS
You can walk through walls. This is useful for taking shortcuts without diging them, and fleeing from certain places. However, this property has no effect in Sokoban.
hallucination resistance
HALLUC_RES
Prevents the effects of hallucination.
fumbling
FUMBLING
Causes you to sometimes trip while walking, accidentally drop items, fall down stairs, and have other such problems.


water walking
WWALKING
You can cross water by walking on its surface (as an alternative to using levitation, magical breathing or swimming). If the boots are fireproof, they may also be used to cross lava.
displacement
DISPLACED
Produces a displaced image of you on a nearby square, such that monsters sometimes attack the image and miss you.


clairvoyance
CLAIRVOYANT
Every few turns, the map of the area around you appears in your mind. This helps explore new areas and discover hidden paths.


energy regeneration
ENERGY_REGENERATION
Your power increases toward maximum at a much faster rate, allowing you to frequently cast spells (if you have enough nutrition).
half spell damage
HALF_SPDAM
half physical damage
HALF_PHDAM
sickness resistance
SICK_RES
Provides complete immunity to both disease and food poisoning.
free action
FREE_ACTION
Prevents paralysis in most cases. Makes the potion of sleeping harmless, but does not prevent other forms of sleep. Reduces stunning from monster spells to one turn.
swimming
SWIMMING
Enables you to swim across water. This differs from levitation (to float across water) and unbreathing (to go underwater).
sustain ability
FIXED_ABIL
Prevents changes to your six attributes. Prevents the effects of exercise and abuse.
flying
FLYING
Enables you to fly above the ground. Flight is better than levitation, because you may reach the ground and fly down stairs.
unchanging
UNCHANGING
Holds you to your current form. Use this to prevent unwanted polymorph, or to remain forever in your polymorphed form.
slow digestion
SLOW_DIGESTION
Decreases the rate that you lose nutrition, allowing you to survive longer before starvation. Also prevents purple worms from digesting you.
warned of monster type
WARN_OF_MON, WARN_UNDEAD
Detects all monsters on the dungeon level that match certain monster types.


Intrinsics that always time out

You may receive any of these properties in this table as a temporary intrinsic, but not as a permanent intrinsic. After a specific number of turns, you lose the temporary intrinsic. That may be well, because most of these properties have bad effects; you would want them to wear off over time.

Common name
of property
Description
Notable sources
stun
STUNNED
Movement commands may cause you to step in a random direction, and you may hit pets by mistake.


confusion
CONFUSION
Among other effects, you will mispronounce any scroll that you read (causing the scroll to have an alternate effect), and you will have trouble with spells and spellbooks.
  • Attempt to cast a forgotten spell
blindness
BLINDED
Disables your eyes, blocking your sight (unless you wear the Eyes of the Overworld). Intrinsic blindness will heal eventually, or you may use a cure such as a carrot.

The only cure for extrinsic blindness is to remove whatever is blocking your eyes. Cream pie will eventually fall off.

  • Wear a blindfold or a towel
  • Polymorph into a monster without eyes (M1_NOEYES)
restful sleep
SLEEPING
You keep falling asleep.


paralysis You become immobile and miss some number of turns.


wounded legs
WOUNDED_LEGS
Among other effects, you can carry less weight, and you cannot jump or kick. #jump out of a bear trap* Attack of a xan
hallucination
HALLUC
Gives a random appearance to any monster or object on the map, so that you do not know who or what you see. In SLASH'EM, hallucination also disorts the view of objects on the same square as you, including your inventory.
slippery fingers
GLIB
Causes wielded objects to drop from your grasp.


  • Eat greasy food from a tin
invulnerability
INVULNERABLE
Blocks all damage and prevents most causes of death!


monster detection
DETECT_MONSTERS
Detect all monsters on the dungeon level. This property is only available as a temporary intrinsic.


Intrisics that time out, then cause harm

These temporary intrinsics do not only time out and go away, they also cause do something (typically to cause instadeath) when they time out. When you have one of these properties, you only have some number of turns to remove the property and avoid its time-out effect.

Common name
of property
Description
Notable sources
sickness
SICK
A fatal illness; you must cure this or it becomes an instadeath.
stoning
STONED
Gradual stiffening will turn you into a statue (causing instadeath).
nausea/vomiting
VOMITING
Can cause stun and confusion; when nausea times out, you spew part of your food and lose some nutrition.[3]* Eat a tripe ration or a rotten egg
strangulation
STRANGLED
Your amulet will strangle you to instadeath in five turns, unless you can somehow remove it before then.


slime
SLIMED
Green slime will overtake your body and kill you, unless you can somehow remove the slime or gain sliming resistance before that happens.

Commentary

The adjective intrinsic refers to something that is internal, inherit, within the body. We also use the term as a noun. The antonym of intrinsic is extrinsic.

Oddly, sometimes we also use the term "intrinsic" to refer to any property, whether that property is intrinsic or extrinsic. For example, we might refer to an "intrinsic" from a ring, though the ring is external to the character. This leads to oxymoronic phrases such as "extrinsic intrinsic".

The usage of "intrinsic" to mean "extrinsic" occurs in other pages on this wiki, and even within the source code of NetHack. For example, the comment at the top of wield.c refers to wielded weapons conveying intrinsics, though they would actually convey extrinsics. The set_artifact_intrinsic function in artifact.c is another example of this usage. The mintrinsics field of struct monst stores information about both intrinsic and extrinsic resistances of the monsters.[4]

The struct prop that tracks properties has only separated "intrinsic" and "extrinsic" since NetHack 3.3.0.[5]

One can justify the use of "intrinsic" to mean "extrinsic". For example, an amulet versus poison may be extrinsic to your body, but when you wear it, the effect spreads inside your body and becomes intrinsic. When you eat that kobold shaman corpse, or land on poison in a spiked pit, then the poison enters your body but has no effect. There must be some intrinsic defense in your body that stops the poison, though the ring remains outside on your finger. This explanation would not work so well for an amulet of reflection.

If you quaff a potion that provides a property, it is an intrinsic or extrinsic property? One argument states that the contents of the potion enters your body, so the property must be intrinsic. (A look at struct prop supports that argument.) The other argument states any property from an item, including a potion, is an extrinsic. The potion of blindness seems to grant intrinsic blindness (not extrinsic blindness, which you could #wipe away), but the potion of speed seems to grant extrinsic speed, equivalent with speed boots.

If you acquire a property through polymorph, it is an intrinsic or extrinsic property? One argument notes that the property is intrinsic to your current form; the other argument provides that your current form is extrinsic to your true form.

Source code

For details, see prop.h

The source code defines most of the properties at prop.h, line 8. Each property has a representative integer constant. Particularly in objects.c and artilist.h, the integer constants assign the properties granted by using certain items. The integer constants also serve as array indexes into the u.uprops, an array of struct prop that records the source of each of the hero's intrinsics and extrinsics.

While food appraisal and paralysis do not have constants in prop.h, they behave like other intrinsics, thus their inclusion in the lists on this page.

Source code references


This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.