obj->tknown comments

This commit is contained in:
PatR
2025-01-27 00:37:35 -08:00
parent f75e4a13b7
commit b6eda14368
2 changed files with 13 additions and 1 deletions

View File

@@ -432,6 +432,14 @@ pick_lock(
boolean it;
int count;
/*
* FIXME:
* (chest->otrapped && chest->tknown) is handled, to skip
* checking for a trap and continue with asking about disarm;
* (chest->tknown && !chest->otrapped) ignores tknown and will
* ask about checking for non-existant trap.
*/
if (u.dz < 0 && !autounlock) { /* beware stale u.dz value */
There("isn't any sort of lock up %s.",
Levitation ? "here" : "there");