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

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