blank spec in equip"
"
This commit is contained in:
parent
6751254a91
commit
554402a57e
@ -145,6 +145,7 @@ function Cryp(props) {
|
||||
return (
|
||||
<figure key={i} className={equip} >
|
||||
{shapes.diamond(`stat-icon ${equip}`)}
|
||||
<figcaption> </figcaption>
|
||||
</figure>
|
||||
);
|
||||
}
|
||||
|
||||
@ -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 (
|
||||
<figure key={i} onClick={e => skillClick(e, i)} onMouseOver={e => hoverInfo(e, item)} >
|
||||
{SPECS[item].svg(`equip-icon ${SPECS[item].colour}`)}
|
||||
{SPECS[item].svg(`stat-icon ${SPECS[item].colour}`)}
|
||||
<figcaption>{SPECS[item].caption}</figcaption>
|
||||
</figure>
|
||||
);
|
||||
@ -109,7 +110,14 @@ function Equipment(props) {
|
||||
});
|
||||
|
||||
if (skills.every(s => !s)) skills.push(<button disabled={true}> </button>);
|
||||
if (specs.every(s => !s)) specs.push(<figure key={0}> </figure>);
|
||||
if (specs.every(s => !s)) {
|
||||
specs.push(
|
||||
<figure>
|
||||
{shapes.diamond('stat-icon gray')}
|
||||
<figcaption> </figcaption>
|
||||
</figure>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="equip" >
|
||||
|
||||
@ -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!(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user