Difference between revisions of "Charging"
(max 7 charges recorded) |
(→Tools: removed reference to missing anchor) |
||
(25 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{for|magically improving weapons and armor|scroll of enchant weapon|scroll of enchant armor}} | ||
Some [[item]]s, like [[wand]]s, [[magic harp]]s, [[horn of plenty|horns of plenty]], [[brass lantern]]s and the [[Bell of Opening]] are only effective for a finite number of uses. Each potential use is called a '''charge''', and '''charging''' is the process of adding more charges to an item. The most common methods of charging are the [[scroll of charging]] and [[the Platinum Yendorian Express Card]]. | Some [[item]]s, like [[wand]]s, [[magic harp]]s, [[horn of plenty|horns of plenty]], [[brass lantern]]s and the [[Bell of Opening]] are only effective for a finite number of uses. Each potential use is called a '''charge''', and '''charging''' is the process of adding more charges to an item. The most common methods of charging are the [[scroll of charging]] and [[the Platinum Yendorian Express Card]]. | ||
− | Such items are shown with two numbers at the end of their description | + | Such items are shown with two numbers at the end of their description when fully [[identification|identified]], e.g. <tt>a wand of magic missile (0:5)</tt>. The first number is how many times the item has been recharged, and the second is the number of charges remaining. The recharge counter stops at <tt>(7:y)</tt>,{{refsrc|read.c|302}} though the item can still be recharged further if applicable. A discharged item is <tt>(x:0)</tt>, and a [[Cancellation|canceled]] item is <tt>(x:-1)</tt>. |
− | + | Repeated charging is potentially problematic. A [[wand]] charged more than once might explode; this is why nearly all players reduce a wand to 0 charges before charging it. A [[wand of wishing]] charged the second time always explodes; thus [[player]]s with a wand of wishing (1:0) should always [[Wresting|wrest]] the last wish (zap the wand repeatedly) instead of charging. | |
− | |||
− | Repeated charging is potentially problematic. A [[wand]] charged more than once might explode; this is why nearly all players | ||
== Wands == | == Wands == | ||
− | If a wand has been recharged at least once before, there is a chance it might explode, destroying itself. A [[wand of wishing]] | + | [[File:NHC-Wand-Charging-Odds.png|thumb|n<sup>3</sup> / 343]]If a wand has been recharged at least once before, there is a chance it might explode, destroying itself. A [[wand of wishing]] always explodes if recharged more than once. For other wands, the chance of an explosion is <tt>n<sup>3</sup> / 343</tt>, where <tt>n</tt> is the number of times the wand has been recharged before. This is summarized in the following table:{{refsrc|read.c|227}} |
{| class="prettytable" | {| class="prettytable" | ||
Line 18: | Line 17: | ||
|} | |} | ||
− | + | And the combined, cumulative probability of working towards maximum charges: | |
+ | [[File:NHC-Cumulative-Wand-Charging-Odds.png|thumb|Cumulative]] | ||
+ | |||
+ | {| class="prettytable" | ||
+ | ! Times recharged !! 0 !! 1 !! 2 !! 3 !! 4 !! 5 !! 6 !! 7 | ||
+ | |- | ||
+ | ! Cumulative chance | ||
+ | | (never) || 0.29% || 2.62% || 10.28% || 27.02% || 53.62% || 82.83% || (always) | ||
+ | |} | ||
+ | |||
+ | And thus the expected average, per wand, is 5.2334 charges before the wand explodes. | ||
+ | <!-- ' Linear interpolation. | ||
+ | Interpolate(L,x,y) = (x*(1-L)+y*L) | ||
+ | Function Interpolate(L,x,y) is defined | ||
+ | ' Find where 50% lies between 0 and 1. | ||
+ | 50/(27.02+53.62) | ||
+ | Ans = 0.620039683 | ||
+ | ' Interpolate between 4 and 5, ~62% of the way. | ||
+ | Interpolate(Ans,4,5) | ||
+ | Ans = 4.620039683 --> | ||
− | + | An exploding wand deals between <tt>1</tt> and <tt>2(maxhp+1)/3</tt> damage,{{refsrc|read.c|1304}} so don't risk it if you're below full HP or in a place that isn't safe. | |
− | + | If the wand does not explode, it gains some charges. | |
− | {| class="prettytable" | + | Blessed charging picks a number of charges between the wand's natural maximum charges and <tt>(max charges − 4)</tt> inclusive, with all values having equal probability,{{refsrc|read.c|257|name=charge_target}} excluding wands of wishing for which 3 is always chosen.<ref name="charge_target"/>{{refsrc|read.c|254}} This is summarized by the following probability table: |
− | ! Wand type | + | |
+ | {| class="prettytable" style="text-align: center;" | ||
+ | ! rowspan=2|Wand type !! colspan=15|Number chosen | ||
+ | |- | ||
+ | | 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 | ||
|- | |- | ||
! [[wand of wishing]] | ! [[wand of wishing]] | ||
Line 31: | Line 53: | ||
|- | |- | ||
! directional | ! directional | ||
− | | || || || || | + | | || || || 20% || 20% || 20% || 20% || 20% || || || || || || || |
|- | |- | ||
! non-directional | ! non-directional | ||
− | | || || || || | + | | || || || || || || || || || || 20% || 20% || 20% || 20% || 20% |
|} | |} | ||
− | Uncursed charging | + | Uncursed charging chooses a number in the same way as blessed charging, then reduces the number to a value between 1 and the chosen number inclusive.{{refsrc|read.c|258}} The net result is summarized by the following probability table: |
− | {| class="prettytable" | + | {| class="prettytable" style="text-align: center;" |
− | ! Wand type | + | ! rowspan=2|Wand type !! colspan=15|Number chosen |
+ | |- | ||
+ | | 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 | ||
|- | |- | ||
! [[wand of wishing]] | ! [[wand of wishing]] | ||
Line 46: | Line 70: | ||
|- | |- | ||
! directional | ! directional | ||
− | | | + | | 17.69% || 17.69% || 17.69% || 17.69% || 12.69% || 8.69% || 5.36% || 2.5% || || || || || || || |
|- | |- | ||
! non-directional | ! non-directional | ||
− | | | + | | 7.79% || 7.79% || 7.79% || 7.79% || 7.79% || 7.79% || 7.79% || 7.79% || 7.79% || 7.79% || 7.79% || 5.97% || 4.30% || 2.76% || 1.33% |
|} | |} | ||
− | For both blessed and unblessed charging, the wand's number of charges is set to the chosen value. If the wand already has that many charges (or more), it instead gains one charge. If this extra charge brings a wand of wishing to more than 3 charges, it | + | For both blessed and unblessed charging, the wand's number of charges is set to the chosen value.{{refsrc|read.c|260}} If the wand already has that many charges (or more), it instead gains one charge.{{refsrc|read.c|261}} If this extra charge brings a wand of wishing to more than 3 charges, it explodes.{{refsrc|read.c|262}} (Other wands glow blue if charged beyond their natural maximum, but suffer no ill effects.{{refsrc|read.c|266}}) |
− | Cursed charging | + | Cursed charging sets the wand's number of charges to 0, unless the wand itself is blessed. This happens even if the wand was at <tt>(x:-1)</tt>, i.e. it was canceled.{{refsrc|read.c|224}} |
== Rings == | == Rings == | ||
− | [[Ring]]s | + | [[Ring]]s with numerical enchantment levels—namely, [[ring of adornment|adornment]], [[ring of gain strength|gain strength]], [[ring of gain constitution|gain constitution]], [[ring of increase accuracy|increase accuracy]], [[ring of increase damage|increase damage]], and [[ring of protection|protection]]—may be charged to alter their enchantment. |
− | Before the ring is charged, there is a chance it might explode. A ring | + | Before the ring is charged, there is a chance it might explode. A +''n'' ring has an {{frac|''n''|7}} probability of exploding if 0 < ''n'' < 7, or a 100% probability if ''n'' ≤ -5 or ''n'' ≥ 7. An exploding ring deals 1d(3×|''n''|) damage to the player.{{refsrc|read.c|270}} If the ring does not explode, its enchantment is updated according to the scroll's BUC, with blessed charging adding 1–3 points, uncursed charging adding 1, and cursed charging subtracting 1–2 points. |
− | |||
− | If the ring does not explode, its enchantment | ||
== Tools == | == Tools == | ||
− | All chargeable [[tool]]s may be recharged any number of times without ill effect, with the exception of | + | All chargeable [[tool]]s may be recharged any number of times without ill effect, with the exception of magic markers. |
− | For all tools, cursed charging | + | For all tools, cursed charging reduces the number of charges to 0, unless the item itself is blessed, in which case nothing will happen. |
− | = | + | {|class="wikitable" |
− | + | !Tool !! Uncursed charging adds !! Blessed charging adds !! Maximum !! Notes | |
− | Blessed charging adds | + | |- |
− | + | | [[Bell of Opening]] || 1 || d3 || 5 || | |
− | + | |- | |
− | + | | [[tinning kit]], [[expensive camera]], [[magic marker]] || 10-20 || 15-30 || 127 || | |
− | + | * If blessed charging and charges are greater than 50 but less than 75, round up to 75. | |
− | + | * If blessed or uncursed charging and charges are less than 50, round up to 50. | |
− | + | * Magic markers that have already been recharged will not charge again, and if 3 or fewer charges remain on an already-recharged marker, they are lost. | |
− | + | |- | |
− | + | | [[crystal ball]] || 1 || set to 6 || 5 (unless blessed charging) || | |
− | + | |- | |
− | + | | [[bag of tricks]], [[can of grease]], [[horn of plenty]] || 1-5 || 6-15 if fewer than 10 charges left; else 5-10 || 50 || | |
− | + | |- | |
− | + | | [[magic flute]], [[magic harp]], [[frost horn]], [[fire horn]], [[drum of earthquake]] || d4 || 2d4 || 20 || | |
− | + | |- | |
− | + | | [[oil lamp]], [[brass lantern]] || 750 || 1500 || 1500 || Dipping an oil lamp in a [[potion of oil]] also fills it to 1500, though this is not magical charging. | |
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Yourself == | == Yourself == | ||
− | If you read a [[scroll of charging]] while [[confused]] | + | If you read a [[scroll of charging]] while [[confused]], your [[energy]] is replenished to its maximum. If it was already at maximum, the maximum is increased by ''5d4'', and your current energy is increased to the new maximum.{{refsrc|read.c|1057}} |
− | + | The confused effect only applies to the scroll of charging. Invoking [[the Platinum Yendorian Express Card]] while confused still produces the regular charging effect. | |
== References == | == References == | ||
Line 124: | Line 123: | ||
{{featured}} | {{featured}} | ||
[[Category:Strategy]] | [[Category:Strategy]] | ||
+ | {{nethack-343|offset=1}} |
Latest revision as of 06:45, 3 August 2020
- For magically improving weapons and armor, see scroll of enchant weapon and scroll of enchant armor.
Some items, like wands, magic harps, horns of plenty, brass lanterns and the Bell of Opening are only effective for a finite number of uses. Each potential use is called a charge, and charging is the process of adding more charges to an item. The most common methods of charging are the scroll of charging and the Platinum Yendorian Express Card.
Such items are shown with two numbers at the end of their description when fully identified, e.g. a wand of magic missile (0:5). The first number is how many times the item has been recharged, and the second is the number of charges remaining. The recharge counter stops at (7:y),[1] though the item can still be recharged further if applicable. A discharged item is (x:0), and a canceled item is (x:-1).
Repeated charging is potentially problematic. A wand charged more than once might explode; this is why nearly all players reduce a wand to 0 charges before charging it. A wand of wishing charged the second time always explodes; thus players with a wand of wishing (1:0) should always wrest the last wish (zap the wand repeatedly) instead of charging.
Contents
Wands
If a wand has been recharged at least once before, there is a chance it might explode, destroying itself. A wand of wishing always explodes if recharged more than once. For other wands, the chance of an explosion is n3 / 343, where n is the number of times the wand has been recharged before. This is summarized in the following table:[2]
Times recharged | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|---|
Chance of exploding | (never) | 0.29% | 2.33% | 7.87% | 18.66% | 36.44% | 62.97% | (always) |
And the combined, cumulative probability of working towards maximum charges:
Times recharged | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|---|
Cumulative chance | (never) | 0.29% | 2.62% | 10.28% | 27.02% | 53.62% | 82.83% | (always) |
And thus the expected average, per wand, is 5.2334 charges before the wand explodes.
An exploding wand deals between 1 and 2(maxhp+1)/3 damage,[3] so don't risk it if you're below full HP or in a place that isn't safe.
If the wand does not explode, it gains some charges.
Blessed charging picks a number of charges between the wand's natural maximum charges and (max charges − 4) inclusive, with all values having equal probability,[4] excluding wands of wishing for which 3 is always chosen.[4][5] This is summarized by the following probability table:
Wand type | Number chosen | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | |
wand of wishing | (always) | ||||||||||||||
directional | 20% | 20% | 20% | 20% | 20% | ||||||||||
non-directional | 20% | 20% | 20% | 20% | 20% |
Uncursed charging chooses a number in the same way as blessed charging, then reduces the number to a value between 1 and the chosen number inclusive.[6] The net result is summarized by the following probability table:
Wand type | Number chosen | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | |
wand of wishing | 33.3% | 33.3% | 33.3% | ||||||||||||
directional | 17.69% | 17.69% | 17.69% | 17.69% | 12.69% | 8.69% | 5.36% | 2.5% | |||||||
non-directional | 7.79% | 7.79% | 7.79% | 7.79% | 7.79% | 7.79% | 7.79% | 7.79% | 7.79% | 7.79% | 7.79% | 5.97% | 4.30% | 2.76% | 1.33% |
For both blessed and unblessed charging, the wand's number of charges is set to the chosen value.[7] If the wand already has that many charges (or more), it instead gains one charge.[8] If this extra charge brings a wand of wishing to more than 3 charges, it explodes.[9] (Other wands glow blue if charged beyond their natural maximum, but suffer no ill effects.[10])
Cursed charging sets the wand's number of charges to 0, unless the wand itself is blessed. This happens even if the wand was at (x:-1), i.e. it was canceled.[11]
Rings
Rings with numerical enchantment levels—namely, adornment, gain strength, gain constitution, increase accuracy, increase damage, and protection—may be charged to alter their enchantment.
Before the ring is charged, there is a chance it might explode. A +n ring has an n⁄7 probability of exploding if 0 < n < 7, or a 100% probability if n ≤ -5 or n ≥ 7. An exploding ring deals 1d(3×|n|) damage to the player.[12] If the ring does not explode, its enchantment is updated according to the scroll's BUC, with blessed charging adding 1–3 points, uncursed charging adding 1, and cursed charging subtracting 1–2 points.
Tools
All chargeable tools may be recharged any number of times without ill effect, with the exception of magic markers.
For all tools, cursed charging reduces the number of charges to 0, unless the item itself is blessed, in which case nothing will happen.
Tool | Uncursed charging adds | Blessed charging adds | Maximum | Notes |
---|---|---|---|---|
Bell of Opening | 1 | d3 | 5 | |
tinning kit, expensive camera, magic marker | 10-20 | 15-30 | 127 |
|
crystal ball | 1 | set to 6 | 5 (unless blessed charging) | |
bag of tricks, can of grease, horn of plenty | 1-5 | 6-15 if fewer than 10 charges left; else 5-10 | 50 | |
magic flute, magic harp, frost horn, fire horn, drum of earthquake | d4 | 2d4 | 20 | |
oil lamp, brass lantern | 750 | 1500 | 1500 | Dipping an oil lamp in a potion of oil also fills it to 1500, though this is not magical charging. |
Yourself
If you read a scroll of charging while confused, your energy is replenished to its maximum. If it was already at maximum, the maximum is increased by 5d4, and your current energy is increased to the new maximum.[13]
The confused effect only applies to the scroll of charging. Invoking the Platinum Yendorian Express Card while confused still produces the regular charging effect.
References
- ↑ read.c in NetHack 3.4.3, line 302
- ↑ read.c in NetHack 3.4.3, line 227
- ↑ read.c in NetHack 3.4.3, line 1304
- ↑ 4.0 4.1 read.c in NetHack 3.4.3, line 257
- ↑ read.c in NetHack 3.4.3, line 254
- ↑ read.c in NetHack 3.4.3, line 258
- ↑ read.c in NetHack 3.4.3, line 260
- ↑ read.c in NetHack 3.4.3, line 261
- ↑ read.c in NetHack 3.4.3, line 262
- ↑ read.c in NetHack 3.4.3, line 266
- ↑ read.c in NetHack 3.4.3, line 224
- ↑ read.c in NetHack 3.4.3, line 270
- ↑ read.c in NetHack 3.4.3, line 1057
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.