Merge branch 'develop' into msg-pane
This commit is contained in:
@@ -34,7 +34,7 @@ class ConstructAvatar extends Component {
|
||||
<div
|
||||
class="avatar"
|
||||
id={construct.id}
|
||||
onClick={this.onClick.bind(this)}
|
||||
onMouseDown={this.onClick.bind(this)}
|
||||
style={{ 'background-image': `url(/imgs/${construct.img}.svg)` }}>
|
||||
<ConstructAnimation construct={construct} />
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@ const range = require('lodash/range');
|
||||
const reactStringReplace = require('react-string-replace');
|
||||
|
||||
const { INFO } = require('./../constants');
|
||||
const { convertItem, removeTier, itemSpeed } = require('../utils');
|
||||
const { convertItem, removeTier } = require('../utils');
|
||||
const shapes = require('./shapes');
|
||||
|
||||
function InfoComponent(args) {
|
||||
@@ -46,15 +46,14 @@ function InfoComponent(args) {
|
||||
: false;
|
||||
const itemRegEx = /(Red|Blue|Green)/;
|
||||
const itemSourceDescription = reactStringReplace(itemSourceInfo, itemRegEx, match => shapes[match]());
|
||||
const calcSpeed = itemSource.length
|
||||
? (24 + (itemSpeed(itemSource[0].components[0]) + itemSpeed(itemSource[0].components[1])) * itemSpeed(itemSource[0].components[2])) * 4
|
||||
: (24 + itemSpeed(info)) * 4;
|
||||
const speed = <div> Speed {shapes.SpeedStat()} multiplier {calcSpeed}% </div>;
|
||||
const speed = <div> Speed {shapes.SpeedStat()} multiplier {fullInfo.speed * 4}% </div>;
|
||||
const cooldown = fullInfo.cooldown ? `${fullInfo.cooldown} Turn delay` : null;
|
||||
return (
|
||||
<div class="info-skill">
|
||||
<h2>{fullInfo.item}</h2>
|
||||
<h3>SKILL</h3>
|
||||
<h2>{fullInfo.item} - {fullInfo.cost}b</h2>
|
||||
<h3> SKILL </h3>
|
||||
{itemSourceDescription}
|
||||
<div> {cooldown} </div>
|
||||
<div>{infoDescription}</div>
|
||||
{speed}
|
||||
</div>
|
||||
@@ -133,7 +132,6 @@ function InfoComponent(args) {
|
||||
}
|
||||
return false;
|
||||
});
|
||||
console.log(info);
|
||||
const bonusObj = info.includes('Life')
|
||||
? <div class={`${reqClass} bonus`} > + {bonus.bonus}</div>
|
||||
: <div class={`${reqClass} bonus`} > + {bonus.bonus}%</div>;
|
||||
@@ -157,7 +155,7 @@ function InfoComponent(args) {
|
||||
|
||||
return (
|
||||
<div class="info-spec">
|
||||
<h2>{info}</h2>
|
||||
<h2>{info} - {fullInfo.cost}b</h2>
|
||||
<h3>SPEC</h3>
|
||||
{itemSourceDescription}
|
||||
<div>{infoDescription}</div>
|
||||
@@ -167,10 +165,10 @@ function InfoComponent(args) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const cost = fullInfo.cost ? `- ${fullInfo.cost}b` : false;
|
||||
return (
|
||||
<div class="info-item">
|
||||
<h2>{fullInfo.item}</h2>
|
||||
<h2>{fullInfo.item} {cost}</h2>
|
||||
<div>{fullInfo.description}</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user