Opened 9 years ago

Closed 7 years ago

#1187 closed bug (fixed (in master))

Opening chests from a stack

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

Description (last modified by fizzix)

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 (8)

comment:1 Changed 9 years ago by magnate

  • Keywords items added

comment:2 Changed 9 years ago by magnate

  • Milestone changed from 3.2.0 to 3.3.0

Punting to 3.3: non-urgent bug or change.

comment:3 Changed 9 years ago by magnate

  • Status changed from new to confirmed

Confirmed still extant as of 3.2rc1

comment:4 Changed 9 years ago by magnate

  • Keywords commands added; items removed

comment:5 Changed 9 years ago by Chud

  • Cc chd@… added
  • Owner set to Chud
  • Status changed from confirmed to assigned

Assign to myself, first practice doing some development. Much reading of code to precede any actual changes...

comment:6 Changed 9 years ago by magnate

  • Milestone changed from 3.3.0 to 3.4.0

Postponing to 3.4 per IRC

comment:7 Changed 8 years ago by fizzix

  • Description modified (diff)
  • Milestone changed from 3.4.0 to 3.5.0

Chud seems to have vanished. postponed to 3.5.0

comment:8 Changed 7 years ago by noz

  • Milestone changed from 3.5.0 to 3.4.0
  • Resolution set to fixed (in master)
  • Status changed from assigned to closed

Fixed in 0f1e6d3. Opened chests still have squelch problems, but that is covered by #1672.

Note: See TracTickets for help on using tickets.