Feature request #1 - Dropping gold

New ideas, features you wish were in the game.
Post Reply
Billsey
King Vampire
Posts: 272
Joined: Sun 12.02.2006, 14:36
Location: Oregon, USA
Contact:

Feature request #1 - Dropping gold

Post by Billsey » Wed 19.09.2007, 14:02

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

Fink
Ancient MultiHued Dragon
Posts: 614
Joined: Tue 20.01.2004, 13:55

Re: Feature request #1 - Dropping gold

Post by Fink » Wed 19.09.2007, 21:59

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;
}

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

Re: Feature request #1 - Dropping gold

Post by Billsey » Wed 19.09.2007, 22:02

Yup, that was me...  8)
Mangband Project Team Member

Berendol
Evil Iggy
Posts: 868
Joined: Mon 11.11.2002, 19:13
Location: Loot Pile
Contact:

Re: Feature request #1 - Dropping gold

Post by Berendol » Thu 20.09.2007, 00:43

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)

Domino
Giant Hunter Ant
Posts: 173
Joined: Sat 26.10.2002, 22:42
Location: Mountain View, CA  U.S.A.

Re: Feature request #1 - Dropping gold

Post by Domino » Mon 24.09.2007, 11:21

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!

Post Reply