From 66d9bbd8356dca3d0b07145d1eea21de2d4789cc Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Thu, 29 Oct 2009 01:06:07 -0700 Subject: FR 2839627: notify when player has enough gold The basics of a wish-list/shopping-list. While in a shop the shopping-list can be modified, and the player is notified as soon as they have enough money to buy things on the shopping-list. --- crawl-ref/source/fight.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 9606b308ac..fc5e45d55c 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -4688,7 +4688,8 @@ static void _steal_item_from_player(monsters *mon) stolen_amount == you.gold ? "all" : "some of"); you.attribute[ATTR_GOLD_FOUND] -= stolen_amount; - you.gold -= stolen_amount; + + you.del_gold(stolen_amount); return; } -- cgit v1.2.3-54-g00ecf