Property

From NetHackWiki
Revision as of 04:30, 10 July 2006 by Kernigh (talk | contribs) (Begin constructing article to list all properties from prop.h. Using invoke as reference, table for special powers is already complete. Mark as stub.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A property is one of several traits which the hero or a monster either has or does not have. Properties vary widely; some properties correspond to particular rings. The hero can expose many properties through enlightenment. A property is "boolean", you either have it or you do not. Thus luck and the prayer timeout are not properties in this sense; there is no hero for whom luck and prayer timeout does not apply.

Properties include:

In the source code, prop.h#line8 lists most of the properties and artifact.h#line53 lists the special powers. Each property has a representative integer constant. Particularily in objects.c and artilist.h, the integer constants assign the properties granted by using certain items.

Full list

Property Integer constant Notable sources
fire resistance
cold resistance
sleep resistance
disintegration resistance
shock resistance
poison resistance
acid resistance
stone resistance
adornment
regeneration
searching
see invisible
invisible
teleportation (teleportitis)
teleport control
polymorph
polymorph control
levitation
stealth
aggravate monster
conflict
protection
protection from shape changers
warning
telepathy
speed
stun
confusion
sickness
blindness
sleep
wounded legs
stoning
strangulation
hallucination
hallucination resistance
fumbling
jumping
water walking
hunger
slippery fingers
reflection
life saving
magic resistance
displacement
clairovoyance
nausea / vomiting
energy regeneration
magical breathing
half spell damage
half physical damage
sickness resistance
draining resistance
undead warning
invulnerability
free action
swimming
slime
sustain ability
flying
unchanging
walking through walls
slow digestion
infravision
warning
monster detection
This page is a stub. Should you wish to do so, you can contribute by expanding this page.

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

"Finish table."

Special powers

Special power is an invocation property. You must #invoke an artifact to use it; you do not obtain the property simply by carrying or wielding the artifact.

Property Integer constant Source
taming TAMING The Palantir of Westernesse
healing HEALING The Staff of Aesculapius
gain energy ENERGY_BOOST The Mitre of Holiness
untrap UNTRAP The Master Key of Thievery
charging CHARGE_OBJ The Platinum Yendorian Express Card
level teleport LEVEL_TELE The Orb of Fate
branchport CREATE_PORTAL The Eye of the Aethiopica
enlightenment ENLIGHTENING The Eyes of the Overworld
arrow creation CREATE_AMMO The Longbow of Diana