rewrite augmentation stats description so it's autogenerated and consistent with the actual effects.

This commit is contained in:
Olivier Gagnon
2021-08-15 00:24:31 -04:00
parent 0671c48c86
commit be8d56ced9
9 changed files with 298 additions and 401 deletions
+7 -1
View File
@@ -137,6 +137,12 @@ export class PurchaseableAugmentation extends React.Component<IProps, any> {
btnTxt += ` - Level ${getNextNeurofluxLevel()}`;
}
let tooltip = <></>;
if(typeof this.aug.info === "string")
tooltip = <><span dangerouslySetInnerHTML={{__html: this.aug.info}} /><br /><br />{this.aug.stats}</>
else
tooltip = <>{this.aug.info}<br /><br />{this.aug.stats}</>
return (
<li>
<span style={spanStyleMarkup}>
@@ -145,7 +151,7 @@ export class PurchaseableAugmentation extends React.Component<IProps, any> {
onClick={this.handleClick}
style={inlineStyleMarkup}
text={btnTxt}
tooltip={this.aug.info}
tooltip={tooltip}
/>
<p style={txtStyle}>{status}</p>
</span>