From 54a8ee37c5d6bee4ed77eef17bad080c0f81b175 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 29 Nov 2008 06:09:05 +0000 Subject: Changed player attribute type from unsigned char to unsigned long. Breaks savefile compatibility. Keep track of how much gold the player has collected, spent at shops, donated, and otherwise used (like at ziggurats) and include that info in the misc section of the character dump file. Place-holder for chaos spawn monster. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7683 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/items.cc') diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index eb02b355bd..75151e4d9e 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1515,6 +1515,7 @@ int move_item_to_player( int obj, int quant_got, bool quiet ) // Gold has no mass, so we handle it first. if (mitm[obj].base_type == OBJ_GOLD) { + you.attribute[ATTR_GOLD_FOUND] += quant_got; you.gold += quant_got; dec_mitm_item_quantity( obj, quant_got ); you.redraw_gold = true; -- cgit v1.2.3-54-g00ecf