Difference between revisions of "Horn of plenty"

From NetHackWiki
Jump to navigation Jump to search
m (Text replace - "<ref> *\[\[([a-zA-Z][a-zA-Z]*\.c)#[Ll]ine([0-9][0-9]*)\]\] *<\/ref>" to "{{refsrc|$1|$2}}")
(Fixed probabilities for potions, added overall probabilities, and added links to the source code. More detailed discussion is on the talk page.)
Line 8: Line 8:
 
}}
 
}}
  
A '''horn of plenty''' is one of the magical [[horn]]s, but unlike the other horns, it ''cannot'' be used as a [[musical instrument]].{{refsrc|apply.c|2958}} It is created with 1 to 20 [[charging|charges]] and it may contain up to 50 charges. When applied, it produces [[food]] (including [[lump of royal jelly|royal jelly]]) or a potion of [[potion of water|water]], [[potion of fruit juice|fruit juice]], [[potion of booze|booze]], [[potion of acid|acid]], [[potion of sickness|sickness]] or [[potion of oil|oil]]. The [[BUC]] of the item produced is the same as the blessed/uncursed/cursed status of the horn.
+
A '''horn of plenty''' is one of the magical [[horn]]s, but unlike the other horns, it ''cannot'' be used as a [[musical instrument]].{{refsrc|apply.c|2958|comment=case for HORN_OF_PLENTY in doapply}} It is created with 1 to 20 [[charging|charges]] and it may contain up to 50 charges. When applied, it produces [[food]] (including [[lump of royal jelly|royal jelly]]) or a potion of [[potion of water|water]], [[potion of fruit juice|fruit juice]], [[potion of booze|booze]], [[potion of acid|acid]], [[potion of sickness|sickness]] or [[potion of oil|oil]].{{refsrc|mkobj.c|106|comment=make the object}}{{refsrc|objects.c|722|comment=potion probabilities}}{{refsrc|objects.c|668|comment=food probabilities}}{{refsrc|objnam.c|2721|comment=rnd_class renames object using base probabilities}} The [[BUC]] of the item produced is the same as the blessed/uncursed/cursed status of the horn.
  
 
1 in 13 applications (7.7%) will produce a potion, in the following ratios:
 
1 in 13 applications (7.7%) will produce a potion, in the following ratios:
Line 14: Line 14:
 
{|class="prettytable striped sortable"
 
{|class="prettytable striped sortable"
 
! scope="col" | Potion
 
! scope="col" | Potion
! scope="col" | Probability
+
! scope="col" | Class Probability
 +
! scope="col" | Overall Probability
 
|-
 
|-
| [[potion of booze]] || 19%
+
| [[potion of booze]] || 18.6% || 1.4%  
 
|-
 
|-
| [[potion of sickness]] || 4.2%
+
| [[potion of sickness]] || 4.2% || 0.3%
 
|-
 
|-
| [[potion of fruit juice]] || 19%
+
| [[potion of fruit juice]] || 18.6% || 1.4%
 
|-
 
|-
| [[potion of acid]] || 15.8%
+
| [[potion of acid]] || 4.4% || 0.3%
 
|-
 
|-
| [[potion of oil]] || 17.8%
+
| [[potion of oil]] || 13.3% || 1%
 
|-
 
|-
| [[potion of water]] || 24%
+
| [[potion of water]] || 40.8% || 3.1%
 
|}
 
|}
  
Line 33: Line 34:
 
{|class="prettytable striped sortable"
 
{|class="prettytable striped sortable"
 
! scope="col" | Item
 
! scope="col" | Item
! scope="col" | Probability
+
! scope="col" | Class Probability
 +
! scope="col" | Overall Probability
 
|-
 
|-
| [[tripe ration]] || 14%
+
| [[tripe ration]] || 14% || 12.9%
 
|-
 
|-
| random [[egg]] || 8.5%
+
| random [[egg]] || 8.5% || 7.8%
 
|-
 
|-
| [[eucalyptus leaf]] || 0.3%
+
| [[eucalyptus leaf]] || 0.3% || 0.3%
 
|-
 
|-
| [[apple]] || 1.5%
+
| [[apple]] || 1.5% || 1.4%
 
|-
 
|-
| [[orange]] || 1%
+
| [[orange]] || 1% || 0.9%
 
|-
 
|-
| [[pear]] || 1%
+
| [[pear]] || 1% || 0.9%
 
|-
 
|-
| [[melon]] || 1%
+
| [[melon]] || 1% || 0.9%
 
|-
 
|-
| [[banana]] || 1%
+
| [[banana]] || 1% || 0.9%
 
|-
 
|-
| [[carrot]] || 1.5%
+
| [[carrot]] || 1.5% || 1.4%
 
|-
 
|-
| [[sprig of wolfsbane]] || 0.7%
+
| [[sprig of wolfsbane]] || 0.7% || 0.6%
 
|-
 
|-
| [[clove of garlic]] || 0.7%
+
| [[clove of garlic]] || 0.7% || 0.6%
 
|-
 
|-
| [[slime mold]] || 7.5%
+
| [[slime mold]] || 7.5% || 6.9%
 
|-
 
|-
| [[lump of royal jelly]] || 5.4%
+
| [[lump of royal jelly]] || 5.4% || 5%
 
|-
 
|-
| [[cream pie]] || 2.5%
+
| [[cream pie]] || 2.5% || 2.3%
 
|-
 
|-
| [[candy bar]] || 1.3%
+
| [[candy bar]] || 1.3% || 1.2%
 
|-
 
|-
| [[fortune cookie]] || 5.5%
+
| [[fortune cookie]] || 5.5% || 5.1%
 
|-
 
|-
| [[pancake]] || 2.5%
+
| [[pancake]] || 2.5% || 2.3%
 
|-
 
|-
| [[lembas wafer]] || 2%
+
| [[lembas wafer]] || 2% || 1.8%
 
|-
 
|-
| [[cram ration]] || 2%
+
| [[cram ration]] || 2% || 1.8%
 
|-
 
|-
| [[food ration]] || 32.6%
+
| [[food ration]] || 32.6% || 30.1%
 
|-
 
|-
| random [[tin]], including [[spinach]] || 7.5%
+
| random [[tin]], including [[spinach]] || 7.5% || 6.9%
 
|}
 
|}
 +
 +
In the tables above class probability is chance within class (potion or food), and overall probability is the chance relative to all possible items.
  
 
==For [[Tourist]]s==
 
==For [[Tourist]]s==

Revision as of 17:17, 7 October 2012

( Horn.png
Name horn of plenty
Appearance horn
Base price 50 zm
Weight 18
Material [[{{{material}}}]]
Monster use Will not be used by monsters.

A horn of plenty is one of the magical horns, but unlike the other horns, it cannot be used as a musical instrument.[1] It is created with 1 to 20 charges and it may contain up to 50 charges. When applied, it produces food (including royal jelly) or a potion of water, fruit juice, booze, acid, sickness or oil.[2][3][4][5] The BUC of the item produced is the same as the blessed/uncursed/cursed status of the horn.

1 in 13 applications (7.7%) will produce a potion, in the following ratios:

Potion Class Probability Overall Probability
potion of booze 18.6% 1.4%
potion of sickness 4.2% 0.3%
potion of fruit juice 18.6% 1.4%
potion of acid 4.4% 0.3%
potion of oil 13.3% 1%
potion of water 40.8% 3.1%

The remaining 92% of applications will produce food, in the following ratios (multiples may be created if the food code permits):

Item Class Probability Overall Probability
tripe ration 14% 12.9%
random egg 8.5% 7.8%
eucalyptus leaf 0.3% 0.3%
apple 1.5% 1.4%
orange 1% 0.9%
pear 1% 0.9%
melon 1% 0.9%
banana 1% 0.9%
carrot 1.5% 1.4%
sprig of wolfsbane 0.7% 0.6%
clove of garlic 0.7% 0.6%
slime mold 7.5% 6.9%
lump of royal jelly 5.4% 5%
cream pie 2.5% 2.3%
candy bar 1.3% 1.2%
fortune cookie 5.5% 5.1%
pancake 2.5% 2.3%
lembas wafer 2% 1.8%
cram ration 2% 1.8%
food ration 32.6% 30.1%
random tin, including spinach 7.5% 6.9%

In the tables above class probability is chance within class (potion or food), and overall probability is the chance relative to all possible items.

For Tourists

A blessed horn of plenty is a great item for a tourist since it can be recharged indefinitely with The Platinum Yendorian Express Card. While in a normal game one doesn't generally need the extra food, the ability to produce an indefinite amount of potions and food has several non-trivial uses:

  • The unlimited food and potion source can be essential in multi-conduct games. In particular, it makes the tourist a viable candidate for a liquid diet: a foodless atheist true polyselfless survivor (see the link below).
  • The potions can be used to provide an indefinite supply of holy water, or can be used for polypiling or alchemy.
  • Those attempting stupid ascension tricks such as death farming might prefer a horn of plenty to prayer as a food source, though prayer is easier to automate.
  • If smoky potions are one of sickness, fruit juice, or booze, acid, or oil, the horn can be used as a (slow) wish engine.

External Links

References

  1. apply.c in NetHack 3.4.3, line 2958: case for HORN_OF_PLENTY in doapply
  2. mkobj.c in NetHack 3.4.3, line 106: make the object
  3. objects.c in NetHack 3.4.3, line 722: potion probabilities
  4. objects.c in NetHack 3.4.3, line 668: food probabilities
  5. objnam.c in NetHack 3.4.3, line 2721: rnd_class renames object using base probabilities