From 9c8c17b70cc429034edd3a2a7caa639688dcd0cc Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 4 Apr 2026 17:58:24 +0300 Subject: [PATCH] Tweak the blessed potion of see invisible Blessed potion guarantees the intrinsic, if you're invisible and can see invisible before quaffing. --- src/potion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/potion.c b/src/potion.c index 9db0d3471..d56b64155 100644 --- a/src/potion.c +++ b/src/potion.c @@ -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));