Tweak the blessed potion of see invisible

Blessed potion guarantees the intrinsic, if you're
invisible and can see invisible before quaffing.
This commit is contained in:
Pasi Kallinen
2026-04-04 17:58:24 +03:00
parent 87b3549134
commit 9c8c17b70c

View File

@@ -841,6 +841,7 @@ staticfn void
peffect_see_invisible(struct obj *otmp)
{
int msg = Invisible && !Blind;
int permchance = 10 - (HInvis ? 3 : 0) - (HSee_invisible ? 6 : 0);
gp.potion_unkn++;
if (otmp->cursed)
@@ -863,7 +864,7 @@ peffect_see_invisible(struct obj *otmp)
*/
make_blinded(0L, TRUE);
}
if (otmp->blessed && !rn2(10))
if (otmp->blessed && !rn2(permchance))
HSee_invisible |= FROMOUTSIDE;
else
incr_itimeout(&HSee_invisible, rn1(100, 750));