From 621bd9ce58cc45ce9cfcc3cf1f576882b40a426d Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 15 Mar 2007 20:10:20 +0000 Subject: Cleaned up ghost and Pandemonium demon handling. Can now have multiple ghosts or Pandemonium demons on a level. Ghosts and Pan demons can coexist. (D:9 and later are eligible for >1 ghost.) Enabled loading ghosts in Pandemonium. Pandemonium demons can now be created outside Pan. Not that you'd want to do it, but you can. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1043 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monplace.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/monplace.cc') diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index 9c70d802a2..0057b36025 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -571,7 +571,6 @@ static int place_monster_aux( int mon_type, char behaviour, int target, } } - // give manticores 8 to 16 spike volleys. // they're not spellcasters so this doesn't screw anything up. if (mon_type == MONS_MANTICORE) @@ -604,6 +603,15 @@ static int place_monster_aux( int mon_type, char behaviour, int target, menv[id].foe = target; + // Initialise pandemonium demons + if (menv[id].type == MONS_PANDEMONIUM_DEMON) + { + ghost_demon ghost; + ghost.init_random_demon(); + menv[id].set_ghost(ghost); + menv[id].pandemon_init(); + } + mark_interesting_monst(&menv[id], behaviour); if (player_monster_visible(&menv[id]) && mons_near(&menv[id])) -- cgit v1.2.3-54-g00ecf