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/it_use3.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/it_use3.cc')
-rw-r--r-- | crawl-ref/source/it_use3.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc index 5f257fb335..f7fc48e9cb 100644 --- a/crawl-ref/source/it_use3.cc +++ b/crawl-ref/source/it_use3.cc @@ -621,7 +621,7 @@ bool evoke_wielded() canned_msg(MSG_NOTHING_HAPPENS); else { - cast_summon_elemental(100, false, MONS_AIR_ELEMENTAL, 4); + cast_summon_elemental(100, GOD_NO_GOD, MONS_AIR_ELEMENTAL, 4); pract = (one_chance_in(5) ? 1 : 0); } break; @@ -631,7 +631,7 @@ bool evoke_wielded() canned_msg(MSG_NOTHING_HAPPENS); else { - cast_summon_elemental(100, false, MONS_FIRE_ELEMENTAL, 4); + cast_summon_elemental(100, GOD_NO_GOD, MONS_FIRE_ELEMENTAL, 4); pract = (one_chance_in(5) ? 1 : 0); } break; @@ -641,7 +641,7 @@ bool evoke_wielded() canned_msg(MSG_NOTHING_HAPPENS); else { - cast_summon_elemental(100, false, MONS_EARTH_ELEMENTAL, 4); + cast_summon_elemental(100, GOD_NO_GOD, MONS_EARTH_ELEMENTAL, 4); pract = (one_chance_in(5) ? 1 : 0); } break; |