diff --git a/src/neighbor/arcologyDiplomacy.js b/src/neighbor/arcologyDiplomacy.js index b5dbda290f0b51686a228df1d10b8ffb9d0905cf..9283acf2496456789cd073622f8130437668d837 100644 --- a/src/neighbor/arcologyDiplomacy.js +++ b/src/neighbor/arcologyDiplomacy.js @@ -143,8 +143,8 @@ globalThis.ArcologyFSPassiveInfluence = class { } t.push(`in ${arcology.name} is influenced by`); const sharedNames = shared.map((i) => V.arcologies[i].name + "'s"); - t.push(sharedNames.reduce((res, ch, i, arr) => res + (i === arr.length - 1 ? ' and ' : ', ') + ch)); - t.push(`more advanced ${shared.length === 1 ? "society" : "societies"}.`); + t.push(sharedNames.reduce((res, ch, i, arr) => res + (i === arr.length - 1 ? ' and ' : ', ') + ch) + + ` more advanced ${shared.length === 1 ? "society" : "societies"}.`); } // passive slowing influence @@ -156,12 +156,14 @@ globalThis.ArcologyFSPassiveInfluence = class { } else if (fs === "FSSupremacy") { actualDisplayName = `${arcology.FSSupremacistRace} Supremacy`; } + t.push(`Development of ${actualDisplayName} in ${arcology.name} is slowed by contact with`); + let conflictOutput = []; for (const [conflictFS, arcs] of conflicting) { - t.push(`Development of ${actualDisplayName} in ${arcology.name} is slowed by contact with`); const conflictNames = arcs.map((i) => V.arcologies[i].name + "'s"); - t.push(conflictNames.reduce((res, ch, i, arr) => res + (i === arr.length - 1 ? ' and ' : ', ') + ch)); - t.push(`more advanced ${FutureSocieties.displayAdj(conflictFS)} ${arcs.length === 1 ? "society" : "societies"}.`); + conflictOutput.push(conflictNames.reduce((res, ch, i, arr) => res + (i === arr.length - 1 ? ' and ' : ', ') + ch) + + ` more advanced ${FutureSocieties.displayAdj(conflictFS)} ${arcs.length === 1 ? "society" : "societies"}`); } + t.push(conflictOutput.reduce((res, ch, i, arr) => res + (i === arr.length - 1 ? ' and ' : ', ') + ch) + '.'); } return t.join(" ");