From 3cbd386d9d0711b354514e7ac8cb763dd12beb12 Mon Sep 17 00:00:00 2001 From: Eric Fredricksen Date: Mon, 19 Sep 2022 20:07:31 -0700 Subject: [PATCH] Limit inventory size by introducing dups as length increases, just as in the Windows version --- main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 96a5d19..6b757b6 100644 --- a/main.js +++ b/main.js @@ -656,7 +656,11 @@ function BoringItem() { } function WinItem() { - Add(Inventory, SpecialItem(), 1); + if (Max(250, Random(999)) < Inventory.length()) { + Add(Inventory, Pick(Inventory.rows()).firstChild.innerText, 1); + } else { + Add(Inventory, SpecialItem(), 1); + } } function CompleteQuest() {