diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 03:57:11 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 03:57:11 +0000 |
commit | a6b399eae4cd72f6bc2f077a694ecf5ef6b75ffc (patch) | |
tree | 5f9ce43c244881192bede86434a5e8382c85fb15 /crawl-ref/source/dungeon.cc | |
parent | 662e3cb4688c794cfb3294772cc49b96e5311bb8 (diff) | |
download | crawl-ref-a6b399eae4cd72f6bc2f077a694ecf5ef6b75ffc.tar.gz crawl-ref-a6b399eae4cd72f6bc2f077a694ecf5ef6b75ffc.zip |
Overhaul god gift handling again so that we can tell which god sent
which gift. There was an unused god parameter in the monsters struct,
which was probably intended to hold which god a monster worshipped.
I've used it as an indicator of which god sent the monster, under the
assumption that gods would send their own worshippers as gifts. (I hope
this isn't an abuse of it.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5748 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 0fb14bb8e6..53af68600b 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -2870,7 +2870,7 @@ static int _place_uniques(int level_number, char level_type) mgen_data mg( which_unique, BEH_SLEEP, 0, coord_def(), MHITNOT, MG_PERMIT_BANDS, - MONS_PROGRAM_BUG, 0, BLACK, + GOD_NO_GOD, MONS_PROGRAM_BUG, 0, BLACK, level_number, PROX_ANYWHERE ); mg.map_mask = MMT_NO_MONS; |