diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-31 14:02:32 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-31 15:56:03 +0100 |
commit | 93057974cdb8277159b52a7c9e2f9f6c50cdb6a7 (patch) | |
tree | fac804494c16682b178a2f55c202a7c821034a48 /crawl-ref/source/mon-transit.cc | |
parent | 72324ce5f5822239d5df3461f8811bd1e160fd06 (diff) | |
download | crawl-ref-93057974cdb8277159b52a7c9e2f9f6c50cdb6a7.tar.gz crawl-ref-93057974cdb8277159b52a7c9e2f9f6c50cdb6a7.zip |
Make Yred's gifts follow through stairways even if behind zombies.
Monsters that would qualify as followers but are incapable of
using stairs now also get the MF_TAKING_STAIRS flag. In files.cc,
_grab_follower_at() they get filtered out from transit, but this
way followers not adjacent to the player, but connected via other
allies can be considered anyway.
Tested for Beogh and Yredelemnul, without problems.
In practise this currently only matters for Yredelemnul if your
gifted undead are not adjacent to you, but rather standing behind
some zombies or skeletons. However, I am certain we'll find quickly
other applications, too. :)
Diffstat (limited to 'crawl-ref/source/mon-transit.cc')
-rw-r--r-- | crawl-ref/source/mon-transit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-transit.cc b/crawl-ref/source/mon-transit.cc index 6db3c417ca..edc6de9074 100644 --- a/crawl-ref/source/mon-transit.cc +++ b/crawl-ref/source/mon-transit.cc @@ -241,7 +241,7 @@ void follower::load_mons_items() bool follower::place(bool near_player) { - for (int i = 0; i < MAX_MONSTERS - 5; ++i) + for (int i = 0; i < MAX_MONSTERS /*- 5*/; ++i) { // Find first empty slot in menv and copy monster into it. monsters &m = menv[i]; @@ -252,7 +252,7 @@ bool follower::place(bool near_player) bool placed = false; // In certain instances (currently, falling through a shaft) - // try to place monster a close as possible to its previous + // try to place monster as close as possible to its previous // <x,y> coordinates. if (!near_player && you.level_type == LEVEL_DUNGEON && in_bounds(m.pos())) |