vbox show costs, penalty for combo sale

This commit is contained in:
Mashy
2019-09-20 12:22:48 +10:00
parent 4a640784f1
commit 3ad679cb02
5 changed files with 23 additions and 10 deletions
+4 -5
View File
@@ -52,7 +52,7 @@ function InfoComponent(args) {
const speed = <div> Speed {shapes.SpeedStat()} multiplier {calcSpeed}% </div>;
return (
<div class="info-skill">
<h2>{fullInfo.item}</h2>
<h2>{fullInfo.item} - {fullInfo.cost}b</h2>
<h3>SKILL</h3>
{itemSourceDescription}
<div>{infoDescription}</div>
@@ -133,7 +133,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 +156,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 +166,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>
);