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:30 +03:00
parent 87b3549134
commit 9c8c17b70c
+2 -1
View File
@@ -841,6 +841,7 @@ staticfn void
peffect_see_invisible(struct obj *otmp) peffect_see_invisible(struct obj *otmp)
{ {
int msg = Invisible && !Blind; int msg = Invisible && !Blind;
int permchance = 10 - (HInvis ? 3 : 0) - (HSee_invisible ? 6 : 0);
gp.potion_unkn++; gp.potion_unkn++;
if (otmp->cursed) if (otmp->cursed)
@@ -863,7 +864,7 @@ peffect_see_invisible(struct obj *otmp)
*/ */
make_blinded(0L, TRUE); make_blinded(0L, TRUE);
} }
if (otmp->blessed && !rn2(10)) if (otmp->blessed && !rn2(permchance))
HSee_invisible |= FROMOUTSIDE; HSee_invisible |= FROMOUTSIDE;
else else
incr_itimeout(&HSee_invisible, rn1(100, 750)); incr_itimeout(&HSee_invisible, rn1(100, 750));