summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-06-15 23:08:41 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-06-15 23:10:00 +0100
commit6b6da1c93b8d6e17de0ac1442e7c25dfbfadfaa7 (patch)
tree8525e6e8a239f53faa3796ddb8d2929d448cfbec /crawl-ref/source/items.cc
parent9e5d6a67c252e215624cf0dd497e279a8fbb44cd (diff)
downloadcrawl-ref-6b6da1c93b8d6e17de0ac1442e7c25dfbfadfaa7.tar.gz
crawl-ref-6b6da1c93b8d6e17de0ac1442e7c25dfbfadfaa7.zip
Don't allow selling items via Gozag wrath
Just give 1 gold per item destroyed, instead of tying it to the item's value and allowing selling consumables (this could also be used for price identification!). The wrath effect is still very problematic in a lot of ways (allowing dropping and picking up unwanted items repeatedly until they're affected just to burn off penance, encouraging disabling autopickup especially for scrolls like acquirement and enchant weapon that are particularly likely to be affected and unlikely to be immediately needed).
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 95c528759f..b06f0ac750 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1757,7 +1757,6 @@ int move_item_to_player(int obj, int quant_got, bool quiet)
if (goldify > 0)
{
- int gold_count = max(goldify, goldify * val / 10);
string msg = get_desc_quantity(goldify, quant_got, "the")
+ " " + it.name(DESC_PLAIN);
if (goldify > 1)
@@ -1771,11 +1770,11 @@ int move_item_to_player(int obj, int quant_got, bool quiet)
msg += "it.";
mprf(MSGCH_GOD, GOD_GOZAG, "%s", msg.c_str());
- _got_gold(it, gold_count, quiet);
+ _got_gold(it, goldify, quiet);
dec_penance(GOD_GOZAG, goldify);
if (dec_mitm_item_quantity(obj, goldify))
- return gold_count;
+ return goldify;
quant_got -= goldify;
}