diff --git a/src/npc/acquisition.js b/src/npc/acquisition.js index 67f0e13379d8346cb6f9e8e04fb4a2174ecfbf20..4e9b00f08b3e01e2ad9e7aed8ff47d9342fce5a0 100644 --- a/src/npc/acquisition.js +++ b/src/npc/acquisition.js @@ -35,7 +35,14 @@ App.Intro.acquisition = function() { if (valueOwed - valueGiven <= 5000) { break; } - generateFSslave(V.targetArcology.fs); + const slave = generateFSslave(V.targetArcology.fs); + const slaveCostValue = slaveCost(slave); + if (["AztecRevivalist", "ChineseRevivalist", "NeoImperialist", "Eugenics", "SlaveProfessionalism"].includes(V.targetArcology.fs)) { + valueGiven += slaveCostValue * 4; + } else { + valueGiven += slaveCostValue; + } + newSlave(slave); } const {He, his, girl} = getPronouns(getSlave(random(V.slaves.length))); switch (V.targetArcology.fs) { @@ -1098,12 +1105,6 @@ App.Intro.acquisition = function() { } slave.origin = "You acquired $him along with the arcology."; slave.career = "a slave"; - let slaveCostValue = slaveCost(slave); - if (["AztecRevivalist", "ChineseRevivalist", "NeoImperialist", "Eugenics", "SlaveProfessionalism"].includes(V.targetArcology.fs)) { - valueGiven += slaveCostValue * 4; - } else { - valueGiven += slaveCostValue; - } - newSlave(slave); + return slave; } };