From 99b051c4e4650638e0f902304a649c2ab55c3040 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 14 Aug 2007 21:46:31 +0000 Subject: Improved tutorial with extensive information on items as well as a few features. A bit of a clean-up and a few additions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2001 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/items.cc') diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 67cd67a401..7b1f6f46eb 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1388,6 +1388,9 @@ int move_item_to_player( int obj, int quant_got, bool quiet ) item.y = -1; item.link = freeslot; + if (!item.slot) + item.slot = index_to_letter(item.link); + autoinscribe_item( item ); origin_freeze(item, you.x_pos, you.y_pos); -- cgit v1.2.3-54-g00ecf