diff --git a/client/cryps.css b/client/cryps.css
index 4f867c8b..eee93d4d 100644
--- a/client/cryps.css
+++ b/client/cryps.css
@@ -740,6 +740,11 @@ table td svg {
border-top-width: 0;
}
+figure.gray {
+ color: #333;
+ stroke-color: #333;
+}
+
.stat-icon {
height: 2em;
stroke-width: 5px;
diff --git a/client/src/components/instance.cryps.jsx b/client/src/components/instance.cryps.jsx
index d1808bd3..5d5c3bb1 100644
--- a/client/src/components/instance.cryps.jsx
+++ b/client/src/components/instance.cryps.jsx
@@ -1,11 +1,10 @@
const { connect } = require('preact-redux');
const preact = require('preact');
const range = require('lodash/range');
-const mapValues = require('lodash/mapValues');
+const shapes = require('./shapes');
const { SPECS, crypAvatar } = require('../utils');
const actions = require('../actions');
-const SkillBtn = require('./skill.btn');
const addState = connect(
function receiveState(state) {
@@ -95,11 +94,23 @@ function Cryp(props) {
return setActiveCryp(cryp);
}
- const specs = cryp.specs.map((s, i) => {
+ const specs = range(0, 6).map(i => {
+ const s = cryp.specs[i];
+
+ if (!s) {
+ return (
+ setInfo('highlight', 'spec')}>
+ {shapes.diamond('stat-icon gray')}
+ -
+
+ );
+ }
+
function specClick() {
setActiveCryp(cryp);
setInfo('spec', { spec: s, cryp });
}
+
return (
{SPECS[s].svg(`stat-icon ${SPECS[s].colour}`)}
diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx
index e0ad5e23..39a771aa 100644
--- a/client/src/components/vbox.component.jsx
+++ b/client/src/components/vbox.component.jsx
@@ -144,6 +144,7 @@ function Vbox(args) {
const highlight = () => {
if (!value || !info[0] || info[0] !== 'highlight') return false;
const v = vboxInfo.vars.find(vi => vi.v === value);
+ console.log(v);
if (info[1] === 'skill') return v.skill;
if (info[1] === 'spec') return v.spec;
return false;
diff --git a/client/src/events.jsx b/client/src/events.jsx
index b66b5f68..f931f9ce 100644
--- a/client/src/events.jsx
+++ b/client/src/events.jsx
@@ -6,7 +6,6 @@ const actions = require('./actions');
const { TIMES } = require('./constants');
const { getCombatSequence } = require('./utils');
-
function registerEvents(store) {
// timeout handlers