summaryrefslogtreecommitdiff
path: root/src/object2.cc
diff options
context:
space:
mode:
authormiramor <danlev@norwoodlight.com>2015-03-22 14:18:10 -0400
committerBardur Arantsson <bardur@scientician.net>2015-03-23 17:34:03 +0100
commit0a66e1537dc7bb5500d7bf2203144ea44b167f45 (patch)
treece22466f84dfb580748c1c744ea3e0cf564a64ce /src/object2.cc
parent7d5abc9c35e080555d1841234497ad1b06528f3a (diff)
Add a no-selling birth option
Diffstat (limited to 'src/object2.cc')
-rw-r--r--src/object2.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/object2.cc b/src/object2.cc
index a3abdbba..7093b94e 100644
--- a/src/object2.cc
+++ b/src/object2.cc
@@ -16,6 +16,7 @@
#include "mimic.hpp"
#include "monster2.hpp"
#include "object1.hpp"
+#include "options.hpp"
#include "randart.hpp"
#include "skills.hpp"
#include "spells2.hpp"
@@ -5070,6 +5071,10 @@ bool_ make_gold(object_type *j_ptr)
/* Determine how much the treasure is "worth" */
j_ptr->pval = (base + (8L * randint(base)) + randint(8));
+
+ /* Multiply value by 5 if selling is disabled */
+ if (no_selling)
+ j_ptr->pval *= 5;
/* Success */
return (TRUE);