Buff scroll of confuse monster

This commit is contained in:
Pasi Kallinen
2023-10-11 20:22:56 +03:00
parent dfac5fbf67
commit 13ad9561f3
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1257,7 +1257,7 @@ adjust wand of make invisible and potion of invisibility effects
barbed devils have an attack that sticks you to them barbed devils have an attack that sticks you to them
balrogs prefer bullwhip if hero is wielding a weapon balrogs prefer bullwhip if hero is wielding a weapon
ice devils have an additional attack, a slowing touch 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 Fixes to 3.7.0-x General Problems Exposed Via git Repository
+4 -3
View File
@@ -1311,14 +1311,15 @@ seffect_confuse_monster(struct obj **sobjp)
make_confused(0L, TRUE); make_confused(0L, TRUE);
} }
} else { } else {
int incr = 0; /* scroll vs spell */
int incr = (sobj->oclass == SCROLL_CLASS) ? 3 : 0;
if (!sblessed) { if (!sblessed) {
Your("%s%s %s%s.", makeplural(body_part(HAND)), Your("%s%s %s%s.", makeplural(body_part(HAND)),
altfeedback ? "" : " begin to glow", altfeedback ? "" : " begin to glow",
altfeedback ? (const char *) "tingle" : hcolor(NH_RED), altfeedback ? (const char *) "tingle" : hcolor(NH_RED),
u.umconf ? " even more" : ""); u.umconf ? " even more" : "");
incr = rnd(2); incr += rnd(2);
} else { } else {
if (altfeedback) if (altfeedback)
Your("%s tingle %s sharply.", makeplural(body_part(HAND)), 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.", Your("%s glow %s brilliant %s.",
makeplural(body_part(HAND)), makeplural(body_part(HAND)),
u.umconf ? "an even more" : "a", hcolor(NH_RED)); 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 */ /* after a while, repeated uses become less effective */
if (u.umconf >= 40) if (u.umconf >= 40)