E int FDECL(bhitpile,
(struct obj *, int (*)(OBJ_P, OBJ_P), int, int, SCHAR_P));
E int FDECL(zappable, (struct obj *));
+E void NDECL(do_enlightenment_effect);
E void FDECL(zapnodir, (struct obj *));
E int NDECL(dozap);
E int FDECL(zapyourself, (struct obj *, BOOLEAN_P));
(void) adjattrib(A_INT, 1, FALSE);
(void) adjattrib(A_WIS, 1, FALSE);
}
- You_feel("self-knowledgeable...");
- display_nhwindow(WIN_MESSAGE, FALSE);
- enlightenment(MAGICENLIGHTENMENT, ENL_GAMEINPROGRESS);
- pline_The("feeling subsides.");
- exercise(A_WIS, TRUE);
+ do_enlightenment_effect();
}
break;
case SPE_INVISIBILITY:
return 1;
}
+void
+do_enlightenment_effect()
+{
+ You_feel("self-knowledgeable...");
+ display_nhwindow(WIN_MESSAGE, FALSE);
+ enlightenment(MAGICENLIGHTENMENT, ENL_GAMEINPROGRESS);
+ pline_The("feeling subsides.");
+ exercise(A_WIS, TRUE);
+}
+
/*
* zapnodir - zaps a NODIR wand/spell.
* added by GAN 11/03/86
break;
case WAN_ENLIGHTENMENT:
known = TRUE;
- You_feel("self-knowledgeable...");
- display_nhwindow(WIN_MESSAGE, FALSE);
- enlightenment(MAGICENLIGHTENMENT, ENL_GAMEINPROGRESS);
- pline_The("feeling subsides.");
- exercise(A_WIS, TRUE);
+ do_enlightenment_effect();
break;
}
if (known) {