From f5b7079207156bdd82d713a60cf79229fe33a109 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 4 Feb 2009 14:32:24 +0000 Subject: Clean up acquirement subtype determination code. (Another goto bites the dust.) Be a bit more generous regarding books for Evoc and Invoc types. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8890 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/command.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/command.cc') diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index b5fcc0fa4a..95159c5c26 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -1213,7 +1213,7 @@ static bool _append_books(std::string &desc, item_def &item, std::string key) item.base_type = OBJ_STAVES; int book; - for (int i = STAFF_SMITING; i < NUM_STAVES; i++) + for (int i = STAFF_FIRST_ROD; i < NUM_STAVES; i++) { item.sub_type = i; book = item.book_number(); -- cgit v1.2.3-54-g00ecf