diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-06 04:21:59 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-06 04:21:59 +0000 |
commit | c6f1b8f3258bc3369e3d31ef9d66ae6f6dfcb7a6 (patch) | |
tree | 132adc0b87976509867ecfd14f04e05c313fa5bd /crawl-ref/source/mapdef.cc | |
parent | 3905eb1807dab85e62766fd362daf0edb3815cfb (diff) | |
download | crawl-ref-c6f1b8f3258bc3369e3d31ef9d66ae6f6dfcb7a6.tar.gz crawl-ref-c6f1b8f3258bc3369e3d31ef9d66ae6f6dfcb7a6.zip |
Expand mons_itemuse() to work at the individual monster level, as well.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7152 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 4f75be52a8..651f475253 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -2004,7 +2004,7 @@ mons_list::mons_spec_slot mons_list::parse_mons_spec(std::string spec) error = "Can't give spec items to a random monster."; return (slot); } - else if (mons_itemuse(mid) < MONUSE_STARTING_EQUIPMENT) + else if (mons_class_itemuse(mid) < MONUSE_STARTING_EQUIPMENT) { error = make_stringf("Monster '%s' can't use items.", mon_str.c_str()); |