From e0c16e3e44b4b97c89f590fa063c0d6bb341fe50 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Wed, 3 Dec 2008 06:31:03 +0000 Subject: 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 --- crawl-ref/source/xom.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/xom.cc') diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index e67afa4598..2b0930c5d8 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -203,8 +203,11 @@ static void _xom_makes_you_cast_random_spell(int sever) static void _xom_make_item(object_class_type base, int subtype, int power) { + god_acting gdact(GOD_XOM); + int thing_created = - items(true, base, subtype, true, power, MAKE_ITEM_RANDOM_RACE); + items(true, base, subtype, true, power, MAKE_ITEM_RANDOM_RACE, + 0, 0, GOD_XOM); if (thing_created == NON_ITEM) { @@ -212,14 +215,10 @@ static void _xom_make_item(object_class_type base, int subtype, int power) return; } - god_acting gdact(GOD_XOM); - move_item_to_grid(&thing_created, you.x_pos, you.y_pos); mitm[thing_created].inscription = "god gift"; canned_msg(MSG_SOMETHING_APPEARS); stop_running(); - - origin_acquired(mitm[thing_created], GOD_XOM); } static object_class_type _get_unrelated_wield_class(object_class_type ref) -- cgit v1.2.3-54-g00ecf