Potions of hallucination can give enlightenment
This is also from SliceHack, but with the odds of enlightenment toned down a bit, to 4/9 for a blessed potion and 1/6 for an uncursed potion (SliceHack had it at 50% blessed, 20% cursed, and strangely, 0% uncursed). It gives a much-needed use to one of the potions that's commonly blanked or discarded.
This commit is contained in:
committed by
Pasi Kallinen
parent
1ba1422eba
commit
4129706a4c
@@ -108,6 +108,7 @@ make non-tame (baby) purple worms eat corpses off the ground
|
|||||||
make baby purple worms attack shriekers
|
make baby purple worms attack shriekers
|
||||||
make hero polymorphed into baby purple worm warned against shriekers
|
make hero polymorphed into baby purple worm warned against shriekers
|
||||||
confused scroll of light summons tame cancelled lights
|
confused scroll of light summons tame cancelled lights
|
||||||
|
potions of hallucination can give enlightenment
|
||||||
|
|
||||||
|
|
||||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||||
|
|||||||
+12
-1
@@ -632,11 +632,22 @@ register struct obj *otmp;
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case POT_HALLUCINATION:
|
case POT_HALLUCINATION:
|
||||||
if (Hallucination || Halluc_resistance)
|
if (Halluc_resistance) {
|
||||||
g.potion_nothing++;
|
g.potion_nothing++;
|
||||||
|
break;
|
||||||
|
} else if (Hallucination) {
|
||||||
|
g.potion_nothing++;
|
||||||
|
}
|
||||||
(void) make_hallucinated(itimeout_incr(HHallucination,
|
(void) make_hallucinated(itimeout_incr(HHallucination,
|
||||||
rn1(200, 600 - 300 * bcsign(otmp))),
|
rn1(200, 600 - 300 * bcsign(otmp))),
|
||||||
TRUE, 0L);
|
TRUE, 0L);
|
||||||
|
if ((otmp->blessed && !rn2(3)) || (!otmp->cursed && !rn2(6))) {
|
||||||
|
You("perceive yourself...");
|
||||||
|
display_nhwindow(WIN_MESSAGE, FALSE);
|
||||||
|
enlightenment(MAGICENLIGHTENMENT, ENL_GAMEINPROGRESS);
|
||||||
|
Your("awareness re-normalizes.");
|
||||||
|
exercise(A_WIS, TRUE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case POT_WATER:
|
case POT_WATER:
|
||||||
if (!otmp->blessed && !otmp->cursed) {
|
if (!otmp->blessed && !otmp->cursed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user