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
@@ -59,6 +59,8 @@ export function createSleevePurchaseAugsPopup(sleeve: Sleeve, p: IPlayer): void
if(typeof tooltip !== 'string') {
tooltip = renderToStaticMarkup(tooltip);
}
tooltip += "<br /><br />";
tooltip += renderToStaticMarkup(aug.stats);
ownedAugsDiv.appendChild(createElement("div", {
class: "gang-owned-upgrade", // Reusing a class from the Gang UI
@@ -92,6 +94,8 @@ export function createSleevePurchaseAugsPopup(sleeve: Sleeve, p: IPlayer): void
if(typeof info !== 'string') {
info = renderToStaticMarkup(info);
}
info += "<br /><br />";
info += renderToStaticMarkup(aug.stats);
div.appendChild(createElement("p", {
fontSize: "12px",