wip avatars again

This commit is contained in:
ntr 2019-06-02 23:35:49 +10:00
parent e6b9b5a205
commit 05a0113ab5
2 changed files with 7 additions and 6 deletions

View File

@ -297,6 +297,12 @@ CONSTRUCT DAMAGE
height: 100%;
}
.game .avatar {
grid-area: avatar;
background: forestgreen;
width: 100%;
}
/*@keyframes rotate {
0% {
transform: rotateY(0deg);

View File

@ -100,14 +100,9 @@ function GameConstruct(props) {
className={`game-construct ${ko} ${classes}`} >
<h3 className="name"> {construct.name} </h3>
{crypSkills}
<div className="avatar"></div>
<div className="targeting"> {targeting} </div>
<div className="stats"> {stats} </div>
<figure
className="img"
onClick={() => selectSkillTarget(construct.id)} >
<ConstructAvatar name={construct.name} id={construct.id} />
{combatTextEl}
</figure>
<div className="effects"> {effects} </div>
</div>
);