bits check on combine

This commit is contained in:
Mashy 2019-11-20 16:42:10 +10:00
parent 9ee1c166f3
commit 19072926e6

View File

@ -355,7 +355,7 @@ class Vbox extends preact.Component {
text = bits
? `Buy ${comboItem} - ${bits}b`
: `Combine - ${comboItem}`;
mouseEvent = sendVboxCombine;
if (vbox.bits >= bits) mouseEvent = sendVboxCombine;
} else if (stashSelect.length === 0 && shopSelect.length === 1) {
const item = shopSelect[0];
text = `Buy ${vbox.free[item[0]][item[1]]} ${item[0] + 1}b`;