Skip to content

Commit

Permalink
Update descriptions for summoned monster stair use
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Campbell committed Jan 28, 2015
1 parent 69fc5cc commit 034e2a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion crawl-ref/source/describe.cc
Expand Up @@ -3987,7 +3987,7 @@ void get_monster_db_desc(const monster_info& mi, describe_info &inf,
inf.body << "\n" << "This monster has been summoned, and is thus only "
"temporary. Killing it yields no experience, nutrition "
"or items";
if (!stair_use && mi.is(MB_SUMMONED_NO_STAIRS))
if (!stair_use)
inf.body << ", and it is incapable of using stairs";
inf.body << ".\n";
}
Expand Down
11 changes: 1 addition & 10 deletions crawl-ref/source/mon-info.cc
Expand Up @@ -512,17 +512,8 @@ monster_info::monster_info(const monster* m, int milev)

_colour = m->colour;

int stype = 0;
if (m->is_summoned(0, &stype)
&& (!m->has_ench(ENCH_PHANTOM_MIRROR) || m->friendly()))
{
if (m->is_summoned())
mb.set(MB_SUMMONED);
if (stype > 0 && stype < NUM_SPELLS
&& summons_are_capped(static_cast<spell_type>(stype)))
{
mb.set(MB_SUMMONED_NO_STAIRS);
}
}
else if (m->is_perm_summoned())
mb.set(MB_PERM_SUMMON);

Expand Down
2 changes: 1 addition & 1 deletion crawl-ref/source/mon-info.h
Expand Up @@ -108,8 +108,8 @@ enum monster_info_flags
MB_CONTROL_WINDS,
#if TAG_MAJOR_VERSION == 34
MB_WIND_AIDED,
#endif
MB_SUMMONED_NO_STAIRS, // Temp. summoned and capped monsters
#endif
MB_SUMMONED_CAPPED, // Expiring due to summons cap
MB_TOXIC_RADIANCE,
MB_GRASPING_ROOTS,
Expand Down

0 comments on commit 034e2a6

Please sign in to comment.