Skip to content

Commit

Permalink
Buff blessed potion of monster detection
Browse files Browse the repository at this point in the history
  • Loading branch information
paxed committed Oct 11, 2023
1 parent 3854677 commit dfac5fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/fixes3-7-0.txt
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/potion.c
Expand Up @@ -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++) {
Expand Down

0 comments on commit dfac5fb

Please sign in to comment.