diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 14fa5185f..2d899581c 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -130,6 +130,7 @@ GOLDOBJ: don't call money2mon with 0 zero when killed by shopkeeper headstone writing was using the adjective "weird" when engraving with a wand of digging. don't report "you were riding" if you die as a result of dismounting +allow #untrapping of chests that are co-located with floor traps and hero Platform- and/or Interface-Specific Fixes diff --git a/src/trap.c b/src/trap.c index e7d229fb1..d5cc2adf1 100644 --- a/src/trap.c +++ b/src/trap.c @@ -3135,7 +3135,13 @@ boolean force; You("cannot deal with traps while trapped!"); return 1; } - switch(ttmp->ttyp) { + There("is %s here.", an(defsyms[trap_to_defsym(ttmp->ttyp)].explanation)); + + switch (ynq(ttmp->ttyp == WEB ? "Remove it?" : "Disarm it?")) { + case 'q': return(0); + case 'n': trap_skipped = TRUE; break; + case 'y': + switch(ttmp->ttyp) { case BEAR_TRAP: case WEB: return disarm_holdingtrap(ttmp); @@ -3161,7 +3167,8 @@ boolean force; default: You("cannot disable %s trap.", (u.dx || u.dy) ? "that" : "this"); return 0; - } /* end switch */ + } + } } /* end if */ if(!u.dx && !u.dy) {