From 84cd757630afce40f0d398583b55716dc0139f0f Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Thu, 2 Mar 2017 20:27:07 -0500 Subject: [PATCH] 0.9.9.3 --- src/init/storyInit.tw | 3 +++ src/npc/acquisition.tw | 27 ++++++++++++--------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/init/storyInit.tw b/src/init/storyInit.tw index 5a09fbe2272..60c41e5b2a8 100644 --- a/src/init/storyInit.tw +++ b/src/init/storyInit.tw @@ -214,6 +214,9 @@ <<if ndef $slaves[$i].customImage>> <<set $slaves[$i].customImage to 0>> <</if>> + <<if ndef $slaves[$i].nationality>> + <<set $slaves[$i].nationality = "slave">> + <</if>> <</for>> <<set $slavesOriginal = $slaves>> <<set $organs = []>> diff --git a/src/npc/acquisition.tw b/src/npc/acquisition.tw index bfdbce26428..57030431481 100644 --- a/src/npc/acquisition.tw +++ b/src/npc/acquisition.tw @@ -1,6 +1,6 @@ :: Acquisition [nobr] -<<if $saveImported == 1>><<set $startingValue to 5000>><<else>><<set $startingValue to 25000>><</if>> +<<if $saveImported == 1>><<set _valueOwed to 5000>><<else>><<set _valueOwed to 50000>><</if>> <<if $freshPC == 1>> <<if $PC.vagina == 1>> <<set $PC.births = 0>> @@ -119,17 +119,15 @@ The previous owner seems to have left in something of a hurry. <</if>> <<set $heroSlaves to $heroSlaves.shuffle()>> -<<set $seed to 0>> +<<set _valueGiven to 0>> <<if $ageMode == 1>> <<display [[Aging Test]]>> <<elseif $cheatMode == 1>> <<display [[Cheatmode Database]]>> <<elseif $saveImported == 1>> <<elseif ($targetArcology.type != "New") && ($targetArcology.type != "Multiculturalist")>> - <<for $j to 0; $j < $heroSlaves.length; $j++>> - <<if $startingValue - $seed <= 5000>> - <<break>> - <</if>> + <<for $j to 0; $j < 5; $j++>> + <<if _valueOwed - _valueGiven <= 5000>><<break>><</if>> <<switch $targetArcology.type>> <<case "Supremacist">> <<set $arcologies[0].FSSupremacistLawME = 1>><<display "Generate New Slave">><<set $arcologies[0].FSSupremacistLawME = 0>> @@ -428,21 +426,20 @@ The previous owner seems to have left in something of a hurry. <<default>> ERROR: bad arcology type <</switch>> - <<set $activeSlave.origin = "You acquired her along with the arcology.">> - <<set $activeSlave.career = "a slave">> + <<set $activeSlave.origin = "You acquired her along with the arcology.", $activeSlave.career = "a slave">> <<slaveCost $activeSlave>> - <<set $seed = Math.trunc($seed+$slaveCost, 0, $startingValue)>> + <<set _valueGiven += $slaveCost>> <<AddSlave $activeSlave>> <</for>> <<else>> <<for $j to 0; $j < $heroSlaves.length; $j++>> - <<if $startingValue - $seed <= 5000>> + <<if _valueOwed - _valueGiven <= 5000>> <<break>> <</if>> <<set $activeSlave to $heroSlaves[$j]>> <<set $dump to $heroSlaves.pluck($j,$j)>> <<slaveCost $activeSlave>> - <<if $seed + $slaveCost < $startingValue*2>> + <<if _valueGiven + $slaveCost < _valueOwed*2>> <<NationalityToAccent>> <<set $activeSlave.pubicHColor to $activeSlave.hColor>> <<set $activeSlave.pubicHStyle = "waxed">> @@ -450,7 +447,7 @@ The previous owner seems to have left in something of a hurry. <<set $activeSlave.underArmHStyle = "waxed">> <<set $activeSlave.oldDevotion to $activeSlave.devotion>> <<set $activeSlave.oldTrust to $activeSlave.trust>> - <<set $seed += $slaveCost>> + <<set _valueGiven += $slaveCost>> <<AddSlave $activeSlave>> <<if $activeSlave.fetish is "mindbroken">> $activeSlave.slaveName is, sadly, not mentally competent, and is wandering through the penthouse at the moment. @@ -492,9 +489,9 @@ The previous owner seems to have left in something of a hurry. <</if>> <</for>> <</if>> -<<if $startingValue - $seed > 0>> - There are some valuables present, worth ¤<<print $startingValue - $seed>>. - <<set $cash += $startingValue - $seed>> +<<if _valueOwed-_valueGiven > 0>> + There are some valuables present, worth ¤<<print _valueOwed-_valueGiven>>. + <<set $cash += _valueOwed-_valueGiven>> <</if>> // -- GitLab