From 13ad9561f38b48c95a87bb58ebf8a297e1462e3d Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 11 Oct 2023 20:20:05 +0300 Subject: [PATCH] Buff scroll of confuse monster --- doc/fixes3-7-0.txt | 2 +- src/read.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 970de375c..375395253 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1257,7 +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 +buff scroll of confuse monster and blessed potion of monster detection Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/read.c b/src/read.c index 697eb779d..95cff4ac3 100644 --- a/src/read.c +++ b/src/read.c @@ -1311,14 +1311,15 @@ seffect_confuse_monster(struct obj **sobjp) make_confused(0L, TRUE); } } else { - int incr = 0; + /* scroll vs spell */ + int incr = (sobj->oclass == SCROLL_CLASS) ? 3 : 0; if (!sblessed) { Your("%s%s %s%s.", makeplural(body_part(HAND)), altfeedback ? "" : " begin to glow", altfeedback ? (const char *) "tingle" : hcolor(NH_RED), u.umconf ? " even more" : ""); - incr = rnd(2); + incr += rnd(2); } else { if (altfeedback) Your("%s tingle %s sharply.", makeplural(body_part(HAND)), @@ -1327,7 +1328,7 @@ seffect_confuse_monster(struct obj **sobjp) Your("%s glow %s brilliant %s.", makeplural(body_part(HAND)), u.umconf ? "an even more" : "a", hcolor(NH_RED)); - incr = rn1(8, 2); + incr += rn1(8, 2); } /* after a while, repeated uses become less effective */ if (u.umconf >= 40)