From 144b2bd998db7d4e37abdc02aad32672fbfe5b15 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Mon, 6 Apr 2020 20:21:38 -0700 Subject: [PATCH] Add a missing FRelation case for slaves assigned to "live with your agent", and also use it for agents who have a slave assigned to live with them, since it doesn't make since that they'd be on a video call together. --- src/interaction/main/walkPast.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/interaction/main/walkPast.js b/src/interaction/main/walkPast.js index 97c9ab0b757..4985269bd91 100644 --- a/src/interaction/main/walkPast.js +++ b/src/interaction/main/walkPast.js @@ -273,8 +273,11 @@ window.walkPast = (function() { if (!isSlaveAvailable(partnerSlave)) { if (partnerSlave.assignment === "work in the dairy" && V.dairyRestraintsSetting >= 2) { t += `trying their best to maintain their relationship with ${partnerName} being part of ${V.dairyName}.`; - } else if (partnerSlave.assignment === "be your agent") { + } else if (partnerSlave.assignment === "be your agent" && activeSlave.assignment !== "live with your agent") { t += `catching up with each other over a video call. Running an arcology in your stead comes with its perks.`; + } else if (partnerSlave.assignment === "live with your agent" || activeSlave.assignment === "live with your agent") { + const arc = V.arcologies.find((a) => (a.leaderID === partnerSlave.ID || a.leaderID === activeSlave.ID)); + t += `having some casual fun with each other in the penthouse of ${arc.name}. ${V.assistant.name} has helpfully put a live feed of their activities up on one of the large screens in your office.`; } else if (partnerSlave.assignment === "be confined in the arcade") { t += `trying their best to maintain their relationship with ${partnerName} being nothing more than a hole in ${V.arcadeName}.`; } -- GitLab