Items stacking on the floor

New ideas, features you wish were in the game.
Post Reply
PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Items stacking on the floor

Post by PowerWyrm » Wed 28.05.2008, 11:21

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...

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: Items stacking on the floor

Post by PowerWyrm » Thu 29.05.2008, 18:35

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).

Ace
Crystal Ooze
Posts: 368
Joined: Fri 15.02.2008, 12:50

Re: Items stacking on the floor

Post by Ace » Thu 29.05.2008, 23:23

brrr i dont like this artefact random dropping :)

grisu
Giant Long-Eared Bat
Posts: 36
Joined: Thu 21.12.2006, 13:33

Re: Items stacking on the floor

Post by grisu » Mon 02.06.2008, 14:37

good idea, should be easy to implement and would be a good solution for the missiles problem.

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: Items stacking on the floor

Post by PowerWyrm » Tue 03.06.2008, 11:48

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).

Post Reply