rare books store tribute

This commit is contained in:
nhmall
2015-03-18 21:47:18 -04:00
parent debdf7ca48
commit d01bec9fae
11 changed files with 143 additions and 9 deletions

View File

@@ -73,6 +73,16 @@ struct warntype_info {
short speciesidx; /* index of above in mons[] (for save/restore) */
};
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? */
/* Markers for other tributes can go here */
/* 31 free bits */
int bookidx;
};
struct context_info {
unsigned ident; /* social security number for each monster */
unsigned no_of_wizards; /* 0, 1 or 2 (wizard and his shadow) */
@@ -103,6 +113,7 @@ struct context_info {
struct book_info spbook;
struct takeoff_info takeoff;
struct warntype_info warntype;
struct tribute_info tribute;
};
extern NEARDATA struct context_info context;

View File

@@ -394,6 +394,7 @@ E const char *NDECL(roguename);
E struct obj *FDECL(realloc_obj,
(struct obj *, int, genericptr_t, int, const char *));
E char *FDECL(coyotename, (struct monst *,char *));
E const char *FDECL(noveltitle, (int *));
/* ### do_wear.c ### */