diff --git a/src/player/managePersonalAffairs.js b/src/player/managePersonalAffairs.js index 02ac4d1655844fb11b0d79b706e9e668f2805acd..a07810854426b00e5ffc4aa0d5533e4b91614949 100644 --- a/src/player/managePersonalAffairs.js +++ b/src/player/managePersonalAffairs.js @@ -669,9 +669,25 @@ App.UI.managePersonalAffairs = function() { const text = []; const slaves = [...PC.partners].filter(i => i > 0); + const ownedSlaves = slaves + .filter(s => getSlave(s)) // make sure it isn't undefined + .map(s => SlaveFullName(getSlave(s))); // get the name const other = []; - text.push(`You've had sex with ${num(slaves.length)} different slaves so far.`); + const link = App.UI.DOM.link(`${num(slaves.length)} ${slaves.length > 1 ? `different slaves` : `slave`}`, () => { + Dialog.append(`You have slept with `, toSentence(ownedSlaves), `, as well as ${num(slaves.length - ownedSlaves.length)} slaves you don't currently own.`); + Dialog.open(); + }); + + if (slaves.length > 0) { + text.push( + `You've had sex with`, + link, + `so far.`, + ); + } else { + text.push(`You haven't had sex with any slaves yet.`); + } if (PC.partners.has(-2)) { other.push(`citizens of ${V.arcologies[0].name}`); @@ -693,7 +709,7 @@ App.UI.managePersonalAffairs = function() { } if (other.length > 0) { - text.push(`You have also had sex with ${toSentence(other)}.`); + text.push(`You have ${slaves.length > 0 ? `also` : ``} had sex with ${toSentence(other)}${slaves.length > 0 ? `` : `, though`}.`); } App.Events.addNode(partnersDiv, text);