Skip to content

Commit

Permalink
rumor consumption during level creation
Browse files Browse the repository at this point in the history
     I've forgotten who pointed this out recently, but the hero was having
wisdom exercized (if true rumor chosen) or abused (for false one) whenever
level creation made a random floor engraving which used a rumor for its text.
  • Loading branch information
nethack.rankin committed May 6, 2006
1 parent fb80305 commit 2d7b4ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/fixes34.4
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ code handling a monster's use of potion or food to cure stoning or confusion
properly handle destruction of equipment carried by monsters hit by
disintegration breath; life-saving retained conferred properties of
formerly worn items (loss of steed's saddle caused much confusion)
don't exercize or abuse wisdom when rumors get used for random graffiti


Platform- and/or Interface-Specific Fixes
Expand Down
5 changes: 3 additions & 2 deletions src/rumors.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ boolean exclude_cookie;
}
if ((endp = index(line, '\n')) != 0) *endp = 0;
Strcat(rumor_buf, xcrypt(line, xbuf));
} while(count++ < 50 && exclude_cookie && (strstri(rumor_buf, "fortune") || strstri(rumor_buf, "pity")));
} while (count++ < 50 && exclude_cookie &&
(strstri(rumor_buf, "fortune") || strstri(rumor_buf, "pity")));
(void) dlb_fclose(rumors);
if (count >= 50)
impossible("Can't find non-cookie rumor?");
else
else if (!in_mklev) /* avoid exercizing wisdom for graffiti */
exercise(A_WIS, (adjtruth > 0));
} else {
pline("Can't open rumors file!");
Expand Down

0 comments on commit 2d7b4ce

Please sign in to comment.