From 03fe50b26db0ce64ef40d9130253b5722f843b21 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Wed, 9 Sep 2020 17:48:38 -0400 Subject: [PATCH] bold display --- src/markets/marketUI.js | 2 +- src/markets/specificMarkets/slaveMarkets.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js index 47d36cc37d6..b22ccd36a65 100644 --- a/src/markets/marketUI.js +++ b/src/markets/marketUI.js @@ -14,7 +14,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {sTitleSingular = "slave", if (slaveMarket === V.prisonCircuit[V.prisonCircuitIndex]) { prisonCrime = pronounsForSlaveProp(slave, text); } else { - el.append(` ${text}`); + $(el).append(` ${text}`); } App.UI.DOM.appendNewElement("p", diff --git a/src/markets/specificMarkets/slaveMarkets.js b/src/markets/specificMarkets/slaveMarkets.js index bb9813de0e9..2240f470c0c 100644 --- a/src/markets/specificMarkets/slaveMarkets.js +++ b/src/markets/specificMarkets/slaveMarkets.js @@ -194,20 +194,20 @@ App.Markets.raiders = function() { App.Markets.neighbor = function() { const el = new DocumentFragment(); - let r = []; - r.push(`You're in the area of the slave market that specializes in slaves from within the Free City, viewing slaves from <span class="bold>${V.arcologies[V.market.numArcology].name}.</span> Some were trained there, specifically for sale, while others are simply being sold.`); + el.append(`You're in the area of the slave market that specializes in slaves from within the Free City, viewing slaves from `); + App.UI.DOM.appendNewElement("span", el, `${V.arcologies[V.market.numArcology].name}.`, "bold"); + el.append(` Some were trained there, specifically for sale, while others are simply being sold.`); let _opinion = App.Neighbor.opinion(0, V.market.numArcology); let costMod = 1; if (_opinion !== 0) { if (_opinion > 2) { - r.push(`Your cultural ties with ${V.arcologies[V.market.numArcology].name} helps keep the price reasonable.`); + el.append(` Your cultural ties with ${V.arcologies[V.market.numArcology].name} helps keep the price reasonable.`); } else if (_opinion < -2) { - r.push(`Your social misalignment with ${V.arcologies[V.market.numArcology].name} drives up the price.`); + el.append(` Your social misalignment with ${V.arcologies[V.market.numArcology].name} drives up the price.`); } costMod = (1 - (_opinion * 0.05)); } - el.append(r.join(" ")); el.append(App.Markets.purchaseFramework("neighbor", {costMod:costMod})); return el; }; -- GitLab