From 412a996da87a09e08587fe0b3673584436ff995f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 1 Oct 2023 14:49:00 +0300 Subject: [PATCH] Wand of probing reveals tin contents --- doc/fixes3-7-0.txt | 1 + src/zap.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 7fffaf8e3..b6ab75153 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1248,6 +1248,7 @@ the throne room on the Samurai quest home level lacked a throne but gave coughing due to stinking cloud wakes up nearby monsters stop occupation when timed levitation or choking issues a message use #monster to make dragon steed breathe +wand of probing reveals tin contents Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/zap.c b/src/zap.c index dc3854ea4..68b6662ec 100644 --- a/src/zap.c +++ b/src/zap.c @@ -566,7 +566,8 @@ probe_objchain(struct obj *otmp) otmp->lknown = 1; if (!SchroedingersBox(otmp)) otmp->cknown = 1; - } + } else if (otmp->otyp == TIN) + otmp->known = 1; } } @@ -2163,7 +2164,8 @@ bhito(struct obj *obj, struct obj *otmp) (void) display_cinventory(obj); } res = 1; - } + } else if (obj->otyp == TIN) + obj->known = 1; if (res) learn_it = TRUE; break;