From 0b8e6ab9b48050a6ffae50efa796c7cfea72db07 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Wed, 1 Mar 2023 16:37:53 -0500 Subject: [PATCH] simplify logic --- src/interaction/sellSlave.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/interaction/sellSlave.js b/src/interaction/sellSlave.js index 992efd95b06..440c87f2fa2 100644 --- a/src/interaction/sellSlave.js +++ b/src/interaction/sellSlave.js @@ -442,11 +442,8 @@ App.Interact.sellSlave = function(slave) { } else { t.push(`On the other hand, ${he} has a behavioral quirk, which is a minor positive.`); } - } - if (slave.sexualQuirk !== "none") { - if (slave.behavioralQuirk === "none") { - t.push(`On the other hand, ${he} has a sexual quirk, which is a minor positive.`); - } + } else if (slave.sexualQuirk !== "none") { + t.push(`On the other hand, ${he} has a sexual quirk, which is a minor positive.`); } } else { if (slave.behavioralQuirk !== "none") { @@ -455,11 +452,8 @@ App.Interact.sellSlave = function(slave) { } else { t.push(`${He} has a behavioral quirk, which is a minor positive.`); } - } - if (slave.sexualQuirk !== "none") { - if (slave.behavioralQuirk === "none") { - t.push(`${He} has a sexual quirk, which is a minor positive.`); - } + } else if (slave.sexualQuirk !== "none") { + t.push(`${He} has a sexual quirk, which is a minor positive.`); } } -- GitLab