From 6f75f1ff1ce6d07a6c8a2b60003fcb71402ab611 Mon Sep 17 00:00:00 2001 From: Anu <anulithic@gmail.com> Date: Wed, 14 Jun 2023 23:41:59 -0700 Subject: [PATCH] Fix underage market blocker logic --- src/markets/theMarket/marketData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/markets/theMarket/marketData.js b/src/markets/theMarket/marketData.js index 0e38c6e5194..3d7b1368922 100644 --- a/src/markets/theMarket/marketData.js +++ b/src/markets/theMarket/marketData.js @@ -71,11 +71,11 @@ App.Data.Markets = { note: "Very young slaves.", encyclopedia: "Kidnapped Slaves", get requirements() { - if (V.pedo_mode === 0 || V.minimumSlaveAge > 13) { + if (V.pedo_mode === 0 && (V.minimumSlaveAge > 13 || V.minimumSlaveAge > V.fertilityAge)) { return false; } else if (V.rep <= 3000) { return `You are not reputable enough to buy underaged slaves.`; - } if (V.pedo_mode === 1 || (V.minimumSlaveAge <= 13 && V.minimumSlaveAge <= V.fertilityAge)) { + } else { // if (V.pedo_mode === 1 || (V.minimumSlaveAge <= 13 && V.minimumSlaveAge <= V.fertilityAge)) return true; } } -- GitLab