From 7a0cf4fa055dbebc676db78dde82881be8a6e6af Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 17 Apr 2008 12:35:36 +0000 Subject: 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 --- crawl-ref/source/effects.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/effects.cc') 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 -- cgit v1.2.3-54-g00ecf