summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-04 14:32:24 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-04 14:32:24 +0000
commitf5b7079207156bdd82d713a60cf79229fe33a109 (patch)
tree667500f1eb3c6a5e67eee0a2d997105d934af173 /crawl-ref/source/makeitem.cc
parent5be9c59587164c09a41da05a8de9e0d3588412ab (diff)
downloadcrawl-ref-f5b7079207156bdd82d713a60cf79229fe33a109.tar.gz
crawl-ref-f5b7079207156bdd82d713a60cf79229fe33a109.zip
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
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index a630b7b742..11f2332229 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2521,8 +2521,7 @@ static void _generate_staff_item(item_def& item, int force_type)
item.sub_type = force_type;
else
{
- // assumption: STAFF_SMITING is the first rod
- item.sub_type = random2(STAFF_SMITING);
+ item.sub_type = random2(STAFF_FIRST_ROD);
// rods are rare (10% of all staves)
if (one_chance_in(10))