summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-03 06:31:03 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-03 06:31:03 +0000
commite0c16e3e44b4b97c89f590fa063c0d6bb341fe50 (patch)
treee91429b6374df49fc8fb8fe691fdc2c52c7ba6c0 /crawl-ref/source/religion.cc
parent07eadf8e4cf3dd61fa66d194720143685ab84174 (diff)
downloadcrawl-ref-e0c16e3e44b4b97c89f590fa063c0d6bb341fe50.tar.gz
crawl-ref-e0c16e3e44b4b97c89f590fa063c0d6bb341fe50.zip
Merge r7726 from trunk: set acquirement source on items early enough that
it can be used by make_item_randart(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@7727 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 0e7c1cdaaa..b5282efd3b 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1023,7 +1023,8 @@ static void _give_nemelex_gift()
_update_sacrifice_weights(choice);
int thing_created = items( 1, OBJ_MISCELLANY, gift_type,
- true, 1, MAKE_ITEM_RANDOM_RACE );
+ true, 1, MAKE_ITEM_RANDOM_RACE,
+ 0, 0, GOD_NEMELEX_XOBEH );
if (thing_created != NON_ITEM)
{
@@ -1060,7 +1061,6 @@ static void _give_nemelex_gift()
deck.inscription = "god gift";
move_item_to_grid( &thing_created, you.x_pos, you.y_pos );
- origin_acquired(deck, you.religion);
simple_god_message(" grants you a gift!");
more();
@@ -1873,7 +1873,8 @@ static void _do_god_gift(bool prayed_for)
else
{
int thing_created = items(1, OBJ_BOOKS, gift, true, 1,
- MAKE_ITEM_RANDOM_RACE);
+ MAKE_ITEM_RANDOM_RACE,
+ 0, 0, you.religion);
if (thing_created == NON_ITEM)
return;
@@ -1883,7 +1884,6 @@ static void _do_god_gift(bool prayed_for)
{
success = true;
mitm[thing_created].inscription = "god gift";
- origin_acquired(mitm[thing_created], you.religion);
}
}
@@ -3882,7 +3882,8 @@ static bool _beogh_retribution()
// Create item.
int slot = items(0, OBJ_WEAPONS, WPN_CLUB + random2(13),
true, you.experience_level,
- am_orc ? MAKE_ITEM_NO_RACE : MAKE_ITEM_ORCISH);
+ am_orc ? MAKE_ITEM_NO_RACE : MAKE_ITEM_ORCISH,
+ 0, 0, GOD_BEOGH);
if (slot == -1)
continue;