Page 1 of 1

Feature request #1 - Dropping gold

Posted: Wed 19.09.2007, 14:02
by Billsey
Could you modify the gold drop routine so that if you type in a larger amount of gold than you are actually carrying, it just drops all you have, rather than telling you that you don't have that much? It more closely matches the behavior of dropping other items (ie., if you try to drop 99 arrows and you only have 70, the 70 arrows drop).

Re: Feature request #1 - Dropping gold

Posted: Wed 19.09.2007, 21:59
by Fink
Ah, right, forgot about that. Someone (was it you, Bill?) gave me a bit of code for that:

\server\cmd3.c

if (amt > p_ptr->au)
{
     msg_print(Ind, "You do not have that much gold.");
     return;
}

becomes:

if (amt > p_ptr->au)
{
     amt = p_ptr->au;
}

Re: Feature request #1 - Dropping gold

Posted: Wed 19.09.2007, 22:02
by Billsey
Yup, that was me...  8)

Re: Feature request #1 - Dropping gold

Posted: Thu 20.09.2007, 00:43
by Berendol
I think a better solution would be to recognize a special case where the user types "ALL" or somesuch special word. The code that prevents you from dropping all your gold is there in case you try to drop 50000 gold and accidentally drop 500000... Oops!

Re: Feature request #1 - Dropping gold

Posted: Mon 24.09.2007, 11:21
by Domino
There is one problem with this!  You cannot drop more than 99,999,999 gold into one stack.  Until this has been fixed you might not want to drop all gold.