Difference between revisions of "Material"

From NetHackWiki
Jump to navigation Jump to search
(Update to the 3.6.x era)
m (Revised hyphenation to use soft hyphens, which should prevent unneeded line breaks if the display is wide enough)
Line 4: Line 4:
 
* What is good and bad about this material?
 
* What is good and bad about this material?
 
* Does it rust, corrode, burn, rot?
 
* Does it rust, corrode, burn, rot?
* Does the material behave as one would expect?
+
* Does the material behave as one would expect?-->
* Was it a good or bad idea to put this material in the game?-->
 
  
 
The materials available in NetHack are defined in [[objclass.h]]. Some of the material-related properties such as corrodeability are implemented in the same file, others such as flammability are implemented in [[mkobj.c]].
 
The materials available in NetHack are defined in [[objclass.h]]. Some of the material-related properties such as corrodeability are implemented in the same file, others such as flammability are implemented in [[mkobj.c]].
  
== List of all materials ==
+
== List of materials ==
 
{| class="wikitable"
 
{| class="wikitable"
![[Liquid]]!![[Wax]]!![[Veggy]]!![[Flesh]]!![[Paper]]!![[Cloth]]!![[Leather]]!![[Wood]]!![[Bone]]!![[Dragon hide]]!![[Iron]]!![[Metal]]!![[Copper]]!![[Silver]]!![[Gold]]!![[Platinum]]!![[Mithril]]!![[Plastic]]!![[Glass]]!![[Gemstone|Gem-<br />stone]]!![[Mineral]]
+
![[Liquid|Liq&shy;uid]]!![[Wax]]!![[Veggy]]!![[Flesh]]!![[Paper]]!![[Cloth]]!![[Leather]]!![[Wood]]!![[Bone]]!![[Dragon hide]]!![[Iron]]!![[Metal]]!![[Copper|Cop&shy;per]]!![[Silver|Sil&shy;ver]]!![[Gold]]!![[Platinum|Plat&shy;inum]]!![[Mithril|Mith&shy;ril]]!![[Plastic|Plas&shy;tic]]!![[Glass]]!![[Gemstone|Gem&shy;stone]]!![[Mineral|Min&shy;eral]]
 
|-
 
|-
 
||1||2||3||4||5||6||7||8||9||10||11||12||13||14||15||16||17||18||19||20||21
 
||1||2||3||4||5||6||7||8||9||10||11||12||13||14||15||16||17||18||19||20||21
Line 21: Line 20:
 
| colspan="8" style="background:#e67bda;" | [[Organic]]|| colspan="13" |
 
| colspan="8" style="background:#e67bda;" | [[Organic]]|| colspan="13" |
 
|-
 
|-
| colspan="10" | || style="background:#e67bda;" | [[Rust|Rust-<br />prone]]|| colspan="10" |
+
| colspan="10" | || style="background:#e67bda;" | [[Rust|Rust&shy;prone]]|| colspan="10" |
 
|-
 
|-
| colspan="10" | || style="background:#e67bda;" | [[Corrode|Corrod-<br />able]] || || style="background:#e67bda;" | [[Corrode|Corrod-<br />able]] || colspan="8" |
+
| colspan="10" | || style="background:#e67bda;" | [[Corrode|Corrod&shy;able]] || || style="background:#e67bda;" | [[Corrode|Corrod&shy;able]] || colspan="8" |
 
|-
 
|-
||| colspan="7" style="background:#e67bda;" | [[fire|Flammable]] || colspan="9" | || style="background:#e67bda;" | [[fire|Flam<br />mable]] || colspan="3" |
+
||| colspan="7" style="background:#e67bda;" | [[fire|Flammable]] || colspan="9" | || style="background:#e67bda;" | [[fire|Flam&shy;mable]] || colspan="3" |
 
|}
 
|}
  

Revision as of 02:27, 23 December 2019

NetHack allows each item to be of one material. Some materials, such as metal, are very common, while others, such as wax, are rare. Different materials are subject to different hazards: they may, for example, rust, corrode, burn or rot.

The materials available in NetHack are defined in objclass.h. Some of the material-related properties such as corrodeability are implemented in the same file, others such as flammability are implemented in mkobj.c.

List of materials

Liq­uid Wax Veggy Flesh Paper Cloth Leather Wood Bone Dragon hide Iron Metal Cop­per Sil­ver Gold Plat­inum Mith­ril Plas­tic Glass Gem­stone Min­eral
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Flimsy
Metallic
Organic
Rust­prone
Corrod­able Corrod­able
Flammable Flam­mable

There are exceptions to the above categorizations: certain objects such as the spellbook of fireball and the scroll of fire are never flammable. Furthermore candles are not considered flammable for the purposes of the game: they can be burned, but it makes no sense to fireproof them.[1][2]

Variants

Some variants use an object materials system to allow the same item to be generated with different materials.

References

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

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

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