B01001 - locking/unlocking a door while in a pit
Since you can't reach a door to open it while in a pit, it makes sense you can't lock/unlock it either.
This commit is contained in:
@@ -353,6 +353,11 @@ pick_lock(pick) /* pick a lock with a given object */
|
||||
} else { /* pick the lock in a door */
|
||||
struct monst *mtmp;
|
||||
|
||||
if (u.utrap && u.utraptype == TT_PIT) {
|
||||
You_cant("reach over the edge of the pit.");
|
||||
return(0);
|
||||
}
|
||||
|
||||
door = &levl[cc.x][cc.y];
|
||||
if ((mtmp = m_at(cc.x, cc.y)) && canseemon(mtmp)
|
||||
&& mtmp->m_ap_type != M_AP_FURNITURE
|
||||
|
||||
Reference in New Issue
Block a user