From 521725a9e2db339e56b2d82027456ee9425c143f Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 23 Nov 2020 20:01:43 -0500
Subject: [PATCH] fix slaveCost name again

---
 src/npc/acquisition.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/npc/acquisition.js b/src/npc/acquisition.js
index 8bbba875c02..5ea8840290a 100644
--- a/src/npc/acquisition.js
+++ b/src/npc/acquisition.js
@@ -863,11 +863,11 @@ App.StartingGirls.acquisition = function() {
 			}
 			slave.origin = "You acquired $him along with the arcology.";
 			slave.career = "a slave";
-			let slaveCost = slaveCost(slave);
+			let slaveCostValue = slaveCost(slave);
 			if (["AztecRevivalist", "ChineseRevivalist", "NeoImperialist", "Eugenics", "SlaveProfessionalism"].includes(V.targetArcology.fs)) {
-				valueGiven += slaveCost * 4;
+				valueGiven += slaveCostValue * 4;
 			} else {
-				valueGiven += slaveCost;
+				valueGiven += slaveCostValue;
 			}
 			newSlave(slave);
 		}
@@ -977,14 +977,14 @@ App.StartingGirls.acquisition = function() {
 			}
 			const slave = App.Utils.getHeroSlave(heroSlaves[j]);
 			heroSlaves.splice(j, 1);
-			let slaveCost = slaveCost(slave);
-			if (valueGiven + slaveCost < valueOwed * 2) {
+			let slaveCostValue = slaveCost(slave);
+			if (valueGiven + slaveCostValue < valueOwed * 2) {
 				const {him, he, his, himself} = getPronouns(slave);
 				nationalityToAccent(slave);
 				slave.oldDevotion = slave.devotion;
 				slave.oldTrust = slave.trust;
 				slave.health.tired = 0;
-				valueGiven += slaveCost;
+				valueGiven += slaveCostValue;
 				newSlave(slave);
 				App.Utils.setLocalPronouns(slave);
 
-- 
GitLab