From 7a28aa3eb4eb379870421f057d04b5171a806f35 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 21 Mar 2008 22:36:57 +0000 Subject: 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 --- crawl-ref/source/mon-pick.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/mon-pick.cc') 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}, -- cgit v1.2.3-54-g00ecf