Difference between revisions of "Create ammo"

From NetHackWiki
Jump to navigation Jump to search
(redir)
(Tag: New redirect)
(create)
(Tag: Removed redirect)
Line 1: Line 1:
#REDIRECT [[Deferred and defunct features (SlashTHEM)#Create ammo]]
+
{{otheruses|the [[artifact]] [[invoke]] effect|the deferred [[technique]] in [[SlashTHEM]]|Deferred and defunct features (SlashTHEM)#Create ammo}}
[[Category:Deferred and defunct features (SlashTHEM)]]
+
 
 +
'''Create ammo''' is a [[property]] that appears in ''[[NetHack]]'' and only occurs as an item effect of [[artifact weapon]]s that can be [[invoked]].
 +
 
 +
==Description==
 +
Creating ammo is solely associated with the artifact weapon [[The Longbow of Diana]], and is formally defined by the <code>CREATE_AMMO</code> flag in [[artifact.h]].{{refsrc|include/artilist.h|232|version=NetHack 3.6.7}}{{refsrc|include/artifact.h|66|version=NetHack 3.6.7}} The effect will create a set of [[projectile]] [[weapon]] items that match the launcher being invoked.
 +
 
 +
===Arrow creation details===
 +
{{main|RNE}}
 +
The [[enchantment]] range of the items created is inclusive and depends on [[rne]](3) and the current beatitude of the artifact when invoked.{{refsrc|src/artifact.c|1582|version=NetHack 3.6.7|comment=arti_invoke calls mksobj to create arrows}}{{refsrc|src/mkobj.c|803|version=NetHack 3.6.7|comment=relevant section of mksobj}} A blessed Longbow or other artifact with this effect will only produce arrows with enchantment from 0 to 10; a cursed Longbow will only produce arrows with enchantment from -10 to 0; and an uncursed Longbow will produce arrows in the range of -10 to 10.
 +
 
 +
The probability distribution of the enchantments is not uniform: Items generated from a blessed or cursed Longbow of Diana (or other artifact) are more likely to be +0 than randomly generated blessed or cursed arrows. This is because <code>mksobj</code> - which <code>arti_invoke</code> calls to generate the items - can produce items of any beatitude, regardless of the artifact's beatitude, and the items have their beatitude changed to the intended one that <code>mksobj</code> returns, bringing negative enchantments on blessed items and positive enchantments on cursed items to 0.
 +
 
 +
==Strategy==
 +
While in theory it can be quite useful to have a never-ending supply of ammo on demand with lenient cooldown, in practice this relies entirely on the type of ammo produced: the Longbow of Diana is notoriously much less effective as a [[quest artifact]] for [[Ranger]]s that are not [[Human (starting race)|human]], since each playable race gains [[multishot]] bonuses for using particular types of [[arrow]]s and [[bow]]s - non-human Rangers lose out on up to a +2 racial multishot bonus by switching to the Longbow. [[Gnome (starting race)|gnomish]] Rangers are especially out of luck since they gain multishot from using [[crossbow]]s, which requires an entirely different [[skill]] than the Longbow.
 +
 
 +
{{upcoming|NetHack 3.7.0|Rangers get a +1 [[multishot]] bonus when wielding the Longbow of Diana.}}
 +
 
 +
==Variants==
 +
Variants of ''NetHack'' may add other artifact weapons with the ability to create ammo and/or alter how it functions.
 +
 
 +
==References==
 +
<references/>
 +
{{nethack-367}}
 +
[[Category:Item attributes]]

Revision as of 02:47, 6 February 2024

This article is about the artifact invoke effect. For the deferred technique in SlashTHEM, see Deferred and defunct features (SlashTHEM)#Create ammo.

Create ammo is a property that appears in NetHack and only occurs as an item effect of artifact weapons that can be invoked.

Description

Creating ammo is solely associated with the artifact weapon The Longbow of Diana, and is formally defined by the CREATE_AMMO flag in artifact.h.[1][2] The effect will create a set of projectile weapon items that match the launcher being invoked.

Arrow creation details

Main article: RNE

The enchantment range of the items created is inclusive and depends on rne(3) and the current beatitude of the artifact when invoked.[3][4] A blessed Longbow or other artifact with this effect will only produce arrows with enchantment from 0 to 10; a cursed Longbow will only produce arrows with enchantment from -10 to 0; and an uncursed Longbow will produce arrows in the range of -10 to 10.

The probability distribution of the enchantments is not uniform: Items generated from a blessed or cursed Longbow of Diana (or other artifact) are more likely to be +0 than randomly generated blessed or cursed arrows. This is because mksobj - which arti_invoke calls to generate the items - can produce items of any beatitude, regardless of the artifact's beatitude, and the items have their beatitude changed to the intended one that mksobj returns, bringing negative enchantments on blessed items and positive enchantments on cursed items to 0.

Strategy

While in theory it can be quite useful to have a never-ending supply of ammo on demand with lenient cooldown, in practice this relies entirely on the type of ammo produced: the Longbow of Diana is notoriously much less effective as a quest artifact for Rangers that are not human, since each playable race gains multishot bonuses for using particular types of arrows and bows - non-human Rangers lose out on up to a +2 racial multishot bonus by switching to the Longbow. gnomish Rangers are especially out of luck since they gain multishot from using crossbows, which requires an entirely different skill than the Longbow.

The following information pertains to an upcoming version (NetHack 3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.

Rangers get a +1 multishot bonus when wielding the Longbow of Diana.

Variants

Variants of NetHack may add other artifact weapons with the ability to create ammo and/or alter how it functions.

References