fair death caused me to find an unfair bug

Think you've found a bug? Please report it here.
Post Reply
schroeder
Giant Mottled Ant Lion
Posts: 204
Joined: Sat 14.06.2008, 04:23
Location: Somewhere in Illinois in the USA

fair death caused me to find an unfair bug

Post by schroeder » Sun 21.09.2008, 02:50

So i died with my mage. I stupidly had a *lot* of gold with me. Everything dropped...except for most of my gold. I found their to be 32k of gold instead of my large stack. Yeah, that hurt a *lot*, but i guess I angered the RNG when i carried that much AU into the dungon.
Anything worth being done, is worth being overdone.
My Mangband videos; http://www.youtube.com/user/Schroederband

Ashi
Giant Mottled Ant Lion
Posts: 218
Joined: Sun 10.11.2002, 19:58

Re: fair death caused me to find an unfair bug

Post by Ashi » Sun 21.09.2008, 07:15

This one has been around for a while. I never dive with more than 50k or so, because only 32k will drop (if it drops at all).

I'm not even sure this is a bug, since all money used to drop before the Crimson era. I think he might have added in a limit to encourage people to not dive while carrying their gold, or perhaps if you died in a small area, the gold drop was taking priority over some rare equipment.

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: fair death caused me to find an unfair bug

Post by PowerWyrm » Mon 22.09.2008, 11:56

It's not a bug. From the source code:

Code: Select all

/* Drop no more than 32000 gold */
            if (p_ptr->au > 32000) p_ptr->au = 32000;

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: fair death caused me to find an unfair bug

Post by PowerWyrm » Mon 22.09.2008, 11:58

And of course the 32k gold drop will crush any item worth less than 32k if there's no room for it... so better carry the least gold you can in the dungeon.

Billsey
King Vampire
Posts: 272
Joined: Sun 12.02.2006, 14:36
Location: Oregon, USA
Contact:

Re: fair death caused me to find an unfair bug

Post by Billsey » Sun 26.10.2008, 06:07

I think you might be confused with the artifact drop code. And artifact has a chance of destroying another item in order to preserve the artifact. I don't believe gold acts like that, or any other non-artifact item.

The key for death drops is that the highest value item drops first, then the next highest, etc... If room can't be found within 20 tries, the item is destroyed, unless it's an artifact, then it tries 79 more times, finally crushing an item already on the floor if no empty space is found. This is why you can lose that PSDM you've been wearing while you're carrying Rilia as a backup weapon. :-(
Mangband Project Team Member

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: fair death caused me to find an unfair bug

Post by PowerWyrm » Mon 27.10.2008, 12:51

What I meant is that gold is treated as any other object...
If you have room for only 5 objects when you die and that you have only 4 items worth more than 32k, then the gold will be dropped as the 5th item instead of something really useful.

Post Reply