summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-03 01:59:46 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-03 02:01:46 +0530
commit4688d2108941bcd8ae38ee3997144f876faa2b1c (patch)
tree9f01f88b884cb6af6cda95b96580c9b275b78556 /crawl-ref/source/makeitem.cc
parent2f88dcd080dc115c59d8cd993f1b302a4594b1fa (diff)
downloadcrawl-ref-4688d2108941bcd8ae38ee3997144f876faa2b1c.tar.gz
crawl-ref-4688d2108941bcd8ae38ee3997144f876faa2b1c.zip
New gold acquirement formula (dpeg).
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 82a0160978..af66f2386a 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -3214,8 +3214,12 @@ int items(int allow_uniques, // not just true-false,
item.base_type = OBJ_GOLD;
if (force_good)
{
- item.quantity = 150 + random2(150)
- + random2(random2(random2(2000)));
+ // New gold acquirement formula from dpeg.
+ item.quantity = 10 * (20
+ + roll_dice(1, 20)
+ + (roll_dice(1, 8)
+ * roll_dice(1, 8)
+ * roll_dice(1, 8)));
}
else
item.quantity = 1 + random2avg(19, 2) + random2(item_level);