summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-25 19:41:46 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-25 19:41:46 +0000
commite46965c192b6ddc04357366a2f136d6e2115bb59 (patch)
treed35217c1c5b22d20e6070865ff92fefe7d5a1cd1 /crawl-ref/source/externs.h
parent3729bb7d83361ee5032dcc513e5740da08798be6 (diff)
downloadcrawl-ref-e46965c192b6ddc04357366a2f136d6e2115bb59.tar.gz
crawl-ref-e46965c192b6ddc04357366a2f136d6e2115bb59.zip
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
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h5
1 files changed, 4 insertions, 1 deletions
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()
{