Skip to content

Commit

Permalink
Revert "Revert "Revert "Reduce the amount of gold laying on the floor"""
Browse files Browse the repository at this point in the history
This reverts commit 54cc8cd.
  • Loading branch information
elunna committed Oct 14, 2023
1 parent 32357a5 commit 233f729
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/mkobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 233f729

Please sign in to comment.