Difference between revisions of "Material"

From NetHackWiki
Jump to navigation Jump to search
m (List of materials: Increase contrast for DarkVector)
(List of materials: undefined (worm teeth))
Line 10: Line 10:
 
== List of materials ==
 
== List of materials ==
 
{| class="wikitable"
 
{| class="wikitable"
![[Liquid|Liq­uid]]!![[Wax]]!![[Veggy]]!![[Flesh]]!![[Paper]]!![[Cloth]]!![[Leather]]!![[Wood]]!![[Bone]]!![[Dragon hide]]!![[Iron]]!![[Metal]]!![[Copper|Cop­per]]!![[Silver|Sil­ver]]!![[Gold_(material)|Gold]]!![[Platinum|Plat­inum]]!![[Mithril|Mith­ril]]!![[Plastic|Plas­tic]]!![[Glass]]!![[Gemstone|Gem­stone]]!![[Mineral|Min­eral]]
+
!Unde­fined!![[Liquid|Liq­uid]]!![[Wax]]!![[Veggy]]!![[Flesh]]!![[Paper]]!![[Cloth]]!![[Leather]]!![[Wood]]!![[Bone]]!![[Dragon hide]]!![[Iron]]!![[Metal]]!![[Copper|Cop­per]]!![[Silver|Sil­ver]]!![[Gold_(material)|Gold]]!![[Platinum|Plat­inum]]!![[Mithril|Mith­ril]]!![[Plastic|Plas­tic]]!![[Glass]]!![[Gemstone|Gem­stone]]!![[Mineral|Min­eral]]
 
|-
 
|-
||1||2||3||4||5||6||7||8||9||10||11||12||13||14||15||16||17||18||19||20||21
+
||0||1||2||3||4||5||6||7||8||9||10||11||12||13||14||15||16||17||18||19||20||21
 
|-
 
|-
| colspan="7" style="background:#a67bff;" | [[Flimsy]] || colspan="14" |  
+
| colspan="8" style="background:#a67bff;" | [[Flimsy]] || colspan="14" |  
 
|-
 
|-
| colspan="10" | || colspan="7" style="background:#a67bff;" | [[Metallic]]|| colspan="4" |  
+
| colspan="11" | || colspan="7" style="background:#a67bff;" | [[Metallic]]|| colspan="4" |  
 
|-
 
|-
| colspan="8" style="background:#a67bff;" | [[Organic]]|| colspan="13" |
+
| colspan="9" style="background:#a67bff;" | [[Organic]]|| colspan="13" |
 
|-
 
|-
| colspan="10" | || style="background:#a67bff;" | [[Rust|Rust­prone]]|| colspan="10" |
+
| colspan="11" | || style="background:#a67bff;" | [[Rust|Rust­prone]]|| colspan="10" |
 
|-
 
|-
| colspan="10" | || style="background:#a67bff;" | [[Corrode|Corrod­able]] || || style="background:#a67bff;" | [[Corrode|Corrod­able]] || colspan="8" |
+
| colspan="11" | || style="background:#a67bff;" | [[Corrode|Corrod­able]] || || style="background:#a67bff;" | [[Corrode|Corrod­able]] || colspan="8" |
 
|-
 
|-
||| colspan="7" style="background:#a67bff;" | [[fire|Flammable]] || colspan="9" | || style="background:#a67bff;" | [[fire|Flam­mable]] || colspan="3" |
+
| style="background:#a67bff;" | [[fire|Flam­mable]] || || colspan="7" style="background:#a67bff;" | [[fire|Flammable]] || colspan="9" | || style="background:#a67bff;" | [[fire|Flam­mable]] || colspan="3" |
 
|}
 
|}
 +
 +
[[Worm tooth|Worm teeth]] are the only object with an undefined material. <!-- fixed in 3.7, but will remain relevant for variants -->
  
 
There are exceptions to the above categorizations; certain objects such as the [[spellbook of fireball]] and the [[scroll of fire]] are never flammable. Furthermore [[candle]]s are not considered flammable for the purposes of the game; they can be burned, but it makes no sense to fireproof them.{{refsrc|src/mkobj.c|1682|version=NetHack 3.6.2}}<ref>https://github.com/NetHack/NetHack/blob/NetHack-3.6/src/mkobj.c#L1704</ref>
 
There are exceptions to the above categorizations; certain objects such as the [[spellbook of fireball]] and the [[scroll of fire]] are never flammable. Furthermore [[candle]]s are not considered flammable for the purposes of the game; they can be burned, but it makes no sense to fireproof them.{{refsrc|src/mkobj.c|1682|version=NetHack 3.6.2}}<ref>https://github.com/NetHack/NetHack/blob/NetHack-3.6/src/mkobj.c#L1704</ref>

Revision as of 12:42, 18 January 2022

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

Unde­fined 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
0 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
Flam­mable Flammable Flam­mable

Worm teeth are the only object with an undefined material.

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.