Buff blessed potion of monster detection

This commit is contained in:
Pasi Kallinen
2023-10-11 19:52:27 +03:00
parent 38546778d5
commit dfac5fbf67
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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++) {