Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

vanilla bug?

 
   Game Forums (Home) -> Roguelike -> Nethack RSS
Next:  YANI: new armor types (Spork)  
Author Message
Philip Potter

External


Since: Nov 23, 2007
Posts: 52



(Msg. 1) Posted: Mon Dec 31, 2007 8:02 pm
Post subject: vanilla bug?
Archived from groups: rec>games>roguelike>nethack (more info?)

From dothrow.c:

148. if ((long)multishot > obj->quan) multishot = (int)obj->quan;
149. multishot = rnd(multishot);

Shouldn't these two lines be reversed? With them this way round, being
able to multishot 4 daggers but only carrying 2 reduces your chance of
throwing 2.

Phil

 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
AngleWyrm

External


Since: Nov 19, 2007
Posts: 30



(Msg. 2) Posted: Mon Dec 31, 2007 9:27 pm
Post subject: Re: vanilla bug? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Philip Potter" <pgp.RemoveThis@doc.ic.ac.uk> wrote in message
news:flbu73$mlj$2@aioe.org...
> From dothrow.c:
>
> 148. if ((long)multishot > obj->quan) multishot = (int)obj->quan;
> 149. multishot = rnd(multishot);
>
> Shouldn't these two lines be reversed? With them this way round, being
> able to multishot 4 daggers but only carrying 2 reduces your chance of
> throwing 2.

substituting values for clarity:

<current code>
if( 4>2 ) multishot = 2 /* cap chances */
multishot = rnd(2)
Result: Player throws only one dagger 2 times out of 4, if only two daggers
in inventory.

<proposed>
multishot = rnd(4)
if( multishot > 2) multishot = 2 /* cap daggers */
Result: Player throws only one dagger 1 time out of 4, reguardless of
inventory.

I agree, the proposed change makes more sense.

--
AngleWyrm,killed by a gnome lord in the Gnomish Mines on level 5
Wiz-Elf-Mal-Cha Score: 1055

 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
Janis Papanagnou

External


Since: Aug 11, 2004
Posts: 853



(Msg. 3) Posted: Tue Jan 01, 2008 1:46 am
Post subject: Re: vanilla bug? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Philip Potter wrote:
> From dothrow.c:
>
> 148. if ((long)multishot > obj->quan) multishot = (int)obj->quan;
> 149. multishot = rnd(multishot);
>
> Shouldn't these two lines be reversed? With them this way round, being
> able to multishot 4 daggers but only carrying 2 reduces your chance of
> throwing 2.

IMO, it makes more sense the way you see it. Though, who knows about the
Devteam's intention... (For my own games that matters only in rare cases,
anyway, i.e. being skilled/expert and having not enough projectiles, and
the random difference is marginal.) It doesn't hurt to issue a "Request
For Change".

Janis
 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
Philip Potter

External


Since: Nov 23, 2007
Posts: 52



(Msg. 4) Posted: Tue Jan 01, 2008 1:07 pm
Post subject: Re: vanilla bug? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Janis Papanagnou wrote:
> Philip Potter wrote:
>> From dothrow.c:
>>
>> 148. if ((long)multishot > obj->quan) multishot = (int)obj->quan;
>> 149. multishot = rnd(multishot);
>>
>> Shouldn't these two lines be reversed? With them this way round, being
>> able to multishot 4 daggers but only carrying 2 reduces your chance of
>> throwing 2.
>
> IMO, it makes more sense the way you see it. Though, who knows about the
> Devteam's intention... (For my own games that matters only in rare cases,
> anyway, i.e. being skilled/expert and having not enough projectiles, and
> the random difference is marginal.) It doesn't hurt to issue a "Request
> For Change".

Thanks for the second opinion. I'll submit a bug report (I can't see
anything similar in the known bugs page).

Phil
 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
Henry J Cobb

External


Since: Oct 14, 2007
Posts: 58



(Msg. 5) Posted: Wed Jan 02, 2008 12:49 am
Post subject: Re: vanilla bug? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

AngleWyrm wrote:
> substituting values for clarity:
>
> <current code>
> if( 4>2 ) multishot = 2 /* cap chances */
> multishot = rnd(2)
> Result: Player throws only one dagger 2 times out of 4, if only two daggers
> in inventory.
>
> <proposed>
> multishot = rnd(4)
> if( multishot > 2) multishot = 2 /* cap daggers */
> Result: Player throws only one dagger 1 time out of 4, reguardless of
> inventory.
>
> I agree, the proposed change makes more sense.

It tips the balance away from carrying a big pile of low grade ammo
towards having a few small piles of high grade weapons.

So I'd say that this boosted Rangers over Tourists and Rogues.

-HJC
 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
AngleWyrm

External


Since: Nov 19, 2007
Posts: 30



(Msg. 6) Posted: Wed Jan 02, 2008 4:46 am
Post subject: Re: vanilla bug? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Henry J Cobb" <hcobb RemoveThis @io.com> wrote in message
news:OpWdneDQGcyqzebanZ2dnUVZ_vamnZ2d@io.com...

> It tips the balance away from carrying a big pile of low grade ammo
> towards having a few small piles of high grade weapons.
>
> So I'd say that this boosted Rangers over Tourists and Rogues.

The current arrangement seems to penalize multi-shot users who have less
than their max multishot capability on hand.
 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
Henry J Cobb

External


Since: Oct 14, 2007
Posts: 58



(Msg. 7) Posted: Wed Jan 02, 2008 8:37 am
Post subject: Re: vanilla bug? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

AngleWyrm wrote:
> "Henry J Cobb" <hcobb.TakeThisOut@io.com> wrote in message
> news:OpWdneDQGcyqzebanZ2dnUVZ_vamnZ2d@io.com...
>
>> It tips the balance away from carrying a big pile of low grade ammo
>> towards having a few small piles of high grade weapons.
>>
>> So I'd say that this boosted Rangers over Tourists and Rogues.
>
> The current arrangement seems to penalize multi-shot users who have less
> than their max multishot capability on hand.

It forces the multishoters to carry a large pile of exactly the same
item rather than smaller piles.

If you only have three ammo items at all then you might want to limit
them yourself.

-HJC
 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
Philip Potter

External


Since: Nov 23, 2007
Posts: 52



(Msg. 8) Posted: Fri Jan 04, 2008 12:14 pm
Post subject: Re: vanilla bug? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Philip Potter wrote:
> From dothrow.c:
>
> 148. if ((long)multishot > obj->quan) multishot = (int)obj->quan;
> 149. multishot = rnd(multishot);
>
> Shouldn't these two lines be reversed? With them this way round, being
> able to multishot 4 daggers but only carrying 2 reduces your chance of
> throwing 2.

In case anyone is interested:

I got a response from the DevTeam, and apparently it's already fixed in
the code-in-progress.
 >> Stay informed about: vanilla bug? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
rec.games.roguelike.nethack - 999 subscribers - (google groups) I found this amusing, at least. I'd say I was subscriber number 1000 but it doesn't seem to update instantly so I might have been beaten to it.

Wishing suggestions for an extinctionist wizard - Chaotic human wizard, gone as deep as the vally of death and currently camping on an altar on DL:21. This is the first character that im attempting extinctionism with, and im finding myself wondering what I want to wish for. RNG has blessed me with a 0....

YASD Ring of what?? - Being the newbie that I am, I decided to equip both the rigs I started with as a wizard. They gotta be good, right? Wrong! First move after checking my inventory, I Put on my Ring of Conflict. Next turn I move to pick up the gold next to me, but I don't....

You hear a loud click! - My useless Samurai, is wandering around Delphi when I get the message "You hear a loud click!" I googled for this message but didn't find anything specific. What the heck does this mean??

[S] barbarian spellcaster - Fip the Level 29 Chieftain's got In:21 and Wi:23, but still he's casting Magic Missile at 100% failure (no metal armor, etc.). Why do Barbarians get a couple classes of unrestricted spellcasting if they can't use it? Am I overlooking something? ..
   Game Forums (Home) -> Roguelike -> Nethack All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]