Skip to content

Commit

Permalink
more writing novels
Browse files Browse the repository at this point in the history
Instead of always retaining a blank spellbook when failing to write a
novel, make 2/3 chance to retain and 1/3 chance to destroy.  Same odds
(but separate chance) to attempt to write the Great Yendorian Novel
versus awful fan fiction.
  • Loading branch information
PatR committed May 13, 2022
1 parent a1bf4c2 commit 8774939
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions src/write.c
Expand Up @@ -128,11 +128,9 @@ dowrite(struct obj *pen)
return ECMD_CANCEL;
/* can't write on a novel (unless/until it's been converted into a blank
spellbook), but we want messages saying so to avoid "spellbook" */
typeword = (paper->otyp == SPE_NOVEL)
? "book"
: (paper->oclass == SPBOOK_CLASS)
? "spellbook"
: "scroll";
typeword = (paper->otyp == SPE_NOVEL) ? "book"
: (paper->oclass == SPBOOK_CLASS) ? "spellbook"
: "scroll";
if (Blind) {
if (!paper->dknown) {
You("don't know if that %s is blank or not.", typeword);
Expand Down Expand Up @@ -221,9 +219,23 @@ dowrite(struct obj *pen)
pline("It's obscene!");
return ECMD_TIME;
} else if (i == SPE_NOVEL) {
You(
"prepare to write the Great Yendorian Novel, but lack inspiration.");
You("give up on the idea.");
boolean fanfic = !rn2(3), tearup = !rn2(3);

if (!fanfic) {
You("%s to write the Great Yendorian Novel, but %s inspiration.",
!tearup ? "prepare" : "try",
!Hallucination ? "lack" : "have too much");
} else {
You("%sproduce really %s fan-fiction.",
!tearup ? "start to " : "",
!Hallucination ? "lame" : "awesome");
}
if (!tearup) {
You("give up on the idea.");
} else {
You("tear it up.");
useup(paper);
}
return ECMD_TIME;
} else if (i == SPE_BOOK_OF_THE_DEAD) {
pline("No mere dungeon adventurer could write that.");
Expand Down

0 comments on commit 8774939

Please sign in to comment.