Opened 9 years ago

Last modified 7 years ago

#1187 closed bug

Opening chests from a stack — at Initial Version

Reported by: mcfall.iain@… Owned by:
Milestone: 3.4.0 Keywords: commands
Cc: chd@…


It appears that you can only open one chest from a stack of chests on the floor.
The same goes for the disarm command - you can only disarm the topmost chest in a stack.

A quick look at the source shows the function 'chest_check' (cmd2.c)which simply returns the first chest in a stack.
If the 'chest_check' function were to take a third parameter, you could make it so it finds either the first openable chest, or the first known trapped chest.
I got no access to a dev machine so can't offer a patch.

Change History (0)

Note: See TracTickets for help on using tickets.