diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-20 20:45:11 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-20 20:45:11 -0800 |
commit | 0c0e03aa42471d8d791cdd5bbd9503455623b740 (patch) | |
tree | 80c6c958fccceb37c619ff6561b40e68d2601af4 /crawl-ref/source/mon-place.cc | |
parent | cd26a67dc74141c030ac48ec29993fbb893a2005 (diff) | |
download | crawl-ref-0c0e03aa42471d8d791cdd5bbd9503455623b740.tar.gz crawl-ref-0c0e03aa42471d8d791cdd5bbd9503455623b740.zip |
define_monster(): init ghost_demon for some mons
Move setting up of mons.ghost for pandemonium lords to define_monster(),
and also have define_monster() do some default initialization for (very)
ugly things and player ghosts, so that a simple define_monster() will
generate something valid to be displayed in the monster lookup menu
(?/M).
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r-- | crawl-ref/source/mon-place.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc index 4dbd5957a8..6f77a2619a 100644 --- a/crawl-ref/source/mon-place.cc +++ b/crawl-ref/source/mon-place.cc @@ -1350,13 +1350,6 @@ static int _place_monster_aux(const mgen_data &mg, mon->set_ghost(ghost, false); mon->uglything_init(); } - else if (mon->type == MONS_PANDEMONIUM_DEMON) - { - ghost_demon ghost; - ghost.init_random_demon(); - mon->set_ghost(ghost); - mon->pandemon_init(); - } else if (mon->type == MONS_DANCING_WEAPON) { ghost_demon ghost; |