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,8 +656,12 @@ function BoringItem() {
} }
function WinItem() { function WinItem() {
if (Max(250, Random(999)) < Inventory.length()) {
Add(Inventory, Pick(Inventory.rows()).firstChild.innerText, 1);
} else {
Add(Inventory, SpecialItem(), 1); Add(Inventory, SpecialItem(), 1);
} }
}
function CompleteQuest() { function CompleteQuest() {
QuestBar.reset(50 + Random(100)); QuestBar.reset(50 + Random(100));