From 85b4a42b183d42052b39dee0dd6dc74af140763a Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Thu, 27 Jul 2023 20:32:59 +0200 Subject: [PATCH] Suppress discovery message for firearms after they are known. --- hackem_changelog.txt | 1 + src/dothrow.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hackem_changelog.txt b/hackem_changelog.txt index df920f912..4ab5d8fe7 100644 --- a/hackem_changelog.txt +++ b/hackem_changelog.txt @@ -16,6 +16,7 @@ Version 1.2.0 (unreleased) +Suppress discovery message for firearms after they are known. Indestructible items can't be destroyed in BoH explosions. Fix: Vecna wasn't getting the Key of Chaos! Fix: Lookup for skeleton key matched skeleton monster. diff --git a/src/dothrow.c b/src/dothrow.c index 36e7ec6dd..3b0111ef2 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -1567,7 +1567,7 @@ struct obj *oldslot; /* for thrown-and-return used with !fixinv */ pline("The quivered ammo doesn't fit the firearm."); gunning = FALSE; } - if (gunning) { + if (gunning && !uwep->known) { if (!Deaf) pline("Boom!"); makeknown_msg(uwep->otyp);