mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34: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() {
|
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() {
|
function CompleteQuest() {
|
||||||
|
|||||||
Reference in New Issue
Block a user