Skip to content
Snippets Groups Projects
Commit 4ed9f9f7 authored by svornost's avatar svornost
Browse files

Fix stray text when you have no mercenaries yet

parent 1aa1a684
No related branches found
No related tags found
1 merge request!10538Fixes
...@@ -399,33 +399,35 @@ App.UI.manageArcology = function() { ...@@ -399,33 +399,35 @@ App.UI.manageArcology = function() {
if (V.personalArms === 0 && V.mercenaries === 0 && V.assistant.personality <= 0) { if (V.personalArms === 0 && V.mercenaries === 0 && V.assistant.personality <= 0) {
App.UI.DOM.makeElement("div", `${arcName} has no special upgrades.`, "note"); App.UI.DOM.makeElement("div", `${arcName} has no special upgrades.`, "note");
} else { } else {
r = [];
if (V.personalArms > 0) { if (V.personalArms > 0) {
r = [];
r.push(`You own a prototype powered exoskeleton that mounts armor and a smart mortar system, and has rifles mounted into its forearms.`); r.push(`You own a prototype powered exoskeleton that mounts armor and a smart mortar system, and has rifles mounted into its forearms.`);
if (V.personalArms > 1) { if (V.personalArms > 1) {
r.push(`Furthermore, your security drones can rearm with small-caliber guns if necessary.`); r.push(`Furthermore, your security drones can rearm with small-caliber guns if necessary.`);
} }
App.UI.DOM.appendNewElement("div", node, r.join(" "), "indent");
} }
App.UI.DOM.appendNewElement("div", node, r.join(" "), "indent");
r = []; if (V.mercenaries > 0) {
if (V.mercenaries.isBetween(1, 5)) { r = [];
r.push(`A ${V.mercenaries === 1 ? "squad" : "full platoon"} of mercenaries is permanently quartered in ${arcName}.`); if (V.mercenaries.isBetween(1, 5)) {
} else if (V.mercenaries >= 5) { r.push(`A ${V.mercenaries === 1 ? "squad" : "full platoon"} of mercenaries is permanently quartered in ${arcName}.`);
r.push(`You have permanently settled a full company of mercenaries in ${arcName} as your ${V.mercenariesTitle}.`); } else if (V.mercenaries >= 5) {
r.push(`You have permanently settled a full company of mercenaries in ${arcName} as your ${V.mercenariesTitle}.`);
}
r.push(`They are grim men and women${V.mercenaries < 5 ? ", heavily armed and armored" : " who appreciate their luxurious life here and train hard to keep their skills with their prototype armor sharp"}.`);
App.UI.DOM.appendNewElement("div", node, r.join(" "), "indent");
} }
r.push(`They are grim men and women${V.mercenaries < 5 ? ", heavily armed and armored" : " who appreciate their luxurious life here and train hard to keep their skills with their prototype armor sharp"}.`);
App.UI.DOM.appendNewElement("div", node, r.join(" "), "indent");
r = [];
if (V.assistant.personality > 0) { if (V.assistant.personality > 0) {
r = [];
const {hisA, heA} = getPronouns(assistant.pronouns().main).appendSuffix("A"); const {hisA, heA} = getPronouns(assistant.pronouns().main).appendSuffix("A");
r.push(`${capFirstChar(V.assistant.name)} is using an alternative personality setting, speaking in a sultry, sexual voice, and talking as though the penthouse's sex toys are ${hisA} body.`); r.push(`${capFirstChar(V.assistant.name)} is using an alternative personality setting, speaking in a sultry, sexual voice, and talking as though the penthouse's sex toys are ${hisA} body.`);
if (V.assistant.personality > 1) { if (V.assistant.personality > 1) {
r.push(`${heA} also has charge of all smart piercings in the arcology, and is using ${hisA} adaptations to sexual duties to improve their effectiveness.`); r.push(`${heA} also has charge of all smart piercings in the arcology, and is using ${hisA} adaptations to sexual duties to improve their effectiveness.`);
} }
App.UI.DOM.appendNewElement("div", node, r.join(" "), "indent");
} }
App.UI.DOM.appendNewElement("div", node, r.join(" "), "indent");
} }
App.UI.DOM.appendNewElement("h2", node, "Slaves"); App.UI.DOM.appendNewElement("h2", node, "Slaves");
......
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