Difference between revisions of "Talk:Arrow"

From NetHackWiki
Jump to navigation Jump to search
(New page: Does anyone know the formula nethack uses to decide whether an arrow disappears after firing?)
 
Line 1: Line 1:
 
Does anyone know the formula nethack uses to decide whether an arrow disappears after firing?
 
Does anyone know the formula nethack uses to decide whether an arrow disappears after firing?
 +
:: It looks like it's in Dothrow.c#throw_obj starting around line 1312, it's a random chance that is also affected by erosion and BUC status, and possibly the type of ammo.  Maybe someone with a little more practice reading the source code can deduce a formula.

Revision as of 22:24, 9 January 2008

Does anyone know the formula nethack uses to decide whether an arrow disappears after firing?

It looks like it's in Dothrow.c#throw_obj starting around line 1312, it's a random chance that is also affected by erosion and BUC status, and possibly the type of ammo. Maybe someone with a little more practice reading the source code can deduce a formula.