obj->tknown comments
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -1338,7 +1338,11 @@ doname_base(
|
||||
Strcat(prefix, "uncursed ");
|
||||
}
|
||||
|
||||
/* "a large trapped box" would perhaps be more correct */
|
||||
/* "a large trapped box" would perhaps be more correct; [no!]
|
||||
what about ``(obj->tknown && !obj->otrapped)''? shouldn't that
|
||||
yield "a non-trapped large box"? (not "an untrapped large box");
|
||||
TODO: this should be ``(Is_box(obj) || obj->otyp == TIN) && ...''
|
||||
but at present there's no way to set obj->tknown for tins */
|
||||
if (Is_box(obj) && obj->otrapped && obj->tknown && obj->dknown)
|
||||
Strcat(prefix,"trapped ");
|
||||
if (lknown && Is_box(obj)) {
|
||||
|
||||
Reference in New Issue
Block a user