summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 73b85bb880..67cd67a401 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -2945,8 +2945,8 @@ bool item_def::has_spells() const
int item_def::book_number() const
{
- return (base_type == OBJ_BOOKS? sub_type :
- base_type == OBJ_STAVES? sub_type + 40 :
+ return (base_type == OBJ_BOOKS? sub_type :
+ base_type == OBJ_STAVES? sub_type + 50 - STAFF_SMITING :
-1);
}