From: nethack.allison Date: Sun, 30 Jun 2002 21:02:55 +0000 (+0000) Subject: B01011 can't #untrap container on trap X-Git-Tag: MOVE2GIT~2707 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c4306b4f9ac9dc61bdc9878393d430da2307fab;p=nethack B01011 can't #untrap container on trap A chest on a [known] trapped square cannot be untrapped--game will always attempt to disarm the trap on the square. --- 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) {