diff --git a/client/src/components/demo.jsx b/client/src/components/demo.jsx index 9fabd2ba..9452584d 100644 --- a/client/src/components/demo.jsx +++ b/client/src/components/demo.jsx @@ -1,12 +1,9 @@ const { connect } = require('preact-redux'); const preact = require('preact'); -const sample = require('lodash/sample'); const actions = require('../actions'); const shapes = require('./shapes'); -const { TIMES: { SOURCE_AND_TARGET_TOTAL_DURATION } } = require('./../constants'); - const { ConstructAvatar } = require('./construct'); const { ConstructAnimation } = require('./animations'); @@ -46,16 +43,11 @@ function Demo(args) { if (!demo || !itemInfo.items.length || account) return false; + const { combiner, items, equipping, equipped, players } = demo; + + console.log(items); + const vboxDemo = () => { - const phase = this.state.phase || 'vbox'; - const items = this.state.items || ['Red', 'Red', 'Attack']; - const combiner = this.state.combiner || []; - - const { - equipping, - equipped, - } = this.state; - function inventoryBtn(i, j) { if (!i) return ; const highlighted = combiner.indexOf(j) > -1; @@ -114,31 +106,6 @@ function Demo(args) { ); } - // progress - setTimeout(() => { - if (equipped) { - return this.setState({ combiner: [], items: ['Red', 'Red', 'Attack'], equipped: false, equipping: false }); - } - - if (items[0] === 'Strike' && combiner[0] === 0) { - return this.setState({ combiner: [], items: ['', '', ''], equipped: true, equipping: false }); - } - - if (items[0] === 'Strike') { - return this.setState({ combiner: [0], items: ['Strike', '', ''], equipping: true }); - } - - if (combiner.length === 3) { - return this.setState({ combiner: [], items: ['Strike', '', ''] }); - } - - combiner.push(combiner.length); - this.setState({ combiner }); - return true; - }, 2000); - - const skills = ['Strike']; - const btnClass = equipping ? 'equipping empty gray' : 'empty gray'; @@ -147,12 +114,12 @@ function Demo(args) {
Outplay noobs wahtever write tomorrow, fix the tiemout shit.
+also have to just picka random avatar so i don't fill up my drive