mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Limit inventory size by introducing dups as length increases, just as in the Windows version
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user