Archived from groups: rec.games.roguelike.nethack (
More info?)
On Tue, 5 Jul 2005, Dylan O'Donnell wrote:
> Jym <moyen@loria.fr> writes:
> > Is there a way to check one's current hunger value in wizmode ?
> >
> > (running slash'em if that make any difference).
> >
> > If needed, I'm able to recompile with an appropriate option.
>
> No, but adding it to ^X and other sources of enlightenment is fairly
> trivial:
>
> --- nethack-3.4.3/src/cmd.c Wed Mar 30 10:11:17 2005
> +++ nethack-3.4.3bis/src/cmd.c Tue Jul 5 17:07:53 2005
> @@ -1044,6 +1044,12 @@
> if (u.twoweap) you_are("wielding two weapons at once");
>
> /*** Miscellany ***/
> +#ifdef WIZARD
> + if (wizard) {
> + Sprintf(buf, " %d", u.uhunger);
> + enl_msg("Your nutrition value ", "is", "was", buf);
> + }
> +#endif
> if (Luck) {
> ltmp = abs((int)Luck);
> Sprintf(buf, "%s%slucky",
>
>
> Should work just as well with SLASH'EM.
Yep. Just figured that out after a bit of diving and made almost the same
thing (I also had the global hunger status in usual enlightenment, rather
useless, I agree).
Hypocoristiquement,
Jym.