mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-30 01:01:01 -06:00
Limit inventory size by introducing dups as length increases, just as in the Windows version
This commit is contained in:
1 parent
aa37e4a186
commit
3cbd386d9d
1 file changed
+4
@@ -656,7 +656,11 @@ 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() {
|
||||||
|
|||||||
Reference in new issue
Block a user