Difference between revisions of "Wand of lightning"

From NetHackWiki
Jump to navigation Jump to search
m (refsrc)
 
(10 intermediate revisions by 3 users not shown)
Line 10: Line 10:
 
The '''wand of lightning''' is a [[wand]] that appears in ''[[NetHack]]''.
 
The '''wand of lightning''' is a [[wand]] that appears in ''[[NetHack]]''.
  
== Effects ==
+
==Generation==
[[Zap]]ping the wand in a given direction that shoots a ray of lightning, dealing 6d6 damage to non-[[shock resistance|shock resistant]] targets; it also [[blind]]s targets in its line of fire for d50 (more) turns with a cap of 127,<ref name="blind">{{sourcecode|engrave.c|1107}}, [[Zap.c#line1914]], [[Zap.c#line3028]], [[zap.c#line3465]]</ref> and may destroy any [[rings]], [[wands]] or [[amulets]] in their inventory unless they have [[reflection]]. The ray bounces when it hits walls or targets with reflection; being hit by a rebound will blind you for (ulevel/2+1)d50 (more) turns.<ref name="blind"/>
+
A [[Wizard]] may receive a wand of lightning as part of their starting inventory.
  
Only the [[ring of shock resistance]] and the wand of lightning itself are immune to destruction by shock damage,{{refsrc|zap.c|3881}} e.g. chest traps, a returning [[Mjollnir]], [[energy vortices]] or [[electric eel]]s.
+
There is a 4% chance that a [[Wand#Generation|randomly-generated wand]] within the dungeon and its branches will be a wand of lightning. Monsters may generate with the wand as a random [[offensive item]].
  
Like a [[wand of fire]], [[engraving]] with a wand of lightning will burn text into the ground and [[auto-identify]] it; however, doing so will blind you for d50 (more) turns.<ref name="blind"/> You can avoid this by cancelling the prompt when asked what to engrave.
+
The [[Cyclops]], the [[Healer]] [[quest nemesis]], will always be generated with a wand of lightning on his square.{{refsrc|dat/Healer.des|239|version=NetHack 3.6.7}}
  
In the event you zap yourself with a wand of lightning, you are blinded for 0-99 (more) turns.<ref name="blind"/>
+
==Description==
 +
[[Zap]]ping the wand in a given direction shoots a ray of lightning, dealing 6d6 damage to targets without [[shock resistance]] (including [[you]] if you are hit by one);{{refsrc|src/zap.c|3065|nethack=3.6.7|comment=<code>nd</code> is 6}}{{refsrc|src/zap.c|3711|nethack=3.6.7}} monsters hit by the ray are [[blind]]ed for d50 turns, and the ray may destroy any [[rings]] and [[wands]] in the inventory of monsters that it hits (including you) unless they have [[reflection]].{{refsrc|src/zap.c|nethack=3.6.7|3716|comment=in <code>zhitm()</code>.  Despite code to add d50 turns of blindness capped at 127, no additional turns of blindness are actually added to already-blind monsters, because blinded monsters resist further blindness.}} Monsters that the ray misses are not blinded, nor are those that reflect the ray.{{refsrc|src/zap.c|nethack=3.6.7|4127|comment=the code calls <code>zhitm()</code> only on a non-reflected hit}} The ray bounces when it hits walls or targets with reflection.
  
[[Apply]]ing a wand of lightning to break it creates an explosion that deals quadruple the normal damage of applying other wands{{refsrc|apply.c|2660}} to yourself and all monsters surrounding squares. Your inventory is subject to the same effects as though you were zapped with the wand, i.e. your rings and wands may explode.
+
If a bolt of lightning passes through your square, you are blinded for 6d50 turns unless you are already blind or resistant to blindness, even if it misses you or you have reflection.{{refsrc|src/zap.c|4233|nethack=3.6.7}}{{refsrc|src/zap.c|2646|nethack=3.6.7|comment=<code>flashburn()</code>; note that it calls <code>resists_blnd()</code>, which returns <code>TRUE</code> if you are already blind or otherwise resist blindness.}} If you zap a wand of lightning directly at yourself, you are blinded for 1&ndash;100 turns unless you are already blind or resist blindness, and take 12d6 damage unless shock resistant.{{refsrc|src/zap.c|2295|nethack=3.6.7}} Being hit by a bolt of lightning [[abuse]]s [[constitution]].
  
== Strategy ==
+
The wand of lightning is itself immune to destruction by lightning rays and sources of shock damage (e.g. chest traps, a returning [[Mjollnir]], [[energy vortices]] or [[electric eel]]s), and the [[ring of shock resistance]] is also immune to rays of lightning.{{refsrc|src/zap.c|5112|nethack=3.6.7}}
Wands of lightning are a powerful offensive item since they few monsters resist shock; however, it is especially annoying when a [[soldier]] or another monster surprises you with a bolt that destroys your only [[ring of slow digestion]]. [[Reflection]] is naturally the best defense against monsters with wands of lightning, but it also helps to have a means of curing blindness (e.g. a [[unicorn horn]]), as well as a means to safely stash your magical items.
 
  
You should avoid breaking these wands as a form of crowd-control ''unless'' you have no valuable rings or wands in your open inventory, or are otherwise [[Things To Do If You're Going to Die Next Turn|going to die next turn anyway]].
+
Like a [[wand of fire]], [[engraving]] with a wand of lightning will burn text into the ground and [[auto-identify]] it; however, doing so will blind you for d50 turns unless you are already blind or resist blindness.{{refsrc|src/engrave.c|791|nethack=3.6.7}}{{refsrc|src/engrave.c|1162|nethack=3.6.7}} You can avoid this by cancelling the prompt when asked what to engrave.{{refsrc|src/engrave.c|1034|nethack=3.6.7|comment=cancelling the prompt causes <code>doengrave()</code> to return early}}
 +
 
 +
[[Apply]]ing a wand of lightning to break it creates an explosion that deals quadruple the normal damage of applying other wands to yourself and all monsters on surrounding squares, and may destroy rings and wands.{{refsrc|src/apply.c|3367|nethack=3.6.7}}
 +
 
 +
==Strategy==
 +
Wands of lightning are a powerful offensive item through much of the game, since very few monsters resist shock; however, it is just as devastating to you should you encounter one in the hands of [[GWTWOD|an early-game monster]], and can prove to be an annoyance later on if a [[soldier]] or another monster surprises you with a bolt that destroys valuable rings such as {{= of|slow digestion}}. [[Reflection]] is naturally the best defense after shock resistance against monsters with wands of lightning, but it also helps to have a means of curing blindness (e.g. a [[unicorn horn]]) and a way to safely stash your magical items.
 +
 
 +
A wand of lightning can be useful to blast apart annoying wands in a hostile monster's inventory, such as a [[wand of digging]] used by a constantly-fleeing opponent; conversely, avoid using the wand on monsters that have wands and rings you wish to preserve, such as a [[wand of death]] or rings of {{= of|levitation|and=1|free action}}.
 +
 
 +
Breaking a wand of lightning can be powerful as a means of crowd control, but will also deal immense damage to you unless you are shock-resistant, and will also endanger valuable rings and wands in your inventory. If doing so, be sure to briefly stash whatever vulnerable items you have in a bag or other container, ''unless'' you either have none or are otherwise [[Things To Do If You're Going to Die Next Turn|going to die soon]].
 +
 
 +
The wand of lightning is also a very useful tool to engrave a durable [[Elbereth]] well into even the late-game, particularly for [[pacifist]] [[conduct]] where you will be reliant on such engravings to deter hostile monsters.
 +
 
 +
==History==
 +
The wand of lightning first appears in [[NetHack 2.3e]].
  
 
==Messages==
 
==Messages==
Line 32: Line 46:
 
==References==
 
==References==
 
<references/>
 
<references/>
 
+
{{nethack-366}}
 
[[Category:Wands|Lightning]]
 
[[Category:Wands|Lightning]]
{{nethack-364}}
 

Latest revision as of 04:29, 21 March 2023

/
Name lightning
Appearance random
Abundance 4%
Base price 175 zm
Weight 7
Type ray
Maximum charges 8
Monster use May be used offensively by monsters.

The wand of lightning is a wand that appears in NetHack.

Generation

A Wizard may receive a wand of lightning as part of their starting inventory.

There is a 4% chance that a randomly-generated wand within the dungeon and its branches will be a wand of lightning. Monsters may generate with the wand as a random offensive item.

The Cyclops, the Healer quest nemesis, will always be generated with a wand of lightning on his square.[1]

Description

Zapping the wand in a given direction shoots a ray of lightning, dealing 6d6 damage to targets without shock resistance (including you if you are hit by one);[2][3] monsters hit by the ray are blinded for d50 turns, and the ray may destroy any rings and wands in the inventory of monsters that it hits (including you) unless they have reflection.[4] Monsters that the ray misses are not blinded, nor are those that reflect the ray.[5] The ray bounces when it hits walls or targets with reflection.

If a bolt of lightning passes through your square, you are blinded for 6d50 turns unless you are already blind or resistant to blindness, even if it misses you or you have reflection.[6][7] If you zap a wand of lightning directly at yourself, you are blinded for 1–100 turns unless you are already blind or resist blindness, and take 12d6 damage unless shock resistant.[8] Being hit by a bolt of lightning abuses constitution.

The wand of lightning is itself immune to destruction by lightning rays and sources of shock damage (e.g. chest traps, a returning Mjollnir, energy vortices or electric eels), and the ring of shock resistance is also immune to rays of lightning.[9]

Like a wand of fire, engraving with a wand of lightning will burn text into the ground and auto-identify it; however, doing so will blind you for d50 turns unless you are already blind or resist blindness.[10][11] You can avoid this by cancelling the prompt when asked what to engrave.[12]

Applying a wand of lightning to break it creates an explosion that deals quadruple the normal damage of applying other wands to yourself and all monsters on surrounding squares, and may destroy rings and wands.[13]

Strategy

Wands of lightning are a powerful offensive item through much of the game, since very few monsters resist shock; however, it is just as devastating to you should you encounter one in the hands of an early-game monster, and can prove to be an annoyance later on if a soldier or another monster surprises you with a bolt that destroys valuable rings such as slow digestion. Reflection is naturally the best defense after shock resistance against monsters with wands of lightning, but it also helps to have a means of curing blindness (e.g. a unicorn horn) and a way to safely stash your magical items.

A wand of lightning can be useful to blast apart annoying wands in a hostile monster's inventory, such as a wand of digging used by a constantly-fleeing opponent; conversely, avoid using the wand on monsters that have wands and rings you wish to preserve, such as a wand of death or rings of levitation and free action.

Breaking a wand of lightning can be powerful as a means of crowd control, but will also deal immense damage to you unless you are shock-resistant, and will also endanger valuable rings and wands in your inventory. If doing so, be sure to briefly stash whatever vulnerable items you have in a bag or other container, unless you either have none or are otherwise going to die soon.

The wand of lightning is also a very useful tool to engrave a durable Elbereth well into even the late-game, particularly for pacifist conduct where you will be reliant on such engravings to deter hostile monsters.

History

The wand of lightning first appears in NetHack 2.3e.

Messages

You are blinded by the flash!
You were blinded by a bolt of lightning.
Your arm tingles.
While blinded, a bolt of lightning was fired at you and missed.

References

  1. dat/Healer.des in NetHack 3.6.7, line 239
  2. src/zap.c in NetHack 3.6.7, line 3065: nd is 6
  3. src/zap.c in NetHack 3.6.7, line 3711
  4. src/zap.c in NetHack 3.6.7, line 3716: in zhitm(). Despite code to add d50 turns of blindness capped at 127, no additional turns of blindness are actually added to already-blind monsters, because blinded monsters resist further blindness.
  5. src/zap.c in NetHack 3.6.7, line 4127: the code calls zhitm() only on a non-reflected hit
  6. src/zap.c in NetHack 3.6.7, line 4233
  7. src/zap.c in NetHack 3.6.7, line 2646: flashburn(); note that it calls resists_blnd(), which returns TRUE if you are already blind or otherwise resist blindness.
  8. src/zap.c in NetHack 3.6.7, line 2295
  9. src/zap.c in NetHack 3.6.7, line 5112
  10. src/engrave.c in NetHack 3.6.7, line 791
  11. src/engrave.c in NetHack 3.6.7, line 1162
  12. src/engrave.c in NetHack 3.6.7, line 1034: cancelling the prompt causes doengrave() to return early
  13. src/apply.c in NetHack 3.6.7, line 3367