Erosion in NetHack is an attribute that can apply to some items depending on their material. Eroded weapons (including weapon-tools) and armor suffer from degraded performance—weapons have their damage decreased, and armor's intrinsic AC bonus will be reduced by one for each level of erosion (in neither case affecting enchantment, and never reducing intrinsic damage or AC below zero). This means a +0 dwarvish iron helm's AC is −2, while a thoroughly rusty +1 dwarvish iron helm's AC is −1. Erosion does not affect an item's other enchantment-based effects; a thoroughly rusty +2 helm of brilliance still provides +2 to intelligence and wisdom. The following types of erosion exist:
- Rust affects only items made from iron. It is caused by wetting (from a potion, fountain, pool, etc.) or by the attack of a rust monster or gray ooze.
- Corrosion affects copper or iron items. It is caused by exposure to acidic environments (potions or some monsters).
- Burning affects wood, leather, cloth, and plastic. It is caused by fire.
- Rotting affects wood, leather, and cloth. It is caused by exposure to brown puddings.
Items can suffer up to three levels of erosion, for example:
very rusty, and
thoroughly rusty. The types of damage do not add; rather the greater damage is used. Thus, a very rusty corroded short sword has a −2 penalty rather than −3. An item can be both thoroughly rusty and thoroughly corroded, but it will never suffer more than 3 points of damage.
Other erodable items
If you are polymorphed into an iron golem, rust traps will kill your monster form (even if unchanging, unless you have the half physical damage extrinsic). All iron golems suffer this fate. Similarly, a wood golem can be rotted and destroyed.
Prevention and repair
Many objects can be protected from erosion, and any existing erosion can be repaired. A metal object that is so protected identifies as rustproof, and an organic or plastic object identifies as fireproof. The procedure is the same for both types:
- A weapon or weapon-tool can be protected from erosion and have any damage repaired by wielding it and reading a non-cursed scroll of enchant weapon while confused.
- Any armor can be protected from erosion and have any damage repaired by wearing it, removing all other armor, and reading a non-cursed scroll of enchant armor while confused.
- Any armor can also be protected from erosion by wearing it, removing all other armor, and reading a cursed scroll of destroy armor while confused. This procedure does not repair existing damage.
- Successfully dipping for Excalibur will remove any existing erosion on the long sword and make it rustproof.
- Any wishable item can be wished for in an unerodable state. (Any of the "-proof" adjectives can be used to erode-proof any item; a common choice is "fixed", which is intended for crysknives but shares the same bit in the object data structure as erode-proofing.)
- Items retain their erode-proof status when polymorphed. One can create a fireproof bag of holding or magic marker this way, whose presence (as seen in a dump file, for example) would normally indicate a wish.
If the scroll of enchant weapon or armor is cursed, this procedure instead strips the item of any protection from erosion, and has no effect on existing erosion.
No erosion event will ever affect body armor worn under a cloak, nor a shirt worn under body armor or a cloak. One might choose, then, to wear a junk cloak such as a dwarvish cloak to protect a banded mail from rust.
Objects can be temporarily protected from rust or corrosion by greasing them. An event which would normally rust or corrode the item will instead have a chance of removing the grease. Also, one level of rust or corrosion can be removed from a weapon by dipping it into a potion of oil.
Erosion can be removed from a wielded weapon as a prayer boon, but this does not erode-proof it.
In addition to erode-proofing, blessed items may resist erosion, with a chance dependent on your Luck.
In most cases, using scrolls of enchant armor to erode-proof armor is a waste of resources. Since erosion only affects the object's base AC, and most items don't have more than 1 or 2 base AC, scrolls are usually better spent increasing the enchantment of your gear (unless you are unable to enchant your gear safely any more and don't have enough markers to make use of blanking the surplus scrolls). Many forms of body armor grant 3 or more AC, but usually the only suits you should consider enchanting are dragon scale mail and perhaps mithril-coats, neither of which can erode. Using extra scrolls to fix erosion is an option, however. It might also be worthwhile to fire-proof speed boots, jumping boots, or water walking boots, as any of these will be destroyed should you accidentally step into lava. This applies particularly to Valkyries, whose quest contains lava in abundance. A cloak of protection may also be worth erodeproofing, since its base AC is 3.
In contrast, you generally will want an erode-proof main weapon, particularly since the erosion penalty is doubled for double-damage weapons. However, it is rarely necessary to do the erode-proofing yourself; artifact weapons from sacrifice will always be erode-proof, while those from wishes can be explicitly wished for erode-proof. However, in the case of a good weapon found randomly in the dungeon (for example Fire and Frost Brand), it is worth spending a scroll of enchant weapon to make it rustproof. Also, cavemen using the Sceptre of Might will also want to make it rustproof, as it is not generated so.
Before NetHack 3.1.0, items did not have erosion as such; rather, damage operated by reducing the enchantment. Thus a rust monster attacked rather like a modern disenchanter, except that its attack was blocked by rustproofing rather than magic cancellation.
In NetHack 3.6.0 and earlier versions, metal wands, rings, and tools such as stethoscopes and skeleton keys could rust and corrode, but this was purely cosmetic and did not affect their performance.
In SLASH'EM, rust may also be removed from a weapon by applying a whetstone while standing over a water source.