Difference between revisions of "Passive attack"

From NetHackWiki
Jump to navigation Jump to search
(added details of passive attacks for all monsters; no longer a stub)
Line 3: Line 3:
 
The most infamous example of such a passive attack is the [[floating eye]]'s [[paralysis]] gaze - hitting a floating eye normally paralyses the player for a period of time, during which they are vulnerable to outside attack - a cause of numerous [[YASD]]s.  Other well-known examples include the various [[jelly|jellies]], [[pudding]]s, [[mold]]s and [[acid blob]]s.
 
The most infamous example of such a passive attack is the [[floating eye]]'s [[paralysis]] gaze - hitting a floating eye normally paralyses the player for a period of time, during which they are vulnerable to outside attack - a cause of numerous [[YASD]]s.  Other well-known examples include the various [[jelly|jellies]], [[pudding]]s, [[mold]]s and [[acid blob]]s.
  
{{stub}}
+
==List of passive attacks==
 +
Passive attacks against the player are handled in <code>[[Source:Uhitm.c#passivemm|uhitm.c:passive()]]</code>.  Monsters have at most 1 passive attack, which is defined separately from any other attacks they might have.
 +
 
 +
===Acid===
 +
{{monsymlink|acid blob}}, {{monsymlink|spotted jelly}}, {{monsymlink|ochre jelly}}, {{monsymlink|green mold}}
 +
* 50% chance of an [[acid]] damage.  If this succeeds, there's a 1/30 chance that your armor is subject to [[corrosion]]
 +
* 1/6 chance, independent of the above, that whatever you attacked with (boot, weapon, etc) is subject to erosion
 +
* Your [[strength]] is [[abuse]]d
 +
 
 +
===Stoning===
 +
{{monsymlink|chickatrice}}, {{monsymlink|cockatrice}}
 +
* If you hit with a bare appendage, you [[Stoning|turn to stone]] and die instantly
 +
 
 +
===Rust===
 +
{{monsymlink|rust monster}}
 +
* If the monster is [[cancel]]ed, nothing happens
 +
* If you kicked it, your boots suffer the effects of a [[Trap#.5E_Rust_trap|rust trap]]
 +
* Otherwise, 1/6 chance that your weapon/gloves are subject to [[rust]]
 +
 
 +
===Corrosion===
 +
{{monsymlink|black pudding}}
 +
* Exactly like the rust attack above, but with the more-powerful corrosion effect
 +
 
 +
===Magic missile===
 +
{{monsymlink|Oracle}} (the source code comment is "wrath of gods for attacking Oracle")<ref>{{sourcecode|uhitm.c|2222}}</ref>
 +
* If you have magic resistance, no effect
 +
* Else, you are hit with a magic missile attack
 +
 
 +
===Drain enchantment===
 +
{{monsymlink|disenchanter}}
 +
* If the monster is canceled, nothing happens
 +
* If you attacked with an enchanted weapon/boots/gloves, they lose 1 enchantment.  [[Artifact]] weapons resist the drain 90% of the time, and ordinary equipment resists 10% of the time.
 +
 
 +
===Paralysis===
 +
{{monsymlink|gelatinous cube}}, {{monsymlink|floating eye}}
 +
* If the monster is canceled or dies from the blow, nothing happens
 +
* If you have [[free action]], "You momentarily stiffen"
 +
* If it's a floating eye and you are [[blind]] or have [[reflection]], nothing happens
 +
* Else, there is a 1/3 chance that you suffer the effects of the floating eye or gelatinous cube
 +
* Being frozen by a gelatinous cube abuses [[dexterity]]
 +
 
 +
===Cold===
 +
{{monsymlink|blue jelly}}, {{monsymlink|brown mold}}
 +
* If the monster is canceled or dies from the blow, or if you are cold resistant, nothing happens
 +
* Else, there is a 1/3 chance that you suffer the effects
 +
* A [[cold]] attack
 +
* The monster gains half its attack damage in HP, possibly increasing its max HP
 +
* If the monster's max HP is now high enough, it reproduces
 +
The self-healing is makes [[Blue jelly|blue jellies]] especially deadly to lower-level characters who can't reliably hit hard enough to offset the healing.
 +
 
 +
===Stunning===
 +
{{monsymlink|yellow mold}}
 +
* If the monster is canceled or dies from the blow, nothing happens
 +
* 1/3 chance that you become [[stun]]ned
 +
 
 +
===Fire===
 +
{{monsymlink|fire vortex}}, {{monsymlink|fire elemental}}, {{monsymlink|red mold}}
 +
* If the monster is canceled or dies from the blow, or if you are fire resistant nothing happens
 +
* 1/3 chance of [[fire]] damage
 +
* If you are polymorphed into an [[iron golem]], you heal by the damage amount, instead
 +
 
 +
===Electricity===
 +
{{monsymlink|energy vortex}}
 +
* If the monster is canceled or dies from the blow, or if you are shock resistant nothing happens
 +
* 1/3 chance of [[shock]] damage
 +
* If you are polymorphed into a [[flesh golem]], you heal by 1/6 of the damage amount, instead (a reference to Frankenstein's Monster)
 +
 
 +
===Sticky===
 +
{{monsymlink|large mimic}}, {{monsymlink|giant mimic}}
 +
* If you walk into the mimic without knowing that there is a monster there, you become stuck
 +
 
 +
===Slime===
 +
* Although the [[green slime]] has a passive [[slime]] attack defined, there is no code to handle it.
  
 
[[Category:Monster attacks]]
 
[[Category:Monster attacks]]

Revision as of 05:54, 15 March 2008

Some monsters possess a passive attack - it is used automatically in retaliation to a melee attack against the monster. They can be avoided by use of ranged weapons, polearms, or being resistant to the attack.

The most infamous example of such a passive attack is the floating eye's paralysis gaze - hitting a floating eye normally paralyses the player for a period of time, during which they are vulnerable to outside attack - a cause of numerous YASDs. Other well-known examples include the various jellies, puddings, molds and acid blobs.

List of passive attacks

Passive attacks against the player are handled in uhitm.c:passive(). Monsters have at most 1 passive attack, which is defined separately from any other attacks they might have.

Acid

b acid blob, j spotted jelly, j ochre jelly, F green mold

  • 50% chance of an acid damage. If this succeeds, there's a 1/30 chance that your armor is subject to corrosion
  • 1/6 chance, independent of the above, that whatever you attacked with (boot, weapon, etc) is subject to erosion
  • Your strength is abused

Stoning

c chickatrice, c cockatrice

  • If you hit with a bare appendage, you turn to stone and die instantly

Rust

R rust monster

  • If the monster is canceled, nothing happens
  • If you kicked it, your boots suffer the effects of a rust trap
  • Otherwise, 1/6 chance that your weapon/gloves are subject to rust

Corrosion

P black pudding

  • Exactly like the rust attack above, but with the more-powerful corrosion effect

Magic missile

@ Oracle (the source code comment is "wrath of gods for attacking Oracle")[1]

  • If you have magic resistance, no effect
  • Else, you are hit with a magic missile attack

Drain enchantment

R disenchanter

  • If the monster is canceled, nothing happens
  • If you attacked with an enchanted weapon/boots/gloves, they lose 1 enchantment. Artifact weapons resist the drain 90% of the time, and ordinary equipment resists 10% of the time.

Paralysis

b gelatinous cube, e floating eye

  • If the monster is canceled or dies from the blow, nothing happens
  • If you have free action, "You momentarily stiffen"
  • If it's a floating eye and you are blind or have reflection, nothing happens
  • Else, there is a 1/3 chance that you suffer the effects of the floating eye or gelatinous cube
  • Being frozen by a gelatinous cube abuses dexterity

Cold

j blue jelly, F brown mold

  • If the monster is canceled or dies from the blow, or if you are cold resistant, nothing happens
  • Else, there is a 1/3 chance that you suffer the effects
  • A cold attack
  • The monster gains half its attack damage in HP, possibly increasing its max HP
  • If the monster's max HP is now high enough, it reproduces

The self-healing is makes blue jellies especially deadly to lower-level characters who can't reliably hit hard enough to offset the healing.

Stunning

F yellow mold

  • If the monster is canceled or dies from the blow, nothing happens
  • 1/3 chance that you become stunned

Fire

v fire vortex, E fire elemental, F red mold

  • If the monster is canceled or dies from the blow, or if you are fire resistant nothing happens
  • 1/3 chance of fire damage
  • If you are polymorphed into an iron golem, you heal by the damage amount, instead

Electricity

v energy vortex

  • If the monster is canceled or dies from the blow, or if you are shock resistant nothing happens
  • 1/3 chance of shock damage
  • If you are polymorphed into a flesh golem, you heal by 1/6 of the damage amount, instead (a reference to Frankenstein's Monster)

Sticky

m large mimic, m giant mimic

  • If you walk into the mimic without knowing that there is a monster there, you become stuck

Slime

  • Although the green slime has a passive slime attack defined, there is no code to handle it.
  • uhitm.c, line 2222