From e46965c192b6ddc04357366a2f136d6e2115bb59 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 25 Apr 2007 19:41:46 +0000 Subject: Allow describing rod/spellbook spells from the examine command (jarpiain). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1370 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/externs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/externs.h') diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 11ce96a940..69b1727d70 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -422,7 +422,8 @@ struct item_def short orig_monnum; std::string inscription; - + +public: item_def() : base_type(OBJ_UNASSIGNED), sub_type(0), plus(0), plus2(0), special(0L), colour(0), flags(0L), quantity(0), x(0), y(0), link(NON_ITEM), slot(0), orig_place(0), @@ -432,6 +433,8 @@ struct item_def std::string name(description_level_type descrip, bool terse = false, bool ident = false) const; + bool has_spells() const; + int book_number() const; void clear() { -- cgit v1.2.3-54-g00ecf