B01005 - fasting by monks

Implement a suggestion by <Someone> that turns spent in
"hungry" state exercise wisdom for monk characters; also make
turns spent in "satiated" state abuse it instead.
This commit is contained in:
nethack.rankin
2002-07-17 23:31:12 +00:00
parent c286e48570
commit 09cb5be946

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)attrib.c 3.4 2000/05/17 */
/* SCCS Id: @(#)attrib.c 3.4 2002/07/17 */
/* Copyright 1988, 1989, 1990, 1992, M. Stephenson */
/* NetHack may be freely redistributed. See license for details. */
@@ -318,9 +318,15 @@ exerper()
pline("exerper: Hunger checks");
#endif
switch (hs) {
case SATIATED: exercise(A_DEX, FALSE); break;
case SATIATED: exercise(A_DEX, FALSE);
if (Role_if(PM_MONK))
exercise(A_WIS, FALSE);
break;
case NOT_HUNGRY: exercise(A_CON, TRUE); break;
case WEAK: exercise(A_STR, FALSE); break;
case WEAK: exercise(A_STR, FALSE);
if (Role_if(PM_MONK)) /* fasting */
exercise(A_WIS, TRUE);
break;
case FAINTING:
case FAINTED: exercise(A_CON, FALSE); break;
}