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.
This commit is contained in:
@@ -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
|
headstone writing was using the adjective "weird" when engraving with a wand
|
||||||
of digging.
|
of digging.
|
||||||
don't report "you were riding" if you die as a result of dismounting
|
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
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+9
-2
@@ -3135,7 +3135,13 @@ boolean force;
|
|||||||
You("cannot deal with traps while trapped!");
|
You("cannot deal with traps while trapped!");
|
||||||
return 1;
|
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 BEAR_TRAP:
|
||||||
case WEB:
|
case WEB:
|
||||||
return disarm_holdingtrap(ttmp);
|
return disarm_holdingtrap(ttmp);
|
||||||
@@ -3161,7 +3167,8 @@ boolean force;
|
|||||||
default:
|
default:
|
||||||
You("cannot disable %s trap.", (u.dx || u.dy) ? "that" : "this");
|
You("cannot disable %s trap.", (u.dx || u.dy) ? "that" : "this");
|
||||||
return 0;
|
return 0;
|
||||||
} /* end switch */
|
}
|
||||||
|
}
|
||||||
} /* end if */
|
} /* end if */
|
||||||
|
|
||||||
if(!u.dx && !u.dy) {
|
if(!u.dx && !u.dy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user