diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-13 14:08:38 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-13 14:08:38 +0000 |
commit | 3719e3c8c35ad7bd924373512c25ce7828d62a03 (patch) | |
tree | b9c4436ae2d9046a45ccba1a2b7ff2d93a56b405 /crawl-ref/source/ghost.cc | |
parent | c92159fe7f003977dee3ea4d16a18176f6435435 (diff) | |
download | crawl-ref-3719e3c8c35ad7bd924373512c25ce7828d62a03.tar.gz crawl-ref-3719e3c8c35ad7bd924373512c25ce7828d62a03.zip |
Fixed bad grammar on shield block messages in melee.
Split up Abyss/Pan/Labyrinth save files. The only practical use right now is to
be able to correctly place Abyss and Pan ghosts.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1295 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r-- | crawl-ref/source/ghost.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc index 5216cc4352..d09f1484ac 100644 --- a/crawl-ref/source/ghost.cc +++ b/crawl-ref/source/ghost.cc @@ -453,6 +453,7 @@ std::vector<ghost_demon> ghost_demon::find_ghosts() ghost_demon player; player.init_player_ghost(); + announce_ghost(player); gs.push_back(player); find_extra_ghosts( gs, n_extra_ghosts() ); @@ -477,6 +478,7 @@ void ghost_demon::find_transiting_ghosts( const monsters &m = i->mons; if (m.ghost.get()) { + announce_ghost(*m.ghost); gs.push_back(*m.ghost); --n; } @@ -485,6 +487,13 @@ void ghost_demon::find_transiting_ghosts( } } +void ghost_demon::announce_ghost(const ghost_demon &g) +{ +#ifdef DEBUG_DIAGNOSTICS + mprf(MSGCH_DIAGNOSTICS, "Saving ghost: %s", g.name.c_str()); +#endif +} + void ghost_demon::find_extra_ghosts( std::vector<ghost_demon> &gs, int n ) { for (int i = 0; n > 0 && i < MAX_MONSTERS; ++i) @@ -495,6 +504,7 @@ void ghost_demon::find_extra_ghosts( std::vector<ghost_demon> &gs, int n ) if (menv[i].type == MONS_PLAYER_GHOST && menv[i].ghost.get()) { // Bingo! + announce_ghost(*menv[i].ghost); gs.push_back( *menv[i].ghost ); --n; } |