link rework, description bg
This commit is contained in:
@@ -143,12 +143,14 @@ class GameConstruct extends Component {
|
||||
const fullInfo = itemInfo.items.find(k => k.item === gameSkillInfo.skill) || INFO[gameSkillInfo.skill];
|
||||
const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat)/;
|
||||
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => shapes[match]());
|
||||
const speed = <div> Speed {shapes.SpeedStat()} multiplier {fullInfo.speed * 4}% </div>;
|
||||
const speed = <span> Speed {shapes.SpeedStat()} multiplier {fullInfo.speed * 4}% </span>;
|
||||
return (
|
||||
<div class="skill-description">
|
||||
<h2> {gameSkillInfo.skill} </h2>
|
||||
<div> {infoDescription} </div>
|
||||
{speed}
|
||||
<span>
|
||||
<h2> {gameSkillInfo.skill} </h2>
|
||||
{infoDescription}
|
||||
{speed}
|
||||
</span>
|
||||
</div>);
|
||||
}
|
||||
const effects = construct.effects.length
|
||||
|
||||
Reference in New Issue
Block a user