effects on enemies

This commit is contained in:
ntr
2019-05-02 09:47:50 +10:00
parent 0a96adac4e
commit e40291cdaa
2 changed files with 19 additions and 13 deletions
+12 -5
View File
@@ -153,11 +153,18 @@ function GamePanel(props) {
className={`cryp-box ${ko} ${classes}`}
style={ activeSkill ? { cursor: 'pointer' } : {}}
onClick={() => selectSkillTarget(cryp.id)} >
<figure className="img">
{crypAvatar(cryp.name)}
{combatTextEl}
<div>{cryp.name}</div>
</figure>
<div className="cryp-box-top">
<figure
className="img"
onClick={() => selectSkillTarget(cryp.id)} >
{crypAvatar(cryp.name)}
{combatTextEl}
<div>{cryp.name}</div>
</figure>
<div className="effects">
{cryp.effects.map(c => <span key={c.effect}>{c.effect} - {c.duration}T</span>)}
</div>
</div>
<div className="stats">
{stats}
</div>