summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-04 12:29:35 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-04 12:29:35 +0000
commit7aa4a3c4ab0283fcc1ea883cb99a0493472decd6 (patch)
treeaf9f63fbe51b368c2178175dfd420c339faf72bc
parent5f0573841648581363fc0ce9a33a778c40370b6f (diff)
downloadcrawl-ref-7aa4a3c4ab0283fcc1ea883cb99a0493472decd6.tar.gz
crawl-ref-7aa4a3c4ab0283fcc1ea883cb99a0493472decd6.zip
Apply trunk r6759 to 0.4.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6767 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/effects.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 05850e6ef0..159b55b263 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1729,10 +1729,13 @@ bool acquirement(object_class_type class_wanted, int agent,
thing.inscription = "god gift";
if (is_random_artefact(thing))
{
- origin_acquired(mitm[thing_created], agent);
- // give another name that takes god gift into account
- thing.props["randart_name"].get_string() =
- randart_name(thing, false);
+ origin_acquired(thing, agent);
+ if ( !is_unrandom_artefact(thing) )
+ {
+ // give another name that takes god gift into account
+ thing.props["randart_name"].get_string() =
+ randart_name(thing, false);
+ }
}
}
move_item_to_grid( &thing_created, you.x_pos, you.y_pos );