diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-19 21:53:43 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-19 21:53:43 +0000 |
commit | 82d1156545140d12af47d0267466e34017684e0e (patch) | |
tree | df44f62da6a2000143dbf80221bbb3de9dd3235e /crawl-ref/source/output.cc | |
parent | 920b471045d3ef04952de3c127fd9d4c3688f1ac (diff) | |
download | crawl-ref-82d1156545140d12af47d0267466e34017684e0e.tar.gz crawl-ref-82d1156545140d12af47d0267466e34017684e0e.zip |
Update tutorial information for the 'm' and 'a' screens.
Space allowing, differentiate between hydras with different numbers of
heads in the monster list. (This is probably only interesting in the
Swamp.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5993 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 63f7a3dc41..fa1b681c57 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -1259,12 +1259,22 @@ monster_pane_info::less_than(const monster_pane_info& m1, if (m1.m_mon->type == MONS_DANCING_WEAPON) return (false); - // Because of the type checks above, if one of the two is zombified, so is - // the other, and of the same type. - if (zombified && mons_is_zombified(m1.m_mon) - && m1.m_mon->base_monster < m2.m_mon->base_monster) + if (zombified) { - return (true); + // Because of the type checks above, if one of the two is zombified, so is + // the other, and of the same type. + if (mons_is_zombified(m1.m_mon) + && m1.m_mon->base_monster < m2.m_mon->base_monster) + { + return (true); + } + + // Both monsters are hydras or hydra zombies, sort by number of heads. + if (m1.m_mon->has_hydra_multi_attack() + && m1.m_mon->number > m2.m_mon->number) + { + return (true); + } } if (m1.m_fullname && m2.m_fullname || m1.m_mon->type == MONS_PLAYER_GHOST) @@ -1288,7 +1298,7 @@ void monster_pane_info::to_string( int count, std::string& desc, if (count == 1) { - if (m_fullname && !mons_is_mimic(m_mon->type)) + if (!mons_is_mimic(m_mon->type)) out << m_mon->name(DESC_PLAIN); else out << mons_type_name(m_mon->type, DESC_PLAIN); |