From 40a2450967f83c467d46c3b49cc0d0278a139587 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 6 Sep 2008 13:39:56 +0000 Subject: [2092341] Named monsters will also be recorded with their base monster type in the logfile. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6891 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/directn.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 929f11ae81..50809bdd9b 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -1687,7 +1687,7 @@ static bool _find_mlist( const coord_def& where, int idx, bool need_path, continue; real_idx++; - } + } monsters *mon = &menv[targ_mon]; @@ -2783,11 +2783,8 @@ std::string get_monster_desc(const monsters *mon, bool full_desc, // Note that the only difference between DESC_BASENAME and DESC_PLAIN // is that basename will ignore mname, so the monster _must_ be named // for this to make any sense. - if (!(mon->mname).empty() && desc != mon->name(DESC_BASENAME) - && mon->type != MONS_PLAYER_GHOST) - { + if (mon->has_base_name()) desc += " the " + mon->name(DESC_BASENAME); - } if (print_attitude) { -- cgit v1.2.3-54-g00ecf