From 554402a57e35ff99d7d1cb6cb046be4c0ebf3903 Mon Sep 17 00:00:00 2001 From: ntr Date: Tue, 21 May 2019 16:40:50 +1000 Subject: [PATCH] blank spec in equip" " --- client/src/components/instance.cryps.jsx | 1 + client/src/components/instance.equip.jsx | 12 ++++++++++-- server/src/item.rs | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/client/src/components/instance.cryps.jsx b/client/src/components/instance.cryps.jsx index 420af17c..f4bdd206 100644 --- a/client/src/components/instance.cryps.jsx +++ b/client/src/components/instance.cryps.jsx @@ -145,6 +145,7 @@ function Cryp(props) { return (
{shapes.diamond(`stat-icon ${equip}`)} +
 
); } diff --git a/client/src/components/instance.equip.jsx b/client/src/components/instance.equip.jsx index 449a6df5..6e148b26 100644 --- a/client/src/components/instance.equip.jsx +++ b/client/src/components/instance.equip.jsx @@ -3,6 +3,7 @@ const preact = require('preact'); const range = require('lodash/range'); const actions = require('../actions'); +const shapes = require('./shapes'); const { convertItem, SPECS } = require('./../utils'); const addState = connect( @@ -101,7 +102,7 @@ function Equipment(props) { if (specList.includes(item)) { return (
skillClick(e, i)} onMouseOver={e => hoverInfo(e, item)} > - {SPECS[item].svg(`equip-icon ${SPECS[item].colour}`)} + {SPECS[item].svg(`stat-icon ${SPECS[item].colour}`)}
{SPECS[item].caption}
); @@ -109,7 +110,14 @@ function Equipment(props) { }); if (skills.every(s => !s)) skills.push(); - if (specs.every(s => !s)) specs.push(
 
); + if (specs.every(s => !s)) { + specs.push( +
+ {shapes.diamond('stat-icon gray')} +
 
+
+ ); + } return (
diff --git a/server/src/item.rs b/server/src/item.rs index 807bb2cf..0c101d2a 100644 --- a/server/src/item.rs +++ b/server/src/item.rs @@ -345,7 +345,7 @@ impl Item { Item::Heal => format!("Heals for {:?}% green power.", self.into_skill().unwrap().multiplier()), - Item::Hex => format!("Blue based skill that applies Hex for {:?}T. + Item::Hex => format!("Blue based skill that applies Hex for {:?}T. \ Hexed targets cannot cast any skills.", self.into_skill().unwrap().duration()), Item::Impurity => format!(