From c94fd5225beef48143244bfb7bc42682aad58741 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 20 Sep 2026 17:30:04 +0300 Subject: [PATCH] Vault guard shouldn't be heard from too far away When you were asked for a name and teleported out of the vault without any gold on you, the vault guard says "Well, begone" - which could be heard from anywhere on the level. Limit that verbalization to 10 tiles away. --- doc/fixes5-0-0.txt | 1 + src/vault.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes5-0-0.txt b/doc/fixes5-0-0.txt index d96ae4910..7171ab1f6 100644 --- a/doc/fixes5-0-0.txt +++ b/doc/fixes5-0-0.txt @@ -1605,6 +1605,7 @@ when starting a new game as a monk, newsym(0,0) was being called (adjabil -> incorporate a fix to prevent segfault due to rolling boulder trap wands of digging generate less often lategame more strict checking of dishonourable attacks +vault guard verbalization shouldn't be heard from too far away Fixes to 5.0.0-x General Problems Exposed Via git Repository diff --git a/src/vault.c b/src/vault.c index 1f2d97a53..597c4b267 100644 --- a/src/vault.c +++ b/src/vault.c @@ -1000,7 +1000,7 @@ gd_move(struct monst *grd) gd_letknow(grd); return -1; } else { - if (!Deaf) { + if (!Deaf && mdistu(grd) <= 10*10) { SetVoice(grd, 0, 80, 0); verbalize("Well, begone."); }