diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-05-05 17:45:26 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-05-05 17:47:55 -0400 |
commit | f5d7e1195ccb3df16f5ad6341810bc259f51c611 (patch) | |
tree | 06a5031da0905d445b3f0a3cd8cef1ff8ba7ed7e /crawl-ref/source/mapdef.cc | |
parent | 8b0589b2b84b012d14d5e95f6c54ddbcd71c88db (diff) | |
download | crawl-ref-f5d7e1195ccb3df16f5ad6341810bc259f51c611.tar.gz crawl-ref-f5d7e1195ccb3df16f5ad6341810bc259f51c611.zip |
Abstractify.
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index f89650cc17..7929d57729 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -4292,9 +4292,7 @@ mons_spec mons_list::drac_monspec(string name) const // We should have a non-base draconian here. if (spec.type == MONS_PROGRAM_BUG || mons_genus(static_cast<monster_type>(spec.type)) != MONS_DRACONIAN - || spec.type == MONS_DRACONIAN - || (spec.type >= MONS_BLACK_DRACONIAN - && spec.type <= MONS_PALE_DRACONIAN)) + || mons_is_base_draconian(spec.type)) { return MONS_PROGRAM_BUG; } |