summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 0931faa75d..059ef8c7d6 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -1176,7 +1176,8 @@ std::string mpr_monster_list(bool past)
#ifndef USE_TILE
monster_pane_info::monster_pane_info(const monsters *m)
- : m_mon(m)
+ : m_mon(m), m_attitude(ATT_HOSTILE), m_difficulty(0),
+ m_brands(0), m_fullname(true)
{
// XXX: this doesn't take into account ENCH_NEUTRAL, but that's probably
// a bug for mons_attitude, not this.
@@ -1186,10 +1187,11 @@ monster_pane_info::monster_pane_info(const monsters *m)
// Currently, difficulty is defined as "average hp". Leaks too much info?
const monsterentry* me = get_monster_data(m->type);
+ // [ds] XXX: Use monster experience value as a better indicator of diff.?
m_difficulty = me->hpdice[0] * (me->hpdice[1] + (me->hpdice[2]>>1))
+ me->hpdice[3];
- m_brands = 0;
+ // [ds] XXX: Kill the magic numbers.
if (mons_looks_stabbable(m)) m_brands |= 1;
if (mons_looks_distracted(m)) m_brands |= 2;
if (m->has_ench(ENCH_BERSERK)) m_brands |= 4;