Items stacking on the floor
Items stacking on the floor
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
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).
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
brrr i dont like this artefact random dropping :)
Re: Items stacking on the floor
good idea, should be easy to implement and would be a good solution for the missiles problem.
Re: Items stacking on the floor
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).