diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-21 22:36:57 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-21 22:36:57 +0000 |
commit | 7a28aa3eb4eb379870421f057d04b5171a806f35 (patch) | |
tree | 9c4419f6551d6dac73e26f1fb06c82d79d62bae2 /crawl-ref/source/mon-pick.cc | |
parent | ee6b604426350289cc2ca6ba0e0de06d36e31163 (diff) | |
download | crawl-ref-7a28aa3eb4eb379870421f057d04b5171a806f35.tar.gz crawl-ref-7a28aa3eb4eb379870421f057d04b5171a806f35.zip |
Fix what remains of 1905764: monster description lookup issues.
* Add "small simulacrum" and "player ghost" to the database (albeit
with unoriginal descriptions), so they can be found.
* Add MONS_DRACONIAN to mons_misc_level(), so they are a
valid monster for the search (same as MONS_HUMAN and MONS_ELF).
* Don't look up draconian_colour for database constructed draconians
(mon.number = 0) to get rid of the "buggy" colour description.
* rename static functions in the modified files
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3795 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r-- | crawl-ref/source/mon-pick.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc index dac6cf39d2..57c63d6d06 100644 --- a/crawl-ref/source/mon-pick.cc +++ b/crawl-ref/source/mon-pick.cc @@ -45,7 +45,7 @@ struct global_level_info int avg_depth; }; -static int mons_misc_level(int mcls) +static int _mons_misc_level(int mcls) { switch(mons_char(mcls)) { @@ -75,6 +75,7 @@ static int mons_misc_level(int mcls) { case MONS_HUMAN: case MONS_ELF: + case MONS_DRACONIAN: return 1; case MONS_BIG_FISH: @@ -125,7 +126,7 @@ static int mons_misc_level(int mcls) static global_level_info g_lev_infos[] = { {mons_standard_level, BRANCH_MAIN_DUNGEON, 1}, - {mons_misc_level, BRANCH_MAIN_DUNGEON, 1}, + {_mons_misc_level, BRANCH_MAIN_DUNGEON, 1}, {mons_mineorc_level, BRANCH_ORCISH_MINES, 8}, {mons_lair_level, BRANCH_LAIR, 10}, {mons_hallelf_level, BRANCH_ELVEN_HALLS, 11}, |