diff --git a/src/uncategorized/SFMBarracks.tw b/src/uncategorized/SFMBarracks.tw index 71bc61b0a2189b8fff439ec7c168cfa6546ddc5c..f282a802323159b950d002df192ec67e37490236 100644 --- a/src/uncategorized/SFMBarracks.tw +++ b/src/uncategorized/SFMBarracks.tw @@ -1,12 +1,5 @@ :: SFM Barracks [nobr] -<<if ndef $securityForceUpgradeTokenReset>> - <<set $securityForceUpgradeTokenReset = 0>> -<</if>> -<<if ndef $FacilitySupport>> - <<set $FacilitySupport = 0>> -<</if>> - <<set _N1 = 2>> <<set _N2 = 2>> <<set _N3 = 2>> @@ -104,6 +97,22 @@ securityForceX */ <<set $SFNO = 0>> <</if>> +<<if $SFNO > 0>> + <<set $SFAO = $SFNO>> +<<elseif $SFO > 0>> + <<set $SFAO = $SFO>> +<<else>> + <<set $SFAO = 0.99>> +<</if>> + +<<if ndef $FacilitySupport>> + <<set $FacilitySupport = 0>> +<</if>> + +<<if ndef $securityForceUpgradeTokenReset || $SFAO < 1>> + <<set $securityForceUpgradeTokenReset = 0>> +<</if>> + <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Barracks">> //The barracks of <<textbox "$securityForceName" $securityForceName "SFM Barracks">> is located in the lower levels of $arcologies[0].name, occupying unneeded warehouse space. It is not accessible to the general citizenry, but your personal elevator has express service to it. As you step off, two soldiers in combat armour manning the entry checkpoint tense and raise their weapons, before nodding respectfully and stepping aside, allowing their patron entry. The barracks is cavernous, containing areas for the soldiers to sleep and keep their belongings, areas for the storage and maintenance of their weapons and equipment, and common areas for them to amuse themselves, since they rarely mix with your citizens on the upper levels. You survey the facilities.// @@ -173,7 +182,7 @@ securityForceX */ <br><br> ''$facilitysupportName:'' <br> -<<if $LieutenantColonel != 0>><<SlaveFullName $LieutenantColonel>> is the Lieutenant Colonel of $securityForceName, primarly in charge of $FacilitySupportName.<</if>> <<if $FacilitySupportSlaves > 0>>There are $FacilitySupportSlaves slaves serving in $FacilitySupportName.<</if>> The <<if $FacilitySupportUpgrade == 3>>quantum teleportation system greatly improves efficency<<elseif $FacilitySupportUpgrade == 2>>rapid tube system somewhat improves efficency<<elseif $FacilitySupportUpgrade == 1>>specialized pathways slightly improves efficency<<else>>general pathways does nothing to improve efficency<</if>>. +<<if $LieutenantColonel != 0>><<SlaveFullName $LieutenantColonel>> is the Lieutenant Colonel of $securityForceName, primarily in charge of $FacilitySupportName.<</if>> <<if $FacilitySupportSlaves > 0>>There are $FacilitySupportSlaves slaves serving in $FacilitySupportName.<</if>> The <<if $FacilitySupportUpgrade == 3>>quantum teleportation system greatly improves efficiency<<elseif $FacilitySupportUpgrade == 2>>rapid tube system somewhat improves efficiency<<elseif $FacilitySupportUpgrade == 1>>specialized pathways slightly improves efficiency<<else>>general pathways does nothing to improve efficiency<</if>>. <br><<link "Enter the building then send a slave to serve in the HQ and facilities of $securityForceName">> <<goto "FacilitySupport">> <</link>> @@ -606,18 +615,12 @@ securityForceX */ <</if>> </div> -<<if $SFNO > 0>> - <<set $SFAO = $SFNO>> -<<elseif $SFO > 0>> - <<set $SFAO = $SFO>> -<</if>> - -<br> <<if $securityForceGiftToken == 0>> +<br> <span id="result"> <<link "Ask _Name for some extra cash">><br> <<replace "#result">> - <<set $CashGift = Math.trunc(($cash*0.05)*($SFAO))*$Env>> + <<set $CashGift = Math.ceil(($cash*0.05)*($SFAO))*$Env>> <<if random(1,100) > 50>> <<if random(1,100) > 50>> _Name nods. "Sure boss," she says, "we had a bit of a haul this week. One of my sergeants convinced a woman to tell us where she had hidden her shit. Cut her up pretty bad, but she told us. Bunch of nice jewelry, I kept a nice piece for myself." She picks up a tablet on the table, tapping a few commands on it. "@@.green;There's your cut,@@ ¤<<print $CashGift>>." @@ -632,9 +635,9 @@ securityForceX */ <</replace>> <</link>> <<if $rep < 15000 && $CurrentTradeShowAttendance == 0>> - <<link "Ask The Colonel to put in a good word for you with her contacts">><br> + <br><<link "Ask The Colonel to put in a good word for you with her contacts">><br> <<replace "#result">> - <<set $GoodWords1 += 250+((Math.trunc($SFAO))*$Env)>> + <<set $GoodWords1 += 250+((Math.ceil($SFAO))*$Env)>> <<if random(1,100) > 50>> <<if random(1,100) > 50>> The Colonel nods. "Sure boss," she says, "I still know a lot of people out there and they know my word means something. I'll tell them that yours does as well." She picks up a tablet on the table, tapping a few commands on it. "I just put the word out, boss. Your @@.green;reputation should be a bit better@@ now." @@ -650,9 +653,9 @@ securityForceX */ <</link>> <</if>> <<if $arcologies[0].prosperity < 30 && $CurrentTradeShowAttendance == 0>> - <<link "Ask The Colonel to use her contacts to help the arcology's business community">><br> + <br><<link "Ask The Colonel to use her contacts to help the arcology's business community">><br> <<replace "#result">> - <<set $GoodWords2 = $EnvProsp+((Math.trunc($SFAO/100))*$Env)>> + <<set $GoodWords2 = $EnvProsp+((Math.ceil($SFAO/100))*$Env)>> <<if random(1,100) > 50>> <<if random(1,100) > 50>> The Colonel nods. "Sure boss," she says, "I can convince some of my contacts to run their business through the markets here rather than another City." She picks up a tablet on the table, tapping a few commands on it. "@@.green;There should be a small increase in prosperity,@@ boss." @@ -684,7 +687,7 @@ securityForceX */ <</if>> <<set _securityForceUpgradeResetTokenCurrentCost = $cash*.05>> -<<if $securityForceUpgradeToken == 1 && $securityForceUpgradeTokenReset >= 0>> +<<if $securityForceUpgradeToken == 1 && $securityForceUpgradeTokenReset >= 0 && $SFAO > 0>> <br><br>_Name "says certainly <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>sir<<else>>ma'am<</if>>, it is possible to upgrade $securityForceName more than once per week, however, it will cost you." <br> <<link "Would you like to discus upgrading $securityForceName again?">> @@ -692,7 +695,7 @@ securityForceX */ <<set $securityForceUpgradeTokenReset += 1>> <<set $cash -= _securityForceUpgradeResetTokenCurrentCost>> <<goto "SFM Barracks">> - <</link>> <br>It will cost 0.05 of your currently displayed cash, which is ¤<<print Math.trunc(_securityForceUpgradeResetTokenCurrentCost)>>. + <</link>> <br>It will cost 5% of your currently displayed cash, which is ¤<<print Math.trunc(_securityForceUpgradeResetTokenCurrentCost)>>. <</if>> <<if $securityForceUpgradeTokenReset >= 1>> <br><br>"In total, you have asked _Name about upgrading $securityForceName $securityForceUpgradeTokenReset times." @@ -762,9 +765,9 @@ securityForceX */ <br><<link "Facility Support">> <<replace "#resultX">><br><br> "Sure, boss." she says, nodding. "Creating a specialised area for any slaves you send to assist us will benefical to everyone." - <<set $securityForceUpgradeToken = 1, _Armoury++, $cash -= 150000000*((Math.trunc($SFAO/10))*$Env)>> + <<set $securityForceUpgradeToken = 1, _Armoury++, $cash -= Math.trunc((150000000*($SFAO/10))*$Env)>> <</replace>> - <</link>> // Costs ¤<<print 150000000*($SFAO/100)*$Env>> // + <</link>> // Costs ¤<<print Math.ceil((150000000*($SFAO/10))*$Env)>> // <</if>> <<if $securityForceUpgradeToken == 0 && _Armoury < 5>> @@ -1250,7 +1253,7 @@ securityForceX */ <<replace "#result3">> You ask The Colonel if she would like to stretch her legs up on the surface. It doesn't take much effort for her to agree. <<if $PC.warfare < 10>> - <br>Your complete lack of skill at warfare ensures that <<if $Bodyguard != 0>>in addition to $Bodyguard.slaveName, <</if>>you need; two full squads of $securityForceName on foot, a squadron of fighters, a large convy of $securityForceName's ground vehicles. + <br>Your complete lack of skill at warfare ensures that <<if $Bodyguard != 0>>in addition to $Bodyguard.slaveName, <</if>>you need; two full squads of $securityForceName on foot, a squadron of fighters, a small convoy of $securityForceName's ground vehicles. <<elseif $PC.warfare >= 100 && $career == "mercenary">> <br>Your mastery of wet work and prior experience in a PMC, satisfies The Colonel that you only need; one solider and a single vehicle<<if $Bodyguard != 0>> plus $Bodyguard.slaveName<</if>>. Being able to see and interact with the arcology owner even more directly if they so wish boosts the mood of your citizen's while also giving them an increased opportunity to try gaining favour with you. <<set $rep += 10, $cash += $EnvCash2>> @@ -1258,11 +1261,11 @@ securityForceX */ <br>Your mastery of wet work, satisfies The Colonel that you only need; two soldiers and a single vehicle<<if $Bodyguard != 0>> plus $Bodyguard.slaveName<</if>>. Being able to see and interact with the arcology owner directly if they so wish boosts the mood of your citizens while also giving them the opportunity to try gaining favour with you. <<set $rep += 5, cash += $EnvCash3>> <<elseif $PC.warfare >= 60>> - <br>Your expertness at warfare means that <<if $Bodyguard != 0>>in addition to $Bodyguard.slaveName <</if>>you only require; a squad of $securityForceName on foot, a two fighters, a tiny convy of $securityForceName's ground vehicles. + <br>Your expertness at warfare means that <<if $Bodyguard != 0>>in addition to $Bodyguard.slaveName <</if>>you need; two full squads of $securityForceName on foot, a squadron of fighters and a large convoy of $securityForceName's ground vehicles. <<elseif $PC.warfare >= 30>> - <br>As you have some skill at warfare, you only need<<if $Bodyguard != 0>> in addition to $Bodyguard.slaveName<</if>>; two full squads of $securityForceName on foot, a squadron of fighters, a small convy of $securityForceName's ground vehicles. + <br>As you have some skill at warfare, you only need<<if $Bodyguard != 0>> in addition to $Bodyguard.slaveName<</if>>; two full squads of $securityForceName on foot, a squadron of fighters, a small convoy of $securityForceName's ground vehicles. <<elseif $PC.warfare >= 10>> - <br>Your F.N.G tier skills at warfare ensures that <<if $Bodyguard != 0>>in addition to $Bodyguard.slaveName, <</if>>you need; two full squads of $securityForceName on foot, a squadron of fighters, a large convy of $securityForceName's ground vehicles. + <br>Your F.N.G tier skills at warfare ensures that <<if $Bodyguard != 0>>in addition to $Bodyguard.slaveName, <</if>>you need; two full squads of $securityForceName on foot, a squadron of fighters, a small convoy of $securityForceName's ground vehicles. <</if>> <<if $arcologies[0].FSPaternalist != "unset">> Stopping at a paternalist shop, you help The Colonel select some luxurious and relaxing treatments for her main slave.