more updates to the bookstore tribute

This commit is contained in:
nhmall
2015-03-20 00:58:29 -04:00
parent c72c531c2c
commit 0a8d24d87d
7 changed files with 168 additions and 19 deletions

View File

@@ -75,12 +75,13 @@ struct warntype_info {
struct tribute_info {
size_t tributesz; /* make it possible to skip this in future */
char *name; /* what is this tribute for */
boolean enabled; /* Do we have tributes turned on? */
Bitfield(book,1); /* Have we completed the book tribute? */
Bitfield(bookstock,1); /* Have we stocked the book? */
/* Markers for other tributes can go here */
/* 31 free bits */
int bookidx;
int bookidx; /* Index of book in list of book titles */
int passagecnt; /* Number of passages for this book avail */
int passagenum; /* Passage last read */
};
struct context_info {

View File

@@ -1839,6 +1839,7 @@ E void FDECL(punish, (struct obj *));
E void NDECL(unpunish);
E boolean FDECL(cant_revive, (int *,BOOLEAN_P,struct obj *));
E boolean NDECL(create_particular);
E void FDECL(read_tribbook, (const char *, struct obj *));
/* ### rect.c ### */

View File

@@ -33,6 +33,7 @@
#define EPITAPHFILE "epitaph" /* random epitaphs on graves */
#define ENGRAVEFILE "engrave" /* random engravings on the floor */
#define BOGUSMONFILE "bogusmon" /* hallucinatory monsters */
#define TRIBUTEFILE "tribute" /* 3.6 tribute to Terry Pratchett */
#define LEV_EXT ".lev" /* extension for special level files */