From dfac5fbf67ca9b2b147c09a17306202818e35b08 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 11 Oct 2023 19:52:27 +0300 Subject: [PATCH] Buff blessed potion of monster detection --- doc/fixes3-7-0.txt | 1 + src/potion.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 74b821885..970de375c 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1257,6 +1257,7 @@ adjust wand of make invisible and potion of invisibility effects barbed devils have an attack that sticks you to them balrogs prefer bullwhip if hero is wielding a weapon ice devils have an additional attack, a slowing touch +buff blessed potion of monster detection Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/potion.c b/src/potion.c index 2bef884fc..9b77d7593 100644 --- a/src/potion.c +++ b/src/potion.c @@ -901,8 +901,10 @@ peffect_monster_detection(struct obj *otmp) /* after a while, repeated uses become less effective */ if ((HDetect_monsters & TIMEOUT) >= 300L) i = 1; - else + else if (otmp->oclass == SPBOOK_CLASS) i = rn1(40, 21); + else /* potion */ + i = rn2(100) + 100; incr_itimeout(&HDetect_monsters, i); for (x = 1; x < COLNO; x++) { for (y = 0; y < ROWNO; y++) {