summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-06 21:37:37 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-06 21:37:37 +0000
commitb4d50875d584b6b65964e57a45f3a9e0a59a465c (patch)
tree189219e585904cde4caa5dee824c75e37cbdd7d0 /crawl-ref/source/shopping.cc
parent1395f15a3e6ee7e9b934da41b694c9beef71abda (diff)
downloadcrawl-ref-b4d50875d584b6b65964e57a45f3a9e0a59a465c.tar.gz
crawl-ref-b4d50875d584b6b65964e57a45f3a9e0a59a465c.zip
Automatically inscribe randart weapons/armour with their properties when
wielding/wearing it for the first time. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6786 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 2a49378611..e66c31f602 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -58,7 +58,6 @@ static void _shop_more()
cgotoxy(65, 20, GOTO_CRT);
cprintf("-more-");
get_ch();
- return;
}
static std::string _hyphenated_suffix(char prev, char last)
@@ -177,7 +176,7 @@ static std::string _shop_print_stock( const std::vector<int>& stock,
// * yellow, if this item would be purchasable if you deselected
// something else.
- // Is this too complicated?
+ // Is this too complicated? (jpeg)
if (total_cost > you.gold && selected[i])
textcolor(LIGHTRED);
@@ -377,6 +376,12 @@ static void _in_a_shop( int shopidx )
take_note(Note(NOTE_BUY_ITEM, gp_value, 0,
item.name(DESC_NOCAP_A).c_str()));
+ // But take no further similar notes.
+ item.flags |= ISFLAG_NOTED_GET;
+
+ if (fully_identified(item))
+ item.flags |= ISFLAG_NOTED_ID;
+
quant = item.quantity;
num_items += quant;
@@ -881,7 +886,7 @@ unsigned int item_value( item_def item, bool ident )
// elf/dwarf
if (get_equip_race(item) == ISFLAG_ELVEN
- || get_equip_race(item) == ISFLAG_DWARVEN)
+ || get_equip_race(item) == ISFLAG_DWARVEN)
{
valued *= 12;
valued /= 10;