Page 1 of 1

Items stacking on the floor

Posted: Wed 28.05.2008, 11:21
by PowerWyrm
Currently, when an item is dropped on the floor, the game simply looks for an empty space to drop the item, and if none is found, then the item simply vanishes. It would be nice to check the surroundings for similar items first, then stack the dropped item with similar items if found. This would be particularly helpful with missiles and make rangers very happy...

Re: Items stacking on the floor

Posted: Thu 29.05.2008, 18:35
by PowerWyrm
In fact this could be seen as a bug...
I've checked Angband 3.0.x and the drop_near() function is done completely differently. First, it checks if there isn't any similar object on the ground in the vicinity and stacks them if possible. Then it forces artifacts to be dropped, even if there's no room for one in the vicinity (it's dropped randomly on the level).

Re: Items stacking on the floor

Posted: Thu 29.05.2008, 23:23
by Ace
brrr i dont like this artefact random dropping :)

Re: Items stacking on the floor

Posted: Mon 02.06.2008, 14:37
by grisu
good idea, should be easy to implement and would be a good solution for the missiles problem.

Re: Items stacking on the floor

Posted: Tue 03.06.2008, 11:48
by PowerWyrm
PWMAngband has this now and it seems to work fine, except that the worst valuable item is always dropped when a character dies which is a minor bug (this needs more testing, in particular with normal MAngband to see if it's also the case).