buycount bugfix

This commit is contained in:
Mashy 2019-11-21 11:41:08 +10:00
parent c21d64e3e8
commit 35c74ee325

View File

@ -102,7 +102,7 @@ function validVboxSelect(vbox, itemInfo, shopSelect, stashSelect) {
const valid = selectedItems.every(c => {
if (!combo.components.includes(c)) return false;
if (itemCount[c] > comboCount[c]) return false;
buyCount[c] -= itemCount[c];
buyCount[c] -= 1;
return true;
});
if (valid) {