summaryrefslogtreecommitdiff
path: root/src/object2.cc
diff options
context:
space:
mode:
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);