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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user