From 140b56013d124adcb0316f282bbd806f17c3ccbb Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Sat, 8 Feb 2020 01:34:44 -0800
Subject: [PATCH] Make the shared code able to handle an arbitrary number of
 slaves from a single household, for possible future use.

---
 src/uncategorized/householdLiquidator.tw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uncategorized/householdLiquidator.tw b/src/uncategorized/householdLiquidator.tw
index baf41d1bf1d..bb0a5563002 100644
--- a/src/uncategorized/householdLiquidator.tw
+++ b/src/uncategorized/householdLiquidator.tw
@@ -108,7 +108,7 @@ The price is <<print cashFormatColor(_totalCost)>>. <<if $slavesSeen > $slaveMar
 <br><br>
 
 <<if $cash >= _totalCost>>
-	[[Buy their slave contract|Bulk Slave Intro][cashX(forceNeg(_totalCost/2), "slaveTransfer", $activeSlave), cashX(forceNeg(_totalCost/2), "slaveTransfer", _relativeSlave)]]
+	[[Buy their slave contract|Bulk Slave Intro][$newSlaves.forEach((s) => cashX(forceNeg(_totalCost/$newSlaves.length), "slaveTransfer", s))]]
 <<else>>
 	//You lack the necessary funds to buy these slaves.//
 <</if>>
-- 
GitLab