fix buycount combo bug
This commit is contained in:
parent
7d0018c134
commit
a5d778475e
@ -93,7 +93,7 @@ function validVboxSelect(vbox, itemInfo, shopSelect, stashSelect) {
|
|||||||
const valid = selectedItems.every(c => {
|
const valid = selectedItems.every(c => {
|
||||||
if (!combo.components.includes(c)) return false;
|
if (!combo.components.includes(c)) return false;
|
||||||
if (itemCount[c] > comboCount[c]) return false;
|
if (itemCount[c] > comboCount[c]) return false;
|
||||||
buyCount[c] -= itemCount[c];
|
buyCount[c] -= 1;
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user