rare books store tribute
This commit is contained in:
24
src/spell.c
24
src/spell.c
@@ -411,8 +411,9 @@ int
|
||||
study_book(spellbook)
|
||||
register struct obj *spellbook;
|
||||
{
|
||||
register int booktype = spellbook->otyp;
|
||||
register boolean confused = (Confusion != 0);
|
||||
int booktype = spellbook->otyp;
|
||||
boolean confused = (Confusion != 0);
|
||||
const char *whatchadoin = "memorize the spell";
|
||||
boolean too_hard = FALSE;
|
||||
|
||||
/* attempting to read dull book may make hero fall asleep */
|
||||
@@ -440,7 +441,8 @@ register struct obj *spellbook;
|
||||
/* handle the sequence: start reading, get interrupted,
|
||||
have context.spbook.book become erased somehow, resume reading it */
|
||||
booktype != SPE_BLANK_PAPER) {
|
||||
You("continue your efforts to memorize the spell.");
|
||||
You("continue your efforts to %s.", (booktype == SPE_NOVEL) ?
|
||||
"read the novel" : "memorize the spell");
|
||||
} else {
|
||||
/* KMH -- Simplified this code */
|
||||
if (booktype == SPE_BLANK_PAPER) {
|
||||
@@ -448,6 +450,22 @@ register struct obj *spellbook;
|
||||
makeknown(booktype);
|
||||
return(1);
|
||||
}
|
||||
|
||||
/* 3.6 tribute */
|
||||
if (booktype == SPE_NOVEL) {
|
||||
/* Obtain current Terry Pratchett book
|
||||
title for the current game. */
|
||||
const char *tribtitle = noveltitle(&context.tribute.bookidx);
|
||||
|
||||
/*
|
||||
* Place code here to pull desireable
|
||||
* random passages from somewhere (data.base?)
|
||||
* using tribtitle as the key?
|
||||
*/
|
||||
pline("Reading \"%s.\"", tribtitle); /* debug confirmation */
|
||||
return(1);
|
||||
}
|
||||
|
||||
switch (objects[booktype].oc_level) {
|
||||
case 1:
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user