Add <Someone>'s "eye of newt" patch, which confers energy
when eating a newt corpse. Consumed energy is restored by up to 3
points, and if that takes the character past max energy there's a
chance to boost the latter by 1 point. I introduced randomization
so that level 1 characters can't just kill and eat all the newts on
the first couple of levels to unconditionally boost their initial
mana (22% chance per newt to increase max energy now instead of his
original 100% chance).
added validate_prefix_locations() for early directory prefix validation
fire traps are particularly bad for paper and straw golems
cream pies can be 'a'pplied to cause direct temporary blindness
+eating newt corpse or tin of same can boost magical energy (Malcolm Ryan)
+
-/* SCCS Id: @(#)eat.c 3.4 2002/05/10 */
+/* SCCS Id: @(#)eat.c 3.4 2002/09/25 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
if (eatmbuf) (void)eatmdone();
switch(pm) {
+ case PM_NEWT:
+ /* MRKR: "eye of newt" may give small magical energy boost */
+ if (rn2(3) || 3 * u.uen <= 2 * u.uenmax) {
+ You_feel("a mild buzz.");
+ u.uen += rnd(3);
+ if (u.uen > u.uenmax) {
+ if (!rn2(3)) u.uenmax++;
+ u.uen = u.uenmax;
+ }
+ flags.botl = 1;
+ }
+ break;
case PM_WRAITH:
pluslvl(FALSE);
break;