Limit inventory size by introducing dups as length increases, just as in the Windows version

This commit is contained in:
Eric Fredricksen
2022-09-19 20:07:31 -07:00
parent aa37e4a186
commit 3cbd386d9d
+4
View File
@@ -656,7 +656,11 @@ function BoringItem() {
}
function WinItem() {
if (Max(250, Random(999)) < Inventory.length()) {
Add(Inventory, Pick(Inventory.rows()).firstChild.innerText, 1);
} else {
Add(Inventory, SpecialItem(), 1);
}
}
function CompleteQuest() {