From d47f9182b2b45d2d622bffa7a9225d838e859a0d Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Sat, 27 Jul 2019 00:10:10 -0700
Subject: [PATCH] Correctly apply slave market limit to Household Liquidator

---
 src/uncategorized/householdLiquidator.tw | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/uncategorized/householdLiquidator.tw b/src/uncategorized/householdLiquidator.tw
index fea952d8a41..6b0700f1ea9 100644
--- a/src/uncategorized/householdLiquidator.tw
+++ b/src/uncategorized/householdLiquidator.tw
@@ -28,8 +28,9 @@ The household liquidator is offering a set of siblings for sale. As usual, you w
 <br><br>
 
 <<set $slaveCost = slaveCost($activeSlave)>>
+<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>
 
-The price is <<print cashFormat($slaveCost*3)>>.
+The price is <<print cashFormat($slaveCost*3)>>.<<if $slavesSeen > $slaveMarketLimit>> You have cast such a wide net for slaves this week that it is becoming more expensive to find more for sale. Your reputation helps determine your reach within the slave market.<</if>>
 <br><br>
 
 <<if $cash >= $slaveCost*3>>
@@ -116,6 +117,7 @@ The household liquidator is offering something special: identical twins. The mar
 <br><br>
 
 <<set $slaveCost = slaveCost($activeSlave)>>
+<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>
 
 The price is <<print cashFormat($slaveCost*4)>>.<<if $slavesSeen > $slaveMarketLimit>> You have cast such a wide net for slaves this week that it is becoming more expensive to find more for sale. Your reputation helps determine your reach within the slave market.<</if>>
 <br><br>
-- 
GitLab