summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-17 12:35:36 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-17 12:35:36 +0000
commit7a0cf4fa055dbebc676db78dde82881be8a6e6af (patch)
tree27b003fb1ae2982e2886f1a31975ab7a3be749cf /crawl-ref/source/effects.cc
parentab86f8464ed1b3f73f2e19e01a63089777d91c23 (diff)
downloadcrawl-ref-7a0cf4fa055dbebc676db78dde82881be8a6e6af.tar.gz
crawl-ref-7a0cf4fa055dbebc676db78dde82881be8a6e6af.zip
Fix 1931767: sort_menus not working for pickup menu
FR 1943597: Auto-inscribe god gifts with {god gift} including Xom gifts. These inscriptions do not (yet?) get cleared when the item is identified. Also, if it's not yet possible, menu_colour should work for the pickup menu, and init.txt should include a line colouring "god gift". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4286 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 245e65548e..a245da13a2 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1705,6 +1705,8 @@ bool acquirement(object_class_type class_wanted, int agent,
}
}
+ if (agent == you.religion)
+ thing.inscription = "god gift";
move_item_to_grid( &thing_created, you.x_pos, you.y_pos );
// This should never actually be NON_ITEM because of the way