From 233f72917156c814fe933540f1d0d2204cacd046 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Sat, 14 Oct 2023 15:03:46 +0200 Subject: [PATCH] Revert "Revert "Revert "Reduce the amount of gold laying on the floor""" This reverts commit 54cc8cda7af429d6f8e6f1fa5ef9a842537b600c. --- src/mkobj.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mkobj.c b/src/mkobj.c index a73a25deb..e970b1827 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -1907,12 +1907,10 @@ long amount; int x, y; { struct obj *gold = g_at(x, y); + + if (amount <= 0L) + amount = (long) (1 + rnd(level_difficulty() + 2) * rnd(30)); - if (amount <= 0L) { - long mul = rnd(30 / max(12-depth(&u.uz), 2)); - - amount = (long) (1 + rnd(level_difficulty() + 2) * mul); - } if (gold) { gold->quan += amount; } else {