diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-29 01:06:07 -0700 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-29 01:06:07 -0700 |
commit | 66d9bbd8356dca3d0b07145d1eea21de2d4789cc (patch) | |
tree | dbc78a23e474a38b0927e749442698c6d4b96d55 /crawl-ref/source/fight.cc | |
parent | aefbb02ff564f3b513476f82d144c7c92b2bbb05 (diff) | |
download | crawl-ref-66d9bbd8356dca3d0b07145d1eea21de2d4789cc.tar.gz crawl-ref-66d9bbd8356dca3d0b07145d1eea21de2d4789cc.zip |
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.
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |