buy/combine from vbox wip

This commit is contained in:
Mashy
2019-11-19 13:09:50 +10:00
parent f2add9a836
commit 2ba8a63d81
3 changed files with 10 additions and 5 deletions
+1 -2
View File
@@ -33,7 +33,7 @@ const addState = connect(
}
function sendVboxCombine() {
return ws.sendVboxCombine(instance.id, combiner);
return ws.sendVboxCombine(instance.id, combiner, vboxSelected);
}
function sendVboxReclaim(i) {
@@ -382,7 +382,6 @@ class Vbox extends preact.Component {
return (
<button
class='vbox-btn'
disabled={combiner.length !== 3}
onMouseOver={e => hoverInfo(e, comboItem)}
onClick={e => e.stopPropagation()}
onMouseDown={() => sendVboxCombine()}>