Feature request #1 - Dropping gold
Feature request #1 - Dropping gold
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).
Mangband Project Team Member
Re: Feature request #1 - Dropping gold
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;
}
\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
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!
By appreciation, we make excellence in others our own property. (Voltaire)
Re: Feature request #1 - Dropping gold
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.
King of the Hill Baby!