Skip to content
Snippets Groups Projects
Commit 03fe50b2 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

bold display

parent 6ad4b42a
No related branches found
No related tags found
1 merge request!7687Fix neighbor market
......@@ -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",
......
......@@ -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;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment