const { connect } = require('preact-redux'); const preact = require('preact'); // const actions = require('../actions'); const shapes = require('./shapes'); const { ConstructAvatar } = require('./construct'); // const { ConstructAnimation } = require('./animations'); const addState = connect( function receiveState(state) { const { account, itemInfo, demo, } = state; return { account, itemInfo, demo, }; } /* function receiveDispatch(dispatch) { function setAnimTarget(anim) { dispatch(actions.setAnimTarget(anim)); } return { setAnimTarget }; } */ ); function Demo(args) { const { demo, itemInfo, account, // setAnimTarget, } = args; if (!demo || !itemInfo.items.length || account) return false; const { combiner, items, equipping, equipped, players, combo } = demo; const vboxDemo = () => { function stashBtn(i, j) { if (!i) return ; const highlighted = combiner.indexOf(j) > -1; const classes = `${highlighted ? 'highlight' : ''}`; if (shapes[i]) { return ; } return ; } function combinerBtn() { let text = ''; if (combiner.length < 3) { for (let i = 0; i < 3; i++) { if (combiner.length > i) { text += '■ '; } else { text += '▫ '; } } } else { text = 'combine'; } return ( ); } function stashElement() { return (
Combine colours with base skills and specialisations to build an array of powerful variants.
Constructs are the units you control. They are reset every game and their initial appearance is randomly generated.
Skills and Specs you create in the VBOX Phase are equipped to your constructs to create a build.
Battle your opponent using dynamic team builds from the VBOX phase.
The skills crafted can be used to damage the opponent or support your team.
Simultaneous turn based combat: each team picks targets for their skills during this phase.
The damage dealt by skills, cast order and construct life depend on your decisions in the VBOX phase.