diff --git a/src/SecExp/attackReport.tw b/src/SecExp/attackReport.tw index 524e0e2d304197e393b3403a7bcf263945819ec5..e1023c96baa1802f250d24e686425492f88a7718 100644 --- a/src/SecExp/attackReport.tw +++ b/src/SecExp/attackReport.tw @@ -752,7 +752,7 @@ <</if>> <<if !isInt($lowerClass)>> <<if isNaN($lowerClass)>> - <br>@@.red;Error: ACitizens is NaN, please report this issue@@ + <br>@@.red;Error: lowerClass is NaN, please report this issue@@ <<elseif $lowerClass > 0>> <<set $lowerClass = Math.trunc($lowerClass)>> <<else>> @@ -761,7 +761,7 @@ <</if>> <<if !isInt($NPCSlaves)>> <<if isNaN($NPCSlaves)>> - <br>@@.red;Error: ASlaves is NaN, please report this issue@@ + <br>@@.red;Error: NPCSlaves is NaN, please report this issue@@ <<elseif $NPCSlaves > 0>> <<set $NPCSlaves = Math.trunc($NPCSlaves)>> <<else>> diff --git a/src/events/intro/introSummary.tw b/src/events/intro/introSummary.tw index f4f66391c462da1edc3a91fc9a4d33ebc275759c..ae5f7fc1c1adabd286bf4838a784b396e9b8626a 100644 --- a/src/events/intro/introSummary.tw +++ b/src/events/intro/introSummary.tw @@ -79,6 +79,11 @@ __''World Settings''__ <<set $rulesCost = Math.trunc(10000/$economy)>> <<set $modCost = Math.trunc(5000/$economy)>> <<set $surgeryCost = Math.trunc(30000/$economy)>> +<<if $economy > 100>> + <<set $corpEasy = 1>> +<<else>> + <<set $corpEasy = 0>> +<</if>> <br> diff --git a/src/facilities/farmyard/farmyard.tw b/src/facilities/farmyard/farmyard.tw index 04fe2642ab3f5d5844e582c12c02ab517b1efa8c..196010188992589ad2d0fe440d324c762b53f103 100644 --- a/src/facilities/farmyard/farmyard.tw +++ b/src/facilities/farmyard/farmyard.tw @@ -414,7 +414,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <<if $farmyardKennels > 0 || $farmyardStable > 0 || $farmyardCages > 0>> <<set _removeCost = Math.trunc(($farmyardKennels+$farmyardStable+$farmyardCages)*5000)*$upgradeMultiplierArcology>> - [[Remove the animal housing|Farmyard][cashX(forceNeg(_removeCost)), $farmyardKennels = 0, $farmyardStable = 0, $farmyardCages = 0, $activeCanine = 0, $activeHooved = 0, $activeFeline = 0, $farmyardShows = 0, $farmyardBreeding = 0, $farmyardRestraints = 0, $animalsBought = { + [[Remove the animal housing|Farmyard][cashX(forceNeg(_removeCost), "farmyard"), $farmyardKennels = 0, $farmyardStable = 0, $farmyardCages = 0, $activeCanine = 0, $activeHooved = 0, $activeFeline = 0, $farmyardShows = 0, $farmyardBreeding = 0, $farmyardRestraints = 0, $animalsBought = { canines: 0, hooved: 0, felines: 0, diff --git a/src/facilities/farmyard/saWorkTheFarm.tw b/src/facilities/farmyard/saWorkTheFarm.tw index 8108c554e9c84b0b6be4e5d3565c2e52baa06b16..ae9c2ae1443b4ac32278d7b82bca2d19ac61334b 100644 --- a/src/facilities/farmyard/saWorkTheFarm.tw +++ b/src/facilities/farmyard/saWorkTheFarm.tw @@ -233,10 +233,10 @@ $He also puts on shows with animals this week. /* CLOSE FS SUBSECTION */ - <<if setup.entertainmentCareers.includes($slaves[_i].career)>> + <<if setup.entertainmentCareers.includes(_slave.career)>> <</if>> - <<if setup.farmerCareers.includes($slaves[_i].career)>> + <<if setup.farmerCareers.includes(_slave.career)>> <</if>> <<if _slave.prestige == 1>> @@ -439,7 +439,7 @@ $He also puts on shows with animals this week. <<if _slave.assignment == "work as a farmhand">> <<if $farmyardDecoration != "standard">> -<<set _fsGain = Math.min(0.0001*$FSSingleSlaveRep*(_food+5*$cum), 1)>> +<<set _fsGain = Math.min(0.0001*$FSSingleSlaveRep*(_food), 1)>> <<switch $farmyardDecoration>> <<case "Roman Revivalist">> <<set $arcologies[0].FSRomanRevivalist = Math.clamp($arcologies[0].FSRomanRevivalist += _fsGain,0,100)>> diff --git a/src/gui/Encyclopedia/encyclopedia.tw b/src/gui/Encyclopedia/encyclopedia.tw index ff873485267552229b028ed6480dfb75915fe7d5..93bf7cd406a67d92906e968dd7afbc40e9996779 100644 --- a/src/gui/Encyclopedia/encyclopedia.tw +++ b/src/gui/Encyclopedia/encyclopedia.tw @@ -293,29 +293,25 @@ BEING IN CHARGE <<case "The Corporation">> - Once you are fairly reputable and have a large sum of cash in the bank, you will receive a brief end of turn event that unlocks the ability to found a corporation dedicated to slaving. Once this happens, you can incorporate from the economics report, and once you've done that, you can manage your corporation every week from the same place. + Once you are fairly reputable and have a large sum of cash in the bank, you will receive a brief end of turn event that unlocks the ability to found a corporation dedicated to slaving. Once this happens, you can incorporate from the 'Manage Corporation' tab found under 'Manage Economy", and once you've done that, you can manage your corporation every week from the same place. <br><br>__Shares__ - Buying shares from the corporation or issuing new shares will create new shares in the corporation. If you buy them yourself, cash will be transferred from you to the corporation in return for the shares; if you direct the corporation to issue new public shares, @@.yellowgreen;[[money|Encyclopedia][$encyclopedia = "Money"]]@@ will come into the corporation from the market. If you direct the corporation to buy back shares from the public, cash will be transferred from the corporation to reduce the number of public shares, which will increase your ownership percentage. You are not permitted to give up majority ownership of the corporation. Selling your shares or buying publicly held shares are both transactions between you and your shares and shareholders and their shares. All transactions impact the stock price; experiment to find a plan that will give you and your corporation the best outcome. - - <br><br>__Assets__ - All assets are mostly valuable as assets; they drive up the value of your corporation and thus its stock price, and they all produce a small amount of profit every week. Slave assets generate the most inherent profit. Both entrapment and conflict zone capture assets create more slave assets; drug, training, and surgical assets — in sufficient quantity — improve the slave assets you already have. Each week, all assets held by the corporation (including cash) will diminish to represent the costs of doing business. Slave assets are exempt from this, but their value is tied to the overall slave market. To maximize profits and offset the corporation's costs, it is advisable to sell some highly-priced assets each week and re-invest the proceeds in lower-priced assets. If all asset prices are low, it may be prudent to sell some slave assets and invest more in capture and/or entrapment assets or in training and medical assets. When other asset prices are high, slaves' assets may be your best option. - - <br><br>__Slave Sales__ - Once a corporation is created, it will get its own establishment in the slave market. Stockholders are offered discounts on its slaves, which increase with the size of the owner's share in the corporation. As the corporation's assets increase, it can be given direction about what kind of slaves it should train and how it should train them, which will affect the slaves seen in the corporate catalog. Each asset type allows three choices: - <br> General: Slave breaking, diets, and fitness. - - <br> Entrapment: Obedience, @@.hotpink;[[devotion|Encyclopedia][$encyclopedia = "From Rebellious to Devoted"]],@@ and @@.cyan;intelligence@@. - - <br> Capture: Gender, age and race. - - <br> Training: Language, education, and skills. - - <br> Surgical: Cosmetic surgeries, implants, and extreme surgeries. - - <br> Pharmacological: Hormones, expansion, and extreme expansion. - - <br><br>If the corporation's slaves have qualities that make them especially appealing to an arcology's citizens, the corporation will enjoy increased profits, and the [[future society|Encyclopedia][$encyclopedia = "Future Societies"]] creating the demand will progress more rapidly due to the supply of appealing slaves. All arcologies present in the Free City will interact with the corporation this way, making shares in a corporation which supplies girls that appeal to the whole city extremely lucrative. + Buying shares from the corporation or issuing new shares will create new shares in the corporation. If you buy them yourself, cash will be transferred from you to the corporation in return for the shares; if you direct the corporation to issue new public shares, @@.yellowgreen;[[money|Encyclopedia][$encyclopedia = "Money"]]@@ will come into the corporation from the market. If you direct the corporation to buy back shares from the public, cash will be transferred from the corporation to reduce the number of public shares, which will increase your ownership percentage. You are not permitted to give up majority ownership of the corporation. Selling your shares or buying publicly held shares are both transactions between you and your shares and shareholders and their shares. All transactions impact the stock price. + + <br><br>__Divisions__ + The corporation consists of divisions. Starting up your corporation requires you to choose a single division as starting point and you will be able to expand into linked divisions once you have grown sufficiently in size. There are 3 general categories of divisions; acquisition, modification and exploitation. The first consists of legal and extralegal enslavement and they feed fresh slaves into either your corporation or the market at large. Investing in one of these is a good starting point when slave prices are high. Do note that each slave acquired and sold reduces the demand for slaves on the market. This means little at first, but when large enough will impact the market significantly.<br> + The second category consists of slave breaking, physical slave modifications and slave training. These divisions either take improvable slaves from your acquisition divisions or the slave market and improve them. Slaves can go from breaking to physical modifications to training and become highly valuable slaves by the end of it. If the slave market is balanced or you are looking for a safe initial investment these divisions are a good choice. Their market impact is neutral, buying slaves reduces supply but selling them back onto the market reduces demand by the same amount.<br> + The final category consists of an arcade, menial services, dairy and escort division. These divisions require a particular quality of slave and then put them to work in their respective fields. As these divisions operate they will have to write off some of their slaves and replace them with fresh ones, you can provide these slaves through your acquisition or modification divisions or the market. Whenever prices are low these divisions operate at a higher margin, making them a great first division when slave prices are low. Do note that each slave bought from the market reduces the supply of slaves. As these divisions grow and write off more and more slaves each week, replenishing them from the market will begin to impact the market significantly. + + <br><br>__Management__ + Your first division will automatically buy and/or sell slaves in order to do business and make money. It is up to the player to decide when to expand the division's capacity, but investing aggresively early will pay off in the long run. Once your corporation has gotten a little time to grow its value (the sum of slave value, division value, cash on hand and dividends reserved) the end of week report will prompt you that a new division can be added. This requires a significant cash investment so you may have to save up a little. Adding divisions comes with efficiency benefits, but also adds overhead costs. Adding a second division will hardly slow you down, but as you grow these costs grow ever larger; depending on the number of divisions, but also the size of them.<br> + Any new division will have at least one direct link to your current divisions, meaning it can either use slaves from a division or provide them to another division. New divisions are not automatically set to buy and/or sell slaves from the market. It is expected the player either manually moves slaves between didivions or sets up automatic links between them using several rules.<br> + You have the ability to reduce the size of your divisions or dissolve them entirely. While this only recoups 80% of the investment it may sometimes be prudent to do so, i.e. in case market conditions have become unfavorable for the division and/or overhead costs are becoming oppresively high. Also note that divisions become less efficient the larger they get (even without considering overhead), eventually growing it further will hurt your profit, not improve it. You will want to cut your losses early or otherwise suffer the consequences.<br> + In order to personally benefit monetarily from your corporation you will have to decide how much of its profit will be set aside to be paid out as dividends. Setting low or no dividends allows for rapid development, while siphoning a lot of profits away from the corporation will slow it down significantly. Please note that the corporation does not pay out every week but only every quarter (13 weeks). + + <br><br>__Slave Sales__ + Once a corporation is created, it will get its own establishment in the slave market. As the corporation's value increase, it can be given direction about what kind of slaves it should train and how it should train them, which will affect the slaves seen in the corporate catalog. As with divisions; the higher your corporations's value, the more specializations you are allowed to choose. Your corporation's divisions determine which specialization options are available. Each division has a unique specialization associated with it while many others are slightly more general and linked to either acquisition or modification. All kinds of restrictions may apply depending on Future Society choices and the size of your divisions. Several specializations can be enhanced beyond the first choice, but again you may need to satisfy certain conditions first.<br> + If the corporation's slaves have qualities that make them especially appealing to an arcology's citizens, the corporation will enjoy increased profits, and the [[future society|Encyclopedia][$encyclopedia = "Future Societies"]] creating the demand will progress more rapidly due to the supply of appealing slaves. All arcologies present in the Free City will interact with the corporation this way, making shares in a corporation which supplies girls that appeal to the whole city extremely lucrative. <<case "Sexual Energy">> diff --git a/src/init/dummy.tw b/src/init/dummy.tw index 47457be4128b94531186813bee749f913f89c312..c586dbf9c0830d8bdcf8c1a185b718a6208c1287 100644 --- a/src/init/dummy.tw +++ b/src/init/dummy.tw @@ -26,4 +26,5 @@ $servantsQuartersSpots $sayEnunciate, $sEnunciate, $SEnunciate, $ssEnunciate, $cEnunciate, $CEnunciate, $ccEnunciate, $zEnunciate, $ZEnunciate, $chEnunciate, $ChEnunciate, $shEnunciate, $ShEnunciate, $scEnunciate, $ScEnunciate, $xEnunciate, $XEnunciate $ZEnunciate = $ZEnunciate $Girl, $farmyardSpots +$corpPeopleEnslaved, $slaveAssets, $slaveAssetPrice, $corpValue, $sharePrice, $oldSharePrice, $generalAssetPrice, $generalAssets, $entrapmentAssets, $entrapmentAssetPrice, $captureAssets, $captureAssetPrice, $trainingAssets, $trainingAssetPrice, $surgicalAssets, $surgicalAssetPrice, $drugAssets, $drugAssetPrice */ diff --git a/src/init/storyInit.tw b/src/init/storyInit.tw index 58c2c826fe6c34fcaf73660411841461585c55b4..9594ad4b8172533c1dbfb088043e0f97479098df 100644 --- a/src/init/storyInit.tw +++ b/src/init/storyInit.tw @@ -425,6 +425,9 @@ You should have received a copy of the GNU General Public License along with thi <</for>> <</if>> + /*Undefining corporation variables*/ + <<unset $corpCash,$personalShares,$publicShares,$corpDividend,$dividendTimer,$corpDiv,$corpRev,$corpDivExtraSlaves,$corpDivLegalSlaves,$corpDivBreakSlaves,$corpDivBreakSlaves2,$corpDivSurgerySlaves,$corpDivSurgerySlaves2,$corpDivTrainSlaves,$corpDivTrainSlaves2,$corpDivArcadeSlaves,$corpDivMenialSlaves,$corpDivDairySlaves,$corpDivWhoreSlaves,$corpRevOld,$corpAssetsSlaveOld,$corpAssetsSlave,$corpAssetsDevOld,$corpAssetsDev,$corpOverheadOld,$corpOpCostOld,$corpProfitOld,$corpSpecAccent,$corpSpecAge,$corpSpecAmputee,$corpSpecBalls,$corpSpecDevotion,$corpSpecDick,$corpSpecEducation,$corpSpecGender,$corpSpecGenitalia,$corpSpecWeight,$corpSpecHeight,$corpSpecHormones,$corpSpecImplants,$corpSpecInjection,$corpSpecIntelligence,$corpSpecMilk,$corpSpecMuscle,$corpSpecPussy,$corpSpecSexEd,$corpSpecTrust,$corpSpecVirgin>> + <</if>> <<set $targetArcology = {type: "New"}>> @@ -767,48 +770,40 @@ DairyRestraintsSetting($dairyRestraintsSetting) <<set $applyLaw = 0>> <<set $FSPromenade = {Subjugationist: 0, Supremacist: 0, GenderRadicalist: 0, GenderFundamentalist: 0, Paternalist: 0, Degradationist: 0, BodyPurist: 0, TransformationFetishist: 0, YouthPreferentialist: 0, MaturityPreferentialist: 0, SlimnessEnthusiast: 0, AssetExpansionist: 0, Pastoralist: 0, PhysicalIdealist: 0, ChattelReligionist: 0, AztecRevivalist: 0, RomanRevivalist: 0, EgyptianRevivalist: 0, EdoRevivalist: 0, ArabianRevivalist: 0, ChineseRevivalist: 0, Repopulationist: 0, Eugenics: 0, Hedonism: 0}>> +/*new corporation variables*/ +<<set $newCorp = 1>> +<<set $corpEasy = 0>> +<<set $vanillaShareSplit = 1>> +<<set $corpCashDividend = 0>> +<<set $corpDiv = 0>> +<<set $corpExpand = 0>> +<<set $corpExpandToken = 0>> +<<set $corpSpec = 0>> +<<set $corpSpecToken = 0>> +<<set $corpDivTrainSurgerySwitch = 0>> +<<set $corpDivExtra = 0>> +<<set $corpDivLegal = 0>> +<<set $corpDivBreak = 0>> +<<set $corpDivSurgery = 0>> +<<set $corpDivTrain = 0>> +<<set $corpDivArcade = 0>> +<<set $corpDivMenial = 0>> +<<set $corpDivDairy = 0>> +<<set $corpDivWhore = 0>> +<<set $corpDivExtraDev = 0>> +<<set $corpDivLegalDev = 0>> +<<set $corpDivBreakDev = 0>> +<<set $corpDivSurgeryDev = 0>> +<<set $corpDivTrainDev = 0>> +<<set $corpDivArcadeDev = 0>> +<<set $corpDivMenialDev = 0>> +<<set $corpDivDairyDev = 0>> +<<set $corpDivWhoreDev = 0>> +<<set $corpSpecRaces = []>> + <<set $corpAnnounced = 0>> <<set $corpIncorporated = 0>> <<set $corpMarket = 0>> -<<set $corpPeopleEnslaved = 0>> -<<set $sharePrice = 0>> -<<set $personalShares = 0>> -<<set $publicShares = 0>> -<<set $corpCash = 0>> -<<set $corpProfit = 0>> -<<set $generalAssets = 0>> -<<set $slaveAssets = 0>> -<<set $entrapmentAssets = 0>> -<<set $captureAssets = 0>> -<<set $trainingAssets = 0>> -<<set $surgicalAssets = 0>> -<<set $drugAssets = 0>> -<<set $generalAssetPrice = 10>> -<<set $slaveAssetPrice = 10>> -<<set $entrapmentAssetPrice = 10>> -<<set $captureAssetPrice = 10>> -<<set $trainingAssetPrice = 10>> -<<set $surgicalAssetPrice = 10>> -<<set $drugAssetPrice = 10>> -<<set $generalUpgradeBreaking = "unselected">> -<<set $generalUpgradeWeight = "unselected">> -<<set $generalUpgradeMuscle = "unselected">> -<<set $entrapmentUpgradeDevotionOne = "unselected">> -<<set $entrapmentUpgradeDevotionTwo = "unselected">> -<<set $entrapmentUpgradeIntelligence = "unselected">> -<<set $captureUpgradeGender = "unselected">> -<<set $captureUpgradeAge = "unselected">> -<<set $captureUpgradeRace = "unselected">> -<<set $trainingUpgradeAccent = "unselected">> -<<set $trainingUpgradeEducation = "unselected">> -<<set $trainingUpgradeSexEd = "unselected">> -<<set $surgicalUpgradeCosmetics = "unselected">> -<<set $surgicalUpgradeImplants = "unselected">> -<<set $surgicalUpgradeGenitalia = "unselected">> -<<set $drugUpgradeHormones = "unselected">> -<<set $drugUpgradeInjectionOne = "unselected">> -<<set $drugUpgradeInjectionTwo = "unselected">> -<<set $corpValue = 0>> <<set $shelterSlave = 0>> <<set $shelterSlaveBought = 0>> diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js index 0d08a8dba843f8dd01e0aa64a61440bfe0f2bfdc..30211386f3b9950f1bc18c0bdc5702402c146c11 100644 --- a/src/js/datatypeCleanupJS.js +++ b/src/js/datatypeCleanupJS.js @@ -1328,6 +1328,110 @@ window.ArcologyDatatypeCleanup = function ArcologyDatatypeCleanup() { V.TFS.schoolProsperity = Math.clamp(+V.TFS.schoolProsperity, -10, 10) || 0; }; +window.FacilityDatatypeCleanup = function() { + FacilityIDArrayCleanup(); + FacilityDecorationCleanup(); + FacilityNameCleanup(); +}; + +window.FacilityIDArrayCleanup = function() { + const V = State.variables; + if (!Array.isArray(V.BrothiIDs)) + V.BrothiIDs = []; + else if (typeof V.BrothiIDs[0] === "object") + V.BrothiIDs = V.BrothiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.DairyiIDs)) + V.DairyiIDs = []; + else if (typeof V.DairyiIDs[0] === "object") + V.DairyiIDs = V.DairyiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.ClubiIDs)) + V.ClubiIDs = []; + else if (typeof V.ClubiIDs[0] === "object") + V.ClubiIDs = V.ClubiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.ServQiIDs)) + V.ServQiIDs = []; + else if (typeof V.ServQiIDs[0] === "object") + V.ServQiIDs = V.ServQiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.SchlRiIDs)) + V.SchlRiIDs = []; + else if (typeof V.SchlRiIDs[0] === "object") + V.SchlRiIDs = V.SchlRiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.SpaiIDs)) + V.SpaiIDs = []; + else if (typeof V.SpaiIDs[0] === "object") + V.SpaiIDs = V.SpaiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.CliniciIDs)) + V.CliniciIDs = []; + else if (typeof V.CliniciIDs[0] === "object") + V.CliniciIDs = V.CliniciIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.ArcadeiIDs)) + V.ArcadeiIDs = []; + else if (typeof V.ArcadeiIDs[0] === "object") + V.ArcadeiIDs = V.ArcadeiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.CellBiIDs)) + V.CellBiIDs = []; + else if (typeof V.CellBiIDs[0] === "object") + V.CellBiIDs = V.CellBiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.MastSiIDs)) + V.MastSiIDs = []; + else if (typeof V.MastSiIDs[0] === "object") + V.MastSiIDs = V.MastSiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.HGSuiteiIDs)) + V.HGSuiteiIDs = []; + else if (typeof V.HGSuiteiIDs[0] === "object") + V.HGSuiteiIDs = V.HGSuiteiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.NurseryiIDs)) + V.NurseryiIDs = []; + else if (typeof V.NurseryiIDs[0] === "object") + V.NurseryiIDs = V.NurseryiIDs.map(function(a) { return a.ID; }); + + if (!Array.isArray(V.FarmyardiIDs)) + V.FarmyardiIDs = []; + else if (typeof V.FarmyardiIDs[0] === "object") + V.FarmyardiIDs = V.FarmyardiIDs.map(function(a) { return a.ID; }); +}; + +window.FacilityDecorationCleanup = function() { + const V = State.variables; + if (typeof V.brothelDecoration !== "string") + V.brothelDecoration = "standard"; + if (typeof V.dairyDecoration !== "string") + V.dairyDecoration = "standard"; + if (typeof V.clubDecoration !== "string") + V.clubDecoration = "standard"; + if (typeof V.servantsQuartersDecoration !== "string") + V.servantsQuartersDecoration = "standard"; + if (typeof V.schoolroomDecoration !== "string") + V.schoolroomDecoration = "standard"; + if (typeof V.spaDecoration !== "string") + V.spaDecoration = "standard"; + if (typeof V.clinicDecoration !== "string") + V.clinicDecoration = "standard"; + if (typeof V.arcadeDecoration !== "string") + V.arcadeDecoration = "standard"; + if (typeof V.cellblockDecoration !== "string") + V.cellblockDecoration = "standard"; + if (typeof V.masterSuiteDecoration !== "string") + V.masterSuiteDecoration = "standard"; + if (typeof V.nurseryDecoration !== "string") + V.nurseryDecoration = "standard"; + if (typeof V.farmyardDecoration !== "string") + V.farmyardDecoration = "standard"; + if (typeof V.brothelDecoration !== "string") + V.brothelDecoration = "standard"; +}; + window.FacilityNameCleanup = function FacilityNameCleanup() { const V = State.variables; V.arcologies[0].name = V.arcologies[0].name || "Arcology X-4"; diff --git a/src/js/economyJS.js b/src/js/economyJS.js index 21983bcdc886a0e82dc7188982cac95ca50864a3..39c9cd6e1fba47c6220f9519b0c6e6ccf1ef77ad 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -899,6 +899,150 @@ window.menialSlaveCost = function(q) { return (Math.trunc(baseCost + demand / 400 - supply / 400 + q / 400) + random); }; +// Corporation Value + +window.corpValue = function() { + const V = State.variables; + if(V.corpIncorporated === 0) { + return 0; + } else { + var corpAssets = 0; + if(V.corpDivExtra > 0) { + corpAssets += V.corpDivExtraDev * 16000 + V.corpDivExtraSlaves * 10000; + } + if(V.corpDivLegal > 0) { + corpAssets += V.corpDivLegalDev * 20000 + V.corpDivLegalSlaves * 15000; + } + if(V.corpDivBreak > 0) { + corpAssets += V.corpDivBreakDev * 7200 + V.corpDivBreakSlaves * 10000 + V.corpDivBreakSlaves2 * 15000; + } + if(V.corpDivSurgery > 0) { + corpAssets += V.corpDivSurgeryDev * 16000 + V.corpDivSurgerySlaves * 15000 + V.corpDivSurgerySlaves2 * 23000; + } + if(V.corpDivTrain > 0) { + if(V.corpDivSurgery + V.corpDivTrain < 2 && V.corpDivTrainSurgerySwitch === 0) { + corpAssets += V.corpDivTrainDev * 20000 + V.corpDivTrainSlaves * 15000 + V.corpDivTrainSlaves2 * 26000; + } else if(V.corpDivTrainSurgerySwitch === 1 && V.corpDivTrainSurgeryTimer < 5) { + corpAssets += V.corpDivTrainDev * 20000 + V.corpDivTrainSlaves * (15000 + 1600 * V.corpDivTrainSurgeryTimer) + V.corpDivTrainSlaves2 * (26000 + 1600 * V.corpDivTrainSurgeryTimer); + } else { + corpAssets += V.corpDivTrainDev * 20000 + V.corpDivTrainSlaves * 23000 + V.corpDivTrainSlaves2 * 34000; + } + } + if(V.corpDivArcade > 0) { + corpAssets += V.corpDivArcadeDev * 4000 + V.corpDivArcadeSlaves * 10000; + } + if(V.corpDivMenial > 0) { + corpAssets += V.corpDivMenialDev * 5200 + V.corpDivMenialSlaves * 15000; + } + if(V.corpDivDairy > 0) { + corpAssets += V.corpDivDairyDev * 12000 + V.corpDivDairySlaves * 23000; + } + if(V.corpDivWhore > 0) { + if(V.corpDivSurgery + V.corpDivTrain < 2 && V.corpDivTrainSurgerySwitch === 0) { + corpAssets += V.corpDivWhoreDev * 16000 + V.corpDivWhoreSlaves * 26000; + } else if(V.corpDivTrainSurgerySwitch === 1 && V.corpDivTrainSurgeryTimer < 20) { + corpAssets += V.corpDivWhoreDev * 16000 + V.corpDivWhoreSlaves * (26000 + 400 * V.corpDivTrainSurgeryTimer); + } else { + corpAssets += V.corpDivWhoreDev * 16000 + V.corpDivWhoreSlaves * 34000; + } + } + return corpAssets + V.corpDividend + V.corpCash; + } +}; + +// Corporation Share Price +// A positive q means adding shares to the market, negative means removing them + +window.corpSharePrice = function(q) { + const V = State.variables; + if(V.corpIncorporated === 0) { + return 0; + } else { + return Math.trunc(1000 * (corpValue() / (V.personalShares + V.publicShares + (q || 0)))); + } +}; + +// Corporation Division Slave room +// The amount of additional slaves you can fit in a division +// Can we condense this? + +window.corpDivBreakSlavesRoom = function() { + const V = State.variables; + if(V.corpDivBreak === 1 && V.corpDivBreakDev > V.corpDivBreakSlaves) { + return V.corpDivBreakDev - V.corpDivBreakSlaves; + } else { + return 0; + } +}; + +window.corpDivSurgerySlavesRoom = function() { + const V = State.variables; + if(V.corpDivSurgery === 1 && V.corpDivSurgeryDev > V.corpDivSurgerySlaves) { + return V.corpDivSurgeryDev - V.corpDivSurgerySlaves; + } else { + return 0; + } +}; + +window.corpDivTrainSlavesRoom = function() { + const V = State.variables; + if(V.corpDivTrain === 1 && V.corpDivTrainDev > V.corpDivTrainSlaves) { + return V.corpDivTrainDev - V.corpDivTrainSlaves; + } else { + return 0; + } +}; + +window.corpDivArcadeSlavesRoom = function() { + const V = State.variables; + if(V.corpDivArcade === 1 && V.corpDivArcadeDev > V.corpDivArcadeSlaves) { + return V.corpDivArcadeDev - V.corpDivArcadeSlaves; + } else { + return 0; + } +}; + +window.corpDivMenialSlavesRoom = function() { + const V = State.variables; + if(V.corpDivMenial === 1 && V.corpDivMenialDev > V.corpDivMenialSlaves) { + return V.corpDivMenialDev - V.corpDivMenialSlaves; + } else { + return 0; + } +}; + +window.corpDivDairySlavesRoom = function() { + const V = State.variables; + if(V.corpDivDairy === 1 && V.corpDivDairyDev > V.corpDivDairySlaves) { + return V.corpDivDairyDev - V.corpDivDairySlaves; + } else { + return 0; + } +}; + +window.corpDivWhoreSlavesRoom = function() { + const V = State.variables; + if(V.corpDivWhore === 1 && V.corpDivWhoreDev > V.corpDivWhoreSlaves) { + return V.corpDivWhoreDev - V.corpDivWhoreSlaves; + } else { + return 0; + } +}; + +//Corporation race blacklisting/whitelisting +//race is the lowercase string representing the race, 'blacklist' is either 1 or 0. 1 means we are blacklisting and 0 means we are whitelisting said race +window.corpBlacklistRace = function(race, blacklist) { + var raceArray = State.variables.corpSpecRaces; + if(raceArray.length > 0 && blacklist === 1) { + raceArray.delete(race); + } else if(blacklist === 1) { + raceArray = setup.filterRacesLowercase.filter(x => x !== race); + } else { + raceArray.push(race); + } + return raceArray; +}; + window.getSlaveStatisticData = function(s, facility) { if(!s || !facility) { // Base data, even without facility diff --git a/src/pregmod/manageCorporation.tw b/src/pregmod/manageCorporation.tw new file mode 100644 index 0000000000000000000000000000000000000000..58ecba5315d0ec03499d8c260be007fcd157926c --- /dev/null +++ b/src/pregmod/manageCorporation.tw @@ -0,0 +1,2185 @@ +:: Manage Corporation [nobr] + +<<set $nextButton = "Back", $nextLink = "Manage Economy", $showEncyclopedia = 1, $encyclopedia = "The Corporation">> + +<<if $corpIncorporated == 0>> +__Incorporation__ +<br> +<br>//Please consider that the market price of slaves has quite the impact on the profitability of your corporation.// +<br>//Focus on acquisition when prices are high, exploitation if prices are low. Slave improvement is a safe choice either way.// +<br>//Also note the option for a 8 - 7 share split instead of the vanilla 2 - 1, this makes the initial investment cheaper but leaves you with relatively less shares.// +<br><br> + +<<if $vanillaShareSplit == 1>> /*Picking a starting division*/ + <<if $cash > 150000>> + You can lay the groundwork for a slave corporation and choose to start out with; + <br>A focus on breaking slaves. <<print cashFormat(150000)>> [[Slave Breaking|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(150000), "stocksTraded"), $corpDiv = 1, $corpDivBreak = 1, $corpDivBreakDev = 10, $corpDivBreakSlaves = 10, $corpDivBreakSlaves2 = 0, $corpDivBreakToMarket = 1, $corpDivBreakFromMarket = 1, $corpCash = 35000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 100000, $corpAssetsSlave = 0, $corpAssetsDevOld = 90000, $corpAssetsDev = 0]] + <<if $cash > 200000>> + <br>A focus on extralegal enslavement. <<print cashFormat(200000)>> [[Extralegal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(200000), "stocksTraded"), $corpDiv = 1, $corpDivExtra = 1, $corpDivExtraDev = 10, $corpDivExtraSlaves = 0, $corpDivExtraToMarket = 1, $corpCash = 100000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0, $corpAssetsSlave = 0, $corpAssetsSlaveOld = 0]] + <<if $cash > 210000>> + <br>A focus on operating sex arcades. <<print cashFormat(210000)>> [[Sex Arcades|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(210000), "stocksTraded"), $corpDiv = 1, $corpDivArcade = 1, $corpDivArcadeDev = 20, $corpDivArcadeSlaves = 20, $corpDivArcadeFromMarket = 1, $corpCash = 15000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 200000, $corpAssetsSlave = 0, $corpAssetsDevOld = 100000, $corpAssetsDev = 0]] + <<if $cash > 250000>> + <br>A focus on legal enslavement. <<print cashFormat(250000)>> [[Legal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(250000), "stocksTraded"), $corpDiv = 1, $corpDivLegal = 1, $corpDivLegalDev = 10, $corpDivLegalSlaves = 0, $corpDivLegalToMarket = 1, $corpCash = 125000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0, $corpAssetsSlave = 0, $corpAssetsSlaveOld = 0]] + <<if $cash > 270000>> + <br>A focus on physical slave modifications. <<print cashFormat(270000)>> [[Slave Modifications|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(270000), "stocksTraded"), $corpDiv = 1, $corpDivSurgery = 1, $corpDivSurgeryDev = 10, $corpDivSurgerySlaves = 10, $corpDivSurgerySlaves2 = 0, $corpDivSurgeryToMarket = 1, $corpDivSurgeryFromMarket = 1, $corpCash = 55000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]] + <br>A focus on milking slaves. <<print cashFormat(270000)>> [[Dairy|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(270000), "stocksTraded"), $corpDiv = 1, $corpDivDairy = 1, $corpDivDairyDev = 10, $corpDivDairySlaves = 10, $corpDivDairyFromMarket = 1, $corpCash = 25000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 230000, $corpAssetsSlave = 0, $corpAssetsDevOld = 150000, $corpAssetsDev = 0]] + <<if $cash > 300000>> + <br>A focus on training slaves. <<print cashFormat(300000)>> [[Slave Training|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(300000), "stocksTraded"), $corpDiv = 1, $corpDivTrain = 1, $corpDivTrainDev = 10, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainToMarket = 1, $corpDivTrainFromMarket = 1, $corpCash = 50000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0]] + <br>A focus on offering menial services. <<print cashFormat(300000)>> [[Menial Services|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(300000), "stocksTraded"), $corpDiv = 1, $corpDivMenial = 1, $corpDivMenialDev = 20, $corpDivMenialSlaves = 20, $corpDivMenialFromMarket = 1, $corpCash = 20000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 300000, $corpAssetsSlave = 0, $corpAssetsDevOld = 130000, $corpAssetsDev = 0]] + <<if $cash > 340000>> + <br>A focus on whoring out slaves. <<print cashFormat(340000)>> [[Escort Service|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(340000), "stocksTraded"), $corpDiv = 1, $corpDivWhore = 1, $corpDivWhoreDev = 10, $corpDivWhoreSlaves = 10, $corpDivWhoreFromMarket = 1, $corpCash = 50000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 260000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]] + <</if>> + <<else>> + You lack the funds for the final option. + <</if>> + <<else>> + You lack the funds for some options. + <</if>> + <<else>> + You lack the funds for some options. + <</if>> + <<else>> + You lack the funds for many options. + <</if>> + <<else>> + You lack the funds for most options. + <</if>> + <<else>> + You lack the funds to found a slave corporation. + <</if>> + <br>[[8-7 Share Split|Manage Corporation][$vanillaShareSplit = 0]] +<<else>> /*8/7 split on the shares instead of 2/1*/ + <<if $cash > 120000>> + You can lay the groundwork for a slave corporation and choose to start out with; + <br>A focus on breaking slaves. <<print cashFormat(120000)>> [[Slave Breaking|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(120000), "stocksTraded"), $corpDiv = 1, $corpDivBreak = 1, $corpDivBreakDev = 10, $corpDivBreakSlaves = 10, $corpDivBreakSlaves2 = 0, $corpDivBreakToMarket = 1, $corpDivBreakFromMarket = 1, $corpCash = 35000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 100000, $corpAssetsSlave = 0, $corpAssetsDevOld = 90000, $corpAssetsDev = 0]] + <<if $cash > 160000>> + <br>A focus on extralegal enslavement. <<print cashFormat(160000)>> [[Extralegal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(160000), "stocksTraded"), $corpDiv = 1, $corpDivExtra = 1, $corpDivExtraDev = 10, $corpDivExtraSlaves = 0, $corpDivExtraToMarket = 1, $corpCash = 100000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]] + <<if $cash > 168000>> + <br>A focus on operating sex arcades. <<print cashFormat(168000)>> [[Sex Arcades|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(168000), "stocksTraded"), $corpDiv = 1, $corpDivArcade = 1, $corpDivArcadeDev = 20, $corpDivArcadeSlaves = 20, $corpDivArcadeFromMarket = 1, $corpCash = 15000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 200000, $corpAssetsSlave = 0, $corpAssetsDevOld = 100000, $corpAssetsDev = 0]] + <<if $cash > 200000>> + <br>A focus on legal enslavement. <<print cashFormat(200000)>> [[Legal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(200000), "stocksTraded"), $corpDiv = 1, $corpDivLegal = 1, $corpDivLegalDev = 10, $corpDivLegalSlaves = 0, $corpDivLegalToMarket = 1, $corpCash = 125000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0]] + <<if $cash > 216000>> + <br>A focus on physical slave modifications. <<print cashFormat(216000)>> [[Slave Modifications|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(216000), "stocksTraded"), $corpDiv = 1, $corpDivSurgery = 1, $corpDivSurgeryDev = 10, $corpDivSurgerySlaves = 10, $corpDivSurgerySlaves2 = 0, $corpDivSurgeryToMarket = 1, $corpDivSurgeryFromMarket = 1, $corpCash = 60000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]] + <br>A focus on milking slaves. <<print cashFormat(216000)>> [[Dairy|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(216000), "stocksTraded"), $corpDiv = 1, $corpDivDairy = 1, $corpDivDairyDev = 10, $corpDivDairySlaves = 10, $corpDivSurgeryFromMarket = 1, $corpCash = 25000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 230000, $corpAssetsSlave = 0, $corpAssetsDevOld = 150000, $corpAssetsDev = 0]] + <<if $cash > 240000>> + <br>A focus on training slaves. <<print cashFormat(240000)>> [[Slave Training|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(240000), "stocksTraded"), $corpDiv = 1, $corpDivTrain = 1, $corpDivTrainDev = 10, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainToMarket = 1, $corpDivTrainFromMarket = 1, $corpCash = 50000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0]] + <br>A focus on offering menial services. <<print cashFormat(240000)>> [[Menial Services|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(240000), "stocksTraded"), $corpDiv = 1, $corpDivMenial = 1, $corpDivMenialDev = 20, $corpDivMenialSlaves = 20, $corpDivMenialFromMarket = 1, $corpCash = 20000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 300000, $corpAssetsSlave = 0, $corpAssetsDevOld = 130000, $corpAssetsDev = 0]] + <<if $cash > 272000>> + <br>A focus on whoring out slaves. <<print cashFormat(272000)>> [[Escort Service|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(272000), "stocksTraded"), $corpDiv = 1, $corpDivWhore = 1, $corpDivWhoreDev = 10, $corpDivWhoreSlaves = 10, $corpDivWhoreFromMarket = 1, $corpCash = 50000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 260000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]] + <</if>> + <<else>> + You lack the funds for the final option. + <</if>> + <<else>> + You lack the funds for some options. + <</if>> + <<else>> + You lack the funds for some options. + <</if>> + <<else>> + You lack the funds for many options. + <</if>> + <<else>> + You lack the funds for most options. + <</if>> + <<else>> + You lack the funds to found a slave corporation. + <</if>> +<br>[[2-1 Share Split|Manage Corporation][$vanillaShareSplit = 1]] +<</if>> + +<<else>> /*When the corporation exists*/ + +<<set _corpDivBreakSlavesRoom = corpDivBreakSlavesRoom(), +_corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom(), +_corpDivTrainSlavesRoom = corpDivTrainSlavesRoom(), +_corpDivArcadeSlavesRoom = corpDivArcadeSlavesRoom(), +_corpDivMenialSlavesRoom = corpDivMenialSlavesRoom(), +_corpDivDairySlavesRoom = corpDivDairySlavesRoom(), +_corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>> + +__Corporation Overview__ +<br>Last Week's Revenue: @@.yellowgreen;<<print cashFormat($corpRevOld)>>@@ /*Returns last week's revenue, gets calculated in corporationDevelopments, but slaves sold here also added to it for next week*/ +<br>Last Week's Operating Expenses: @@.red;<<print cashFormat($corpOpCostOld)>>@@ /*Just like revenue, except for operating expenses (all calculated in corporationDevelopments)*/ +<br>Last Week's Slave Expenses: <<if $corpAssetsSlaveOld > 0>>@@.red;<<print cashFormat($corpAssetsSlaveOld)>>@@<<else>>@@.yellowgreen;<<print cashFormat($corpAssetsSlaveOld)>>@@<</if>> /*buying slaves to work on adds to this expense, works just like revenue*/ +<br>Last Week's Asset Expenses: <<if $corpAssetsDevOld > 0>>@@.red;<<print cashFormat($corpAssetsDevOld)>>@@<<else>>@@.yellowgreen;<<print cashFormat($corpAssetsDevOld)>>@@<</if>> /*costs associated with expanding divisions end up here, reports costs from last week, not current*/ +<<if $corpOverheadOld > 0>><br>Last Week's Overhead: @@.red;<<print cashFormat($corpOverheadOld)>>@@<</if>> +<br>Last Week's Profit: <<if $corpProfitOld > 0>>@@.yellowgreen;<<print cashFormat($corpProfitOld)>>@@<<else>>@@.red;<<print cashFormat($corpProfitOld)>>@@<</if>> +<br> +<br>Available Liquidity: +<<if ($cheatMode) && ($cheatModeM)>> + <span id="corpCash"> + @@.yellowgreen;<<print $corpCash>>@@ + </span> + <<set _TcorpCash = $corpCash>> + <<textbox "_TcorpCash" _TcorpCash>> + <<link "Apply">> + <<set $corpCash = Math.trunc(Number(_TcorpCash)) || $corpCash, $cheater = 1>> + <<replace "#corpCash">> + @@.yellowgreen;<<print $corpCash>>@@ + <</replace>> + <</link>> +<<elseif $corpCash > 0>> + @@.yelllowgreen;<<print cashFormat($corpCash)>>@@ +<<else>> + @@.red;<<print cashFormat($corpCash)>>@@ +<</if>> +<br>Total Corporate Value: @@.yellowgreen;<<print cashFormat(corpValue())>>@@ +<br>Accumulated Dividend for Payout: @@.yellowgreen;<<print cashFormat($corpDividend)>>@@ +<br>Weeks until Dividend Payout: +<<if $dividendTimer == 1>> + End of this week +<<else>> + $dividendTimer +<</if>> + +<br><br> + +__Division Management__ +<<if $corpDivExtra == 0>> + <<if $corpExpandToken > 0>> /*is the corporation large enough to expand into another division?*/ + <<if $corpDivBreak > 0 || $corpDivArcade > 0>> /*Is there a link from another division to this one?*/ + <<if $corpCash > 200000>> + <br>The corporation can expand by starting an extralegal enslavement division at a cost of @@.yelllowgreen;<<print cashFormat(200000)>>.@@ [[Add Division|Manage Corporation][$corpDivExtra = 1, $corpCash -= 200000, $corpDivExtraSlaves = 0, $corpDivExtraDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000]]<br> + <<else>> + <br>The corporation does not have the funds to add an extralegal enslavement division; @@.yellowgreen;<<print cashFormat(200000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivExtraCost = 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2), + _corpDivExtraCostPU = Math.trunc(_corpDivExtraCost / $corpDivExtraDev), + _corpDivExtraRev = menialSlaveCost() * 10>> /*bit of statistics setup to help make informed decisions*/ + <br>The corporation has an extralegal enslavement division. + <br>It averages @@.green;$corpDivExtraDev new slaves@@ each week. + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivExtraCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivExtraCostPU)>>@@ per slave. + <br>The slaves acquired can be sold for @@.yellowgreen;<<print cashFormat(_corpDivExtraRev)>>@@ each. + <<if $corpDivExtraSlaves > 0>> + <br>Currently the division is holding + <<if $corpDivExtraSlaves > 1>> + @@.green;$corpDivExtraSlaves slaves.@@ + <<else>> + @@.green;one slave.@@ + <</if>> + <<if _corpDivArcadeSlavesRoom > 0>> /*sending slaves to linked divisions if possible*/ + <br>You can send up to <<print _corpDivArcadeSlavesRoom>> to the arcade division. [[Send 1|Manage Corporation][$corpDivArcadeSlaves += 1, $corpDivExtraSlaves -= 1]] + <<if $corpDivExtraSlaves >= 10 && _corpDivArcadeSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivArcadeSlaves += 10, $corpDivExtraSlaves -= 10]] + <</if>> + <<if $corpDivExtraSlaves >= _corpDivArcadeSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivArcadeSlaves += _corpDivArcadeSlavesRoom, $corpDivExtraSlaves -= _corpDivArcadeSlavesRoom]] + <</if>> + <</if>> + <<if _corpDivBreakSlavesRoom > 0>> + <br>You can send up to <<print _corpDivBreakSlavesRoom>> to the arcade division. [[Send 1|Manage Corporation][$corpDivBreakSlaves += 1, $corpDivExtraSlaves -= 1]] + <<if $corpDivExtraSlaves >= 10 && _corpDivBreakSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivBreakSlaves += 10, $corpDivExtraSlaves -= 10]] + <</if>> + <<if $corpDivExtraSlaves >= _corpDivBreakSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivBreakSlaves += _corpDivBreakSlavesRoom, $corpDivExtraSlaves -= _corpDivBreakSlavesRoom]] + <</if>> + <</if>> /*selling slaves that are done is always an option*/ + <br>You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 10 * menialSlaveCost(), $corpDivExtraSlaves -= 1, $menialDemandFactor -= 1, $corpRev += 10 * menialSlaveCost()]] + <<if $corpDivExtraSlaves >= 10>> + | [[Sell 10|Manage Corporation][$corpCash += 100 * menialSlaveCost(-10), $corpDivExtraSlaves -= 10, $menialDemandFactor -= 10, $corpRev += 100 * menialSlaveCost(-10)]] + <</if>> + <<if $corpDivExtraSlaves >= 100>> + | [[Sell 100|Manage Corporation][$corpCash += 1000 * menialSlaveCost(-100), $corpDivExtraSlaves -= 100, $menialDemandFactor -= 100, $corpRev += 1000 * menialSlaveCost(-100)]] + <</if>> + | [[Sell all|Manage Corporation][$corpCash += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves), $corpDivExtraSlaves = 0, $menialDemandFactor -= $corpDivExtraSlaves, $corpRev += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves)]] + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(20000)>>.@@ Downsizing recoups 80% of the investment. /*changing the division's size*/ + <br><<if $corpCash > 20000>> + [[Expand Division|Manage Corporation][$corpDivExtraDev += 1, $corpCash -= 20000, $corpAssetsDev += 20000]] + <</if>> + <<if $corpCash > 200000>> + | [[Expand x10|Manage Corporation][$corpDivExtraDev += 10, $corpCash -= 200000, $corpAssetsDev += 200000]] + <</if>> + <<if $corpDivExtraDev > 10>> + <<if $corpCash > 20000>> + | + <</if>> + [[Downsize Division|Manage Corporation][$corpDivExtraDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]] + <</if>> + <<if $corpDivExtraDev > 20>> + | [[Downsize x10|Manage Corporation][$corpDivExtraDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]] + <</if>> + <br>Rules: + <<if $corpDivArcade > 0>> /*setting auto move rules for the division*/ + <<if ndef $corpDivExtraToArcade>> + Do not auto send slaves to the arcade[[Auto Send|Manage Corporation][$corpDivExtraToArcade = 1]] + <<else>> + Auto send slaves to the arcade <<link "Stop Auto Send">><<unset $corpDivExtraToArcade>><<goto "Manage Corporation">><</link>> + <</if>> | + <</if>> + <<if $corpDivBreak > 0>> + <<if ndef $corpDivExtraToBreak>> + Do not auto send slaves to slave breaking [[Auto Send|Manage Corporation][$corpDivExtraToBreak = 1]] + <<else>> + Auto send slaves to slave breaking <<link "Stop Auto Send">><<unset $corpDivExtraToBreak>><<goto "Manage Corporation">><</link>> + <</if>> | + <</if>> + <<if ndef $corpDivExtraToMarket>> + Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivExtraToMarket = 1]] + <<else>> + Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivExtraToMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> /*killing the division*/ + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves) + $corpDivExtraDev * 16000, + $corpRev += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves), + $corpAssetsDev -= $corpDivExtraDev * 16000, + $corpExpandToken += 1 + $menialDemandFactor -= $corpDivExtraSlaves, + $corpDivExtra = 0, + $corpDivExtraDev = 0>> + <<unset $corpDivExtraSlaves>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <br> +<</if>> + +<<if $corpDivLegal == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivTrain > 0 || $corpDivMenial > 0 || $corpDivSurgery > 0>> + <<if $corpCash > 250000>> + <br>The corporation can expand by starting a legal enslavement division at a cost of @@.yelllowgreen;<<print cashFormat(250000)>>.@@ [[Add Division|Manage Corporation][$corpDivLegal = 1, $corpCash -= 250000, $corpDivLegalSlaves = 0, $corpDivLegalDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 250000]]<br> + <<else>> + <br>The corporation does not have the funds to add an extralegal enslavement division; @@.yellowgreen;<<print cashFormat(250000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivLegalCost = 12000 * $corpDivLegalDev + 6 * Math.pow($corpDivLegalDev, 2), + _corpDivLegalCostPU = Math.trunc(_corpDivLegalCost / $corpDivLegalDev), + _corpDivLegalRev = menialSlaveCost() * 15>> + <br>The corporation has a legal enslavement division. + <br>It averages @@.green;$corpDivLegalDev new slaves@@ each week. + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivLegalCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivLegalCostPU)>>@@ per slave. + <br>The slaves acquired can be sold for @@.yellowgreen;<<print cashFormat(_corpDivLegalRev)>>@@ each. + <<if $corpDivLegalSlaves > 0>> + <br>Currently the division is holding @@.green;<<if $corpDivLegalSlaves > 1>>$corpDivLegalSlaves slaves<<else>>one slave<</if>>.@@ + <<if _corpDivMenialSlavesRoom > 0>> + <br>You can send up to <<print _corpDivMenialSlavesRoom>> to the menial slave division. [[Send 1|Manage Corporation][$corpDivMenialSlaves += 1, $corpDivLegalSlaves -= 1]] + <<if $corpDivLegalSlaves >= 10 && _corpDivMenialSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivMenialSlaves += 10, $corpDivLegalSlaves -= 10]] + <</if>> + <<if $corpDivLegalSlaves >= _corpDivMenialSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivMenialSlaves += _corpDivMenialSlavesRoom, $corpDivLegalSlaves -= _corpDivMenialSlavesRoom]] + <</if>> + <</if>> + <<if $corpDivSurgery == 1>> + <<if _corpDivSurgerySlavesRoom > 0>> + <br>You can send up to <<print _corpDivSurgerySlavesRoom>> to the surgery division. [[Send 1|Manage Corporation][$corpDivSurgerySlaves += 1, $corpDivLegalSlaves -= 1]] + <<if $corpDivLegalSlaves >= 10 && _corpDivSurgerySlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivSurgerySlaves += 10, $corpDivLegalSlaves -= 10]] + <</if>> + <<if $corpDivLegalSlaves >= _corpDivSurgerySlavesRoom>> + | [[Fill|Manage Corporation][$corpDivSurgerySlaves += _corpDivSurgerySlavesRoom, $corpDivLegalSlaves -= _corpDivSurgerySlavesRoom]] + <</if>> + <</if>> + <<else>> + <<if _corpDivTrainSlavesRoom > 0>> + <br>You can send up to <<print _corpDivTrainSlavesRoom>> to the slave training division. [[Send 1|Manage Corporation][$corpDivTrainSlaves += 1, $corpDivLegalSlaves -= 1]] <<if $corpDivLegalSlaves >= 10 && _corpDivTrainSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivTrainSlaves += 10, $corpDivLegalSlaves -= 10]] + <</if>> + <<if $corpDivLegalSlaves >= _corpDivTrainSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivTrainSlaves += _corpDivTrainSlavesRoom, $corpDivLegalSlaves -= _corpDivTrainSlavesRoom]] + <</if>> + <</if>> + <</if>> + <br>You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 15 * menialSlaveCost(), $corpDivLegalSlaves -= 1, $menialDemandFactor -= 1, $corpRev += 15 * menialSlaveCost()]] + <<if $corpDivLegalSlaves >= 10>> + | [[Sell 10|Manage Corporation][$corpCash += 150 * menialSlaveCost(-10), $corpDivLegalSlaves -= 10, $menialDemandFactor -= 10, $corpRev += 150 * menialSlaveCost(-10)]] + <</if>> + <<if $corpDivLegalSlaves >= 100>> + | [[Sell 100|Manage Corporation][$corpCash += 1500 * menialSlaveCost(-100), $corpDivLegalSlaves -= 100, $menialDemandFactor -= 100, $corpRev += 1500 * menialSlaveCost(-100)]] + <</if>> + | [[Sell all|Manage Corporation][$corpCash += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves), $corpDivLegalSlaves = 0, $menialDemandFactor -= $corpDivLegalSlaves, $corpRev += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves)]] + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(25000)>>.@@ Downsizing recoups 80% of the investment. + <br><<if $corpCash > 25000>> + [[Expand Division|Manage Corporation][$corpDivLegalDev += 1, $corpCash -= 25000, $corpAssetsDev += 25000]] + <</if>> + <<if $corpCash > 250000>> + | [[Expand x10|Manage Corporation][$corpDivLegalDev += 10, $corpCash -= 250000, $corpAssetsDev += 250000]] + <</if>> + <<if $corpDivLegalDev > 10>> + <<if $corpCash > 25000>> + | + <</if>> + [[Downsize Division|Manage Corporation][$corpDivLegalDev -= 1, $corpCash += 20000, $corpAssetsDev -= 20000]] + <</if>> + <<if $corpDivLegalDev > 19>> + | [[Downsize x10|Manage Corporation][$corpDivLegalDev -= 10, $corpCash += 200000, $corpAssetsDev -= 200000]] + <</if>> + <br>Rules: + <<if $corpDivMenial > 0>> + <<if ndef $corpDivLegalToMenial>> + Do not auto send slaves to the menial services[[Auto Send|Manage Corporation][$corpDivLegalToMenial = 1]] + <<else>> + Auto send slaves to the menial services <<link "Stop Auto Send">><<unset $corpDivLegalToMenial>><<goto "Manage Corporation">><</link>> + <</if>> + | + <</if>> + <<if $corpDivSurgery > 0>> + <<if ndef $corpDivLegalToSurgery>> + Do not auto send slaves to undergo surgery [[Auto Send|Manage Corporation][$corpDivLegalToSurgery = 1]] + <<else>> + Auto send slaves to undergo surgery <<link "Stop Auto Send">><<unset $corpDivLegalToSurgery>><<goto "Manage Corporation">><</link>> + <</if>> + | + <<if def $corpDivLegalToTrain>> + <<unset $corpDivLegalToTrain>> + <</if>> + <<elseif $corpDivTrain > 0>> + <<if ndef $corpDivLegalToTrain>> + Do not auto send slaves to slave training [[Auto Send|Manage Corporation][$corpDivLegalToTrain = 1]] + <<else>> + Auto send slaves to slave training <<link "Stop Auto Send">><<unset $corpDivLegalToTrain>><<goto "Manage Corporation">><</link>> + <</if>> + | + <</if>> + <<if ndef $corpDivLegalToMarket>> + Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivLegalToMarket = 1]] + <<else>> + Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivLegalToMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves) + $corpDivLegalDev * 20000, + $menialDemandFactor -= $corpDivLegalSlaves, + $corpRev += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves), + $corpAssetsDev -= $corpDivLegalDev * 20000, + $corpExpandToken += 1, + $corpDivLegal = 0, + $corpDivLegalDev = 0>> + <<unset $corpDivLegalSlaves>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <br> +<</if>> + +<<if $corpDivBreak == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivTrain > 0 || $corpDivMenial > 0 || $corpDivSurgery > 0 || $corpDivExtra > 0>> + <<if $corpCash > 190000>> + <br>The corporation can expand by starting a slave breaking division at a cost of @@.yelllowgreen;<<print cashFormat(190000)>>.@@ [[Add Division|Manage Corporation][$corpDivBreak = 1, $corpCash -= 190000, $corpDivBreakSlaves = 10, $corpDivBreakSlaves2 = 0, $corpDivBreakDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsSlave += 100000, $corpAssetsDev += 90000]]<br> + <<else>> + <br>The corporation does not have the funds to add a slave breaking division; @@.yellowgreen;<<print cashFormat(190000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivBreakCost = 450 * $corpDivBreakSlaves + Math.trunc(0.6 * Math.pow($corpDivBreakDev, 2)), + _corpDivBreakCostPU = Math.trunc(_corpDivBreakCost / ($corpDivBreakSlaves * 0.3)), + _corpDivBreakRev = menialSlaveCost() * 15, + _corpDivBreakProc = Math.trunc($corpDivBreakDev * 0.3)>> + <br>The corporation has a slave breaking division. + <br>It can break an average of @@.green;<<print _corpDivBreakProc>> slaves@@ each week when filled to capacity ($corpDivBreakDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivBreakCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivBreakCostPU)>>@@ per slave broken. + <br>The broken slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivBreakRev)>>@@ each. + <<if $corpDivBreakSlaves > 0>> + <br>Currently the division is attempting to break <<if $corpDivBreakSlaves > 1>>@@.green;$corpDivBreakSlaves slaves.@@<<else>>@@.green;one slave.@@<</if>> + <<if $corpDivBreakSlaves < $corpDivBreakDev>> + <br>There is room to work on more slaves. + <<if $corpCash >= 10 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 10 * menialSlaveCost(), $corpDivBreakSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 10 * menialSlaveCost()]] + <<if $corpCash > 100 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 100 * menialSlaveCost(10), $corpDivBreakSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 100 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 10 * menialSlaveCost($corpDivBreakDev - $corpDivBreakSlaves) * ($corpDivBreakDev - $corpDivBreakSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 10 * menialSlaveCost($corpDivBreakDev - $corpDivBreakSlaves) * ($corpDivBreakDev - $corpDivBreakSlaves), $corpDivBreakSlaves = $corpDivBreakDev, $menialSupplyFactor -= $corpDivBreakDev - $corpDivBreakSlaves, $corpRev += 10 * menialSlaveCost($corpDivBreakDev - $corpDivBreakSlaves) * ($corpDivBreakDev - $corpDivBreakSlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <<if $corpDivBreakSlaves2 > 0>> + It also holds <<if $corpDivBreakSlaves2 > 1>>@@.green;$corpDivBreakSlaves2 broken slaves.@@<<else>>@@.green;one broken slave.@@<</if>> + <<if _corpDivMenialSlavesRoom > 0>> + <br>You can send up to <<print _corpDivMenialSlavesRoom>> to the menial slave division. [[Send 1|Manage Corporation][$corpDivMenialSlaves += 1, $corpDivBreakSlaves2 -= 1]] + <<if $corpDivBreakSlaves2 >= 10 && _corpDivMenialSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivMenialSlaves += 10, $corpDivBreakSlaves2 -= 10]] + <</if>> + <<if $corpDivBreakSlaves2 >= _corpDivMenialSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivMenialSlaves += _corpDivMenialSlavesRoom, $corpDivBreakSlaves2 -= _corpDivMenialSlavesRoom]] + <</if>> + <</if>> + <<if $corpDivSurgery == 1>> + <<if _corpDivSurgerySlavesRoom > 0>> + <br>You can send up to <<print _corpDivSurgerySlavesRoom>> to the surgery division. [[Send 1|Manage Corporation][$corpDivSurgerySlaves += 1, $corpDivBreakSlaves2 -= 1]] + <<if $corpDivBreakSlaves2 >= 10 && _corpDivSurgerySlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivSurgerySlaves += 10, $corpDivBreakSlaves2 -= 10]] + <</if>> + <<if $corpDivBreakSlaves2 >= _corpDivSurgerySlavesRoom>> + | [[Fill|Manage Corporation][$corpDivSurgerySlaves += _corpDivSurgerySlavesRoom, $corpDivBreakSlaves2 -= _corpDivSurgerySlavesRoom]] + <</if>> + <</if>> + <<else>> + <<if _corpDivTrainSlavesRoom > 0>> + <br>You can send up to <<print _corpDivTrainSlavesRoom>> to the slave training division. [[Send 1|Manage Corporation][$corpDivTrainSlaves += 1, $corpDivBreakSlaves2 -= 1]] <<if $corpDivBreakSlaves2 >= 10 && _corpDivTrainSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivTrainSlaves += 10, $corpDivBreakSlaves2 -= 10]] + <</if>> + <<if $corpDivBreakSlaves2 >= _corpDivTrainSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivTrainSlaves += _corpDivTrainSlavesRoom, $corpDivBreakSlaves2 -= _corpDivTrainSlavesRoom]] + <</if>> + <</if>> + <</if>> + <br>You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 15 * menialSlaveCost(), $corpDivBreakSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 15 * menialSlaveCost()]] + <<if $corpDivBreakSlaves2 >= 10>> + | [[Sell 10|Manage Corporation][$corpCash += 150 * menialSlaveCost(-10), $corpDivBreakSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 150 * menialSlaveCost(-10)]] + <</if>> + <<if $corpDivBreakSlaves2 >= 100>> + | [[Sell 100|Manage Corporation][$corpCash += 1500 * menialSlaveCost(-100), $corpDivBreakSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 1500 * menialSlaveCost(-100)]] + <</if>> + | [[Sell all|Manage Corporation][$corpCash += $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2), $corpDivBreakSlaves2 = 0, $menialDemandFactor -= $corpDivBreakSlaves2, $corpRev += $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2)]] + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(9000)>>.@@ Downsizing recoups 80% of the investment. + <br> + <<if $corpCash > 9000>> + [[Expand Division|Manage Corporation][$corpDivBreakDev += 1, $corpCash -= 9000, $corpAssetsDev += 9000]] + <</if>> + <<if $corpCash > 90000>> + | [[Expand x10|Manage Corporation][$corpDivBreakDev += 10, $corpCash -= 90000, $corpAssetsDev += 90000]] + <</if>> + <<if $corpDivBreakDev > 10>> + <<if $corpCash > 9000>> + | + <</if>> + <<if $corpDivBreakSlaves == $corpDivBreakDev>> /*This makes sure the division is not overcrowded after a downsize*/ + [[Downsize Division|Manage Corporation][$corpDivBreakDev -= 1, $corpCash += 7200 + Math.trunc(11.5 * menialSlaveCost()), $corpDivBreakSlaves -= 1, $corpAssetsDev -= 7200]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivBreakDev -= 1, $corpCash += 7200, $corpAssetsDev -= 7200]] + <</if>> + <</if>> + <<if $corpDivBreakDev > 20>> + <<if $corpDivBreakSlaves >= $corpDivBreakDev - 10>> + <<set _corpDivBreakSlavesSell = $corpDivBreakSlaves - ($corpDivBreakDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivBreakDev -= 10, $corpCash += 72000 + Math.trunc(11.5 * _corpDivBreakSlavesSell * menialSlaveCost()), $corpDivBreakSlaves -= $_corpDivBreakSlavesSell, $corpAssetsDev -= 72000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivBreakDev -= 10, $corpCash += 72000, $corpAssetsDev -= 72000]] + <</if>> + <</if>> + <br>Rules: + <<if $corpDivMenial > 0>> + <<if ndef $corpDivBreakToMenial>> + Do not auto send slaves to the menial services[[Auto Send|Manage Corporation][$corpDivBreakToMenial = 1]] + <<else>> + Auto send slaves to the menial services <<link "Stop Auto Send">><<unset $corpDivBreakToMenial>><<goto "Manage Corporation">><</link>> + <</if>> + | + <</if>> + <<if $corpDivSurgery > 0>> + <<if ndef $corpDivBreakToSurgery>> + Do not auto send slaves to undergo surgery [[Auto Send|Manage Corporation][$corpDivBreakToSurgery = 1]] + <<else>> + Auto send slaves to undergo surgery <<link "Stop Auto Send">><<unset $corpDivBreakToSurgery>><<goto "Manage Corporation">><</link>> + <</if>> + | + <<if ndef $corpDivBreakToTrain>> + <<unset $corpDivBreakToTrain>> + <</if>> + <<elseif $corpDivTrain > 0>> + <<if ndef $corpDivBreakToTrain>> + Do not auto send slaves to slave training [[Auto Send|Manage Corporation][$corpDivBreakToTrain = 1]] + <<else>> + Auto send slaves to slave training <<link "Stop Auto Send">><<unset $corpDivBreakToTrain>><<goto "Manage Corporation">><</link>> + <</if>> + | + <</if>> + <<if ndef $corpDivBreakToMarket>> + Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivBreakToMarket = 1]] + <<else>> + Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivBreakToMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if ndef $corpDivBreakFromMarket>> + <br>Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivBreakFromMarket = 1]] + <<else>> + <br>Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivBreakFromMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivBreakSlaves * 10 * menialSlaveCost(-$corpDivBreakSlaves) + $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2) + $corpDivBreakDev * 7200, + $corpAssetsDev -= $corpDivBreakDev * 7200, + $corpAssetsSlave -= $corpDivBreakSlaves * 10 * menialSlaveCost(-$corpDivBreakSlaves), + $corpRev += $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2), + $corpDivBreak = 0, + $corpDivBreakDev = 0, + $menialDemandFactor -= $corpDivBreakSlaves + $corpDivBreakSlaves2, + $corpExpandToken += 1>> + <<unset $corpDivBreakSlaves, + $corpDivBreakSlaves2>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <br> +<</if>> + +<<if $corpDivSurgery == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivTrain > 0 || $corpDivDairy > 0 || $corpDivBreak > 0 || $corpDivLegal > 0>> + <<if $corpCash > 350000>> + <br>The corporation can expand by starting a physical slave modification division at a cost of @@.yelllowgreen;<<print cashFormat(350000)>>.@@ [[Add Division|Manage Corporation][$corpDivSurgery = 1, $corpCash -= 350000, $corpDivSurgerySlaves = 10, $corpDivSurgerySlaves2 = 0, $corpDivSurgeryDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000, $corpAssetsSlave += 150000]]<br> + <<if $corpDivTrain == 1>> + <<set $corpDivTrainSurgerySwitch = 1, + $corpDivTrainSurgeryTimer = 0>> + <</if>> + <<else>> + <br>The corporation does not have the funds to add a physical slave modification division; @@.yellowgreen;<<print cashFormat(350000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivSurgeryCost = Math.trunc(2400 * $corpDivSurgerySlaves + Math.pow($corpDivSurgeryDev, 2)), + _corpDivSurgeryCostPU = Math.trunc(_corpDivSurgeryCost / ($corpDivSurgerySlaves * 0.5)), + _corpDivSurgeryRev = menialSlaveCost() * 23, + _corpDivSurgeryProc = Math.trunc($corpDivSurgeryDev * 0.5)>> + <br>The corporation has a pysical slave modification division. + <br>It can modify an average of @@.green;<<print _corpDivSurgeryProc>> slaves@@ each week when filled to capacity ($corpDivSurgeryDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivSurgeryCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivSurgeryCostPU)>>@@ per slave. + <br>The improved slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivSurgeryRev)>>@@ each. + <<if $corpDivSurgerySlaves > 0>> + <br>Currently the division is working on + <<if $corpDivSurgerySlaves > 1>> + @@.green;$corpDivSurgerySlaves slaves.@@ + <<else>> + @@.green;one slave.@@ + <</if>> + <<if $corpDivSurgerySlaves < $corpDivSurgeryDev>> + <br>There is room to work on more slaves. + <<if $corpCash >= 15 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 15 * menialSlaveCost(), $corpDivSurgerySlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 15 * menialSlaveCost()]] + <<if $corpCash > 150 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 150 * menialSlaveCost(10), $corpDivSurgerySlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 150 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 15 * menialSlaveCost($corpDivSurgeryDev - $corpDivSurgerySlaves) * ($corpDivSurgeryDev - $corpDivSurgerySlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 15 * menialSlaveCost($corpDivSurgeryDev - $corpDivSurgerySlaves) * ($corpDivSurgeryDev - $corpDivSurgerySlaves), $corpDivSurgerySlaves = $corpDivSurgeryDev, $menialSupplyFactor -= $corpDivSurgeryDev - $corpDivSurgerySlaves, $corpAssetsSlave += 15 * menialSlaveCost($corpDivSurgeryDev - $corpDivSurgerySlaves) * ($corpDivSurgeryDev - $corpDivSurgerySlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <<if $corpDivSurgerySlaves2 > 0>> + It also holds + <<if $corpDivSurgerySlaves2 > 1>> + @@.green;$corpDivSurgerySlaves2 improved slaves.@@ + <<else>> + @@.green;one improved slave.@@ + <</if>> + <<if _corpDivDairySlavesRoom > 0>> + <br>You can send up to <<print _corpDivDairySlavesRoom>> to the dairy division. [[Send 1|Manage Corporation][$corpDivDairySlaves += 1, $corpDivSurgerySlaves2 -= 1]] + <<if $corpDivSurgerySlaves2 >= 10 && _corpDivDairySlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivDairySlaves += 10, $corpDivSurgerySlaves2 -= 10]] + <</if>> + <<if $corpDivSurgerySlaves2 >= _corpDivDairySlavesRoom>> + | [[Fill|Manage Corporation][$corpDivDairySlaves += _corpDivDairySlavesRoom, $corpDivSurgerySlaves2 -= _corpDivDairySlavesRoom]] + <</if>> + <</if>> + <<if _corpDivTrainSlavesRoom > 0>> + <br>You can send up to <<print _corpDivTrainSlavesRoom>> to the slave training division. [[Send 1|Manage Corporation][$corpDivTrainSlaves += 1, $corpDivSurgerySlaves2 -= 1]] + <<if $corpDivSurgerySlaves2 >= 10 && _corpDivTrainSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivTrainSlaves += 10, $corpDivSurgerySlaves2 -= 10]] + <</if>> + <<if $corpDivSurgerySlaves2 >= _corpDivTrainSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivTrainSlaves += _corpDivTrainSlavesRoom, $corpDivSurgerySlaves2 -= _corpDivTrainSlavesRoom]] + <</if>> + <</if>> + <br>You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 23 * menialSlaveCost(), $corpDivSurgerySlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 23 * menialSlaveCost()]] + <<if $corpDivSurgerySlaves2 >= 10>> + | [[Sell 10|Manage Corporation][$corpCash += 230 * menialSlaveCost(-10), $corpDivSurgerySlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 230 * menialSlaveCost(-10)]] + <</if>> + <<if $corpDivSurgerySlaves2 >= 100>> + | [[Sell 100|Manage Corporation][$corpCash += 2300 * menialSlaveCost(-100), $corpDivSurgerySlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 2300 * menialSlaveCost(-100)]] + <</if>> + | [[Sell all|Manage Corporation][$corpCash += $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2), $corpDivSurgerySlaves2 = 0, $menialDemandFactor -= $corpDivSurgerySlaves2, $corpRev += $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2)]] + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(20000)>>.@@ Downsizing recoups 80% of the investment. + <br> + <<if $corpCash > 20000>> + [[Expand Division|Manage Corporation][$corpDivSurgeryDev += 1, $corpCash -= 20000, $corpAssetsDev += 20000]] + <</if>> + <<if $corpCash > 200000>> + | [[Expand x10|Manage Corporation][$corpDivSurgeryDev += 10, $corpCash -= 200000, $corpAssetsDev += 200000]] + <</if>> + <<if $corpDivSurgeryDev > 10>> + <<if $corpCash > 20000>> + | + <</if>> + <<if $corpDivSurgerySlaves == $corpDivSurgeryDev>> + [[Downsize Division|Manage Corporation][$corpDivSurgeryDev -= 1, $corpCash += 16000 + 15 * menialSlaveCost(), $corpDivSurgerySlaves -= 1, $corpAssetsDev -= 16000]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivSurgeryDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]] + <</if>> + <</if>> + <<if $corpDivSurgeryDev > 20>> + <<if $corpDivSurgerySlaves >= $corpDivSurgeryDev - 10>> + <<set _corpDivSurgerySlavesSell = $corpDivSurgerySlaves - ($corpDivSurgeryDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivSurgeryDev -= 10, $corpCash += 160000 + 15 * _corpDivSurgerySlavesSell * menialSlaveCost(), $corpDivSurgerySlaves -= $_corpDivSurgerySlavesSell, $corpAssetsDev -= 160000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivSurgeryDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]] + <</if>> + <</if>> + <br>Rules: + <<if $corpDivDairy > 0>> + <<if ndef $corpDivSurgeryToDairy>> + Do not auto send slaves to the dairy [[Auto Send|Manage Corporation][$corpDivSurgeryToDairy = 1]] + <<else>> + Auto send slaves to the dairy <<link "Stop Auto Send">><<unset $corpDivSurgeryToDairy>><<goto "Manage Corporation">><</link>> + <</if>> + | + <</if>> + <<if $corpDivTrain > 0>> + <<if ndef $corpDivSurgeryToTrain>> + Do not auto send slaves to slave training [[Auto Send|Manage Corporation][$corpDivSurgeryToTrain = 1]] + <<else>> + Auto send slaves to slave training <<link "Stop Auto Send">><<unset $corpDivSurgeryToTrain>><<goto "Manage Corporation">><</link>> + <</if>> + | + <</if>> + <<if ndef $corpDivSurgeryToMarket>> + Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivSurgeryToMarket = 1]] + <<else>> + Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivSurgeryToMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if ndef $corpDivSurgeryFromMarket>> + <br>Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivSurgeryFromMarket = 1]] + <<else>> + <br>Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivSurgeryFromMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivSurgerySlaves * 15 * menialSlaveCost(-$corpDivSurgerySlaves) + $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2) + $corpDivSurgeryDev * 20000, + $corpRev += $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2), + $corpAssetsSlave -= $corpDivSurgerySlaves * 15 * menialSlaveCost(-$corpDivSurgerySlaves), + $corpAssetsDev -= $corpDivSurgeryDev * 20000, + $corpDivSurgery = 0, + $corpDivSurgeryDev = 0, + $menialDemandFactor -= $corpDivSurgerySlaves + $corpDivSurgerySlaves2, + $corpExpandToken += 1>> + <<unset $corpDivSurgerySlaves, + $corpDivSurgerySlaves2>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <br> +<</if>> + +<<if $corpDivTrain == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivLegal > 0 || $corpDivWhore > 0 || $corpDivSurgery > 0 || $corpDivBreak > 0>> + <<if $corpDivSurgery == 1>> + <<if $corpCash > 480000>> + <br>The corporation can expand by starting a slave training division at a cost of @@.yelllowgreen;<<print cashFormat(480000)>>.@@ [[Add Division|Manage Corporation][$corpDivTrain = 1, $corpCash -= 480000, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainDev = 10, $corpDiv += 1, $corpExpandToken -=1, $corpAssetsDev += 250000, $corpAssetsSlave += 230000]]<br> + <<else>> + <br>The corporation does not have the funds to add a slave training division; @@.yellowgreen;<<print cashFormat(480000)>>@@ required.<br> + <</if>> + <<elseif $corpCash > 400000>> + <br>The corporation can expand by starting a slave training division at a cost of @@.yelllowgreen;<<print cashFormat(400000)>>.@@ [[Add Division|Manage Corporation][$corpDivTrain = 1, $corpCash -= 400000, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainDev = 10, $corpDiv += 1, $corpExpandToken -=1, $corpAssetsDev += 250000, $corpAssetsSlave += 150000]]<br> + <<else>> + <br>The corporation does not have the funds to add a slave training division; @@.yellowgreen;<<print cashFormat(400000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>> + <<set _corpDivTrainCost = Math.trunc(700 * $corpDivTrainSlaves + Math.pow($corpDivTrainDev, 2)), + _corpDivTrainCostPU = Math.trunc(_corpDivTrainCost / ($corpDivTrainSlaves * 0.2)), + _corpDivTrainRev = menialSlaveCost() * 26, + _corpDivTrainProc = Math.trunc($corpDivTrainDev * 0.2)>> + <br>The corporation has a slave training division. + <br>It can train an average of @@.green;<<print _corpDivTrainProc>> slaves@@ each week when filled to capacity ($corpDivTrainDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivTrainCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivTrainCostPU)>>@@ per slave. + <br>The trained slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>@@ each. + <<if $corpDivTrainSlaves > 0>> + <br>Currently the division is training + <<if $corpDivTrainSlaves > 1>> + @@.green;$corpDivTrainSlaves slaves.@@ + <<else>> + @@.green;one slave.@@ + <</if>> + <<if $corpDivTrainSlaves < $corpDivTrainDev>> + <br>There is room to train more slaves. + <<if $corpCash >= 15 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 15 * menialSlaveCost(), $corpDivTrainSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 15 * menialSlaveCost()]] + <<if $corpCash > 150 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 150 * menialSlaveCost(10), $corpDivTrainSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 150 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 15 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 15 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves), $corpDivTrainSlaves = $corpDivTrainDev, $menialSupplyFactor -= $corpDivTrainDev - $corpDivTrainSlaves, $corpAssetsSlave += 15 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 5>> + <<set _corpDivTrainCost = Math.trunc(700 * $corpDivTrainSlaves + Math.pow($corpDivTrainDev, 2)), + _corpDivTrainCostPU = Math.trunc(_corpDivTrainCost / ($corpDivTrainSlaves * 0.2)), + _corpDivTrainRev = Math.trunc(menialSlaveCost() * (26 + $corpDivTrainSurgeryTimer * 1.6)), + _corpDivTrainProc = Math.trunc($corpDivTrainDev * 0.2)>> + <br>The corporation has a slave training division. + <br>It can train an average of @@.green;<<print _corpDivTrainProc>> slaves@@ each week when filled to capacity ($corpDivTrainDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivTrainCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivTrainCostPU)>>@@ per slave. + <br>The trained slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>@@ each. + <<if $corpDivTrainSlaves > 0>> + <br>Currently the division is training + <<if $corpDivTrainSlaves > 1>> + @@.green;$corpDivTrainSlaves slaves.@@ + <<else>> + @@.green;one slave.@@ + <</if>> + <<if $corpDivTrainSlaves < $corpDivTrainDev>> + <br>There is room to train more slaves. + <<if $corpCash >= 23 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 23 * menialSlaveCost(), $corpDivTrainSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 23 * menialSlaveCost()]] + <<if $corpCash > 230 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 230 * menialSlaveCost(10), $corpDivTrainSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 230 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves), $corpDivTrainSlaves = $corpDivTrainDev, $menialSupplyFactor -= $corpDivTrainDev - $corpDivTrainSlaves, $corpAssetsSlave += 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <<else>> + <<set _corpDivTrainCost = Math.trunc(700 * $corpDivTrainSlaves + Math.pow($corpDivTrainDev, 2)), + _corpDivTrainCostPU = Math.trunc(_corpDivTrainCost / ($corpDivTrainSlaves * 0.2)), + _corpDivTrainRev = menialSlaveCost() * 34, + _corpDivTrainProc = Math.trunc($corpDivTrainDev * 0.2)>> + <br>The corporation has a slave training division. + <br>It can train an average of @@.green;<<print _corpDivTrainProc>> slaves@@ each week when filled to capacity ($corpDivTrainDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivTrainCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivTrainCostPU)>>@@ per slave. + <br>The trained slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>@@ each. + <<if $corpDivTrainSlaves > 0>> + <br>Currently the division is training + <<if $corpDivTrainSlaves > 1>> + @@.green;$corpDivTrainSlaves slaves.@@ + <<else>> + @@.green;one slave.@@ + <</if>> + <<if $corpDivTrainSlaves < $corpDivTrainDev>> + <br>There is room to train more slaves. + <<if $corpCash >= 23 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 23 * menialSlaveCost(), $corpDivTrainSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 23 * menialSlaveCost()]] + <<if $corpCash > 230 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 230 * menialSlaveCost(10), $corpDivTrainSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 230 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves), $corpDivTrainSlaves = $corpDivTrainDev, $menialSupplyFactor -= $corpDivTrainDev - $corpDivTrainSlaves, $corpAssetsSlave += 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <</if>> + <<if $corpDivTrainSlaves2 > 0>> + It also holds + <<if $corpDivTrainSlaves2 > 1>> + @@.green;$corpDivTrainSlaves2 trained slaves.@@ + <<else>> + @@.green;one trained slave.@@ + <</if>> + <<if _corpDivWhoreSlavesRoom > 0>> + <br>You can send up to <<print _corpDivWhoreSlavesRoom>> to the escort division. [[Send 1|Manage Corporation][$corpDivDairySlaves += 1, $corpDivTrainSlaves2 -= 1]] + <<if $corpDivTrainSlaves2 >= 10 && _corpDivWhoreSlavesRoom >= 10>> + | [[Send 10|Manage Corporation][$corpDivWhoreSlaves += 10, $corpDivTrainSlaves2 -= 10]] + <</if>> + <<if $corpDivTrainSlaves2 >= _corpDivWhoreSlavesRoom>> + | [[Fill|Manage Corporation][$corpDivWhoreSlaves += _corpDivWhoreSlavesRoom, $corpDivTrainSlaves2 -= _corpDivWhoreSlavesRoom]] + <</if>> + <</if>> + <<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>> + <br>You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 26 * menialSlaveCost(), $corpDivTrainSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 26 * menialSlaveCost()]] + <<if $corpDivTrainSlaves2 >= 10>> + | [[Sell 10|Manage Corporation][$corpCash += 260 * menialSlaveCost(-10), $corpDivTrainSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 260 * menialSlaveCost(-10)]] + <</if>> + <<if $corpDivTrainSlaves2 >= 100>> + | [[Sell 100|Manage Corporation][$corpCash += 2600 * menialSlaveCost(-100), $corpDivTrainSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 2600 * menialSlaveCost(-100)]] + <</if>> + | [[Sell all|Manage Corporation][$corpCash += $corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2), $corpDivTrainSlaves2 = 0, $menialDemandFactor -= $corpDivTrainSlaves2, $corpRev += $corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2)]] + <<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 5>> + <br>You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += Math.trunc((26 + $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost()), $corpDivTrainSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += Math.trunc((26 + $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost())]] + <<if $corpDivTrainSlaves2 >= 10>> + | [[Sell 10|Manage Corporation][$corpCash += Math.trunc((26 + $corpDivTrainSurgeryTimer * 1.6) * 10 * menialSlaveCost(-10)), $corpDivTrainSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += Math.trunc((26 + $corpDivTrainSurgeryTimer * 1.6) * 10 * menialSlaveCost())]] + <</if>> + <<if $corpDivTrainSlaves2 >= 100>> + | [[Sell 100|Manage Corporation][$corpCash += Math.trunc((26 + $corpDivTrainSurgeryTimer * 1.6) * 100 * menialSlaveCost(-100)), $corpDivTrainSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += Math.trunc((26 + $corpDivTrainSurgeryTimer * 1.6) * 100 * menialSlaveCost())]] + <</if>> + | [[Sell all|Manage Corporation][$corpCash += Math.trunc($corpDivTrainSlaves2 * (26 + $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost(-$corpDivTrainSlaves2)), $corpDivTrainSlaves2 = 0, $menialDemandFactor -= $corpDivTrainSlaves2, $corpRev += Math.trunc($corpDivTrainSlaves2 * (26 + $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost(-$corpDivTrainSlaves2))]] + <<else>> + <br>You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 34 * menialSlaveCost(), $corpDivTrainSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 34 * menialSlaveCost()]] + <<if $corpDivTrainSlaves2 >= 10>> + | [[Sell 10|Manage Corporation][$corpCash += 340 * menialSlaveCost(-10), $corpDivTrainSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 340 * menialSlaveCost(-10)]] + <</if>> + <<if $corpDivTrainSlaves2 >= 100>> + | [[Sell 100|Manage Corporation][$corpCash += 3400 * menialSlaveCost(-100), $corpDivTrainSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 3400 * menialSlaveCost(-100)]] + <</if>> + | [[Sell all|Manage Corporation][$corpCash += $corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2), $corpDivTrainSlaves2 = 0, $menialDemandFactor -= $corpDivTrainSlaves2, $corpRev += $corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2)]] + <</if>> + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(25000)>>.@@ Downsizing recoups 80% of the investment. + <br> + <<if $corpCash > 25000>> + [[Expand Division|Manage Corporation][$corpDivTrainDev += 1, $corpCash -= 25000, $corpAssetsDev += 25000]] + <</if>> + <<if $corpCash > 250000>> + | [[Expand x10|Manage Corporation][$corpDivTrainDev += 10, $corpCash -= 250000, $corpAssetsDev += 250000]] + <</if>> + <<if $corpDivTrainSurgeryTimer < 5 || $corpDivSurgery == 0>> + <<if $corpCash > 25000 && $corpDivTrainDev > 10>> + | + <</if>> + <<if $corpDivTrainDev > 10>> + <<if $corpDivTrainSlaves == $corpDivTrainDev>> + [[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000 + 15 * menialSlaveCost(), $corpDivTrainSlaves -= 1, $corpAssetsDev -= 20000]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000, $corpAssetsDev -= 200000]] + <</if>> + <</if>> + <<if $corpDivTrainDev > 20>> + <<if $corpDivTrainSlaves >= $corpDivTrainDev - 10>> + <<set _corpDivTrainSlavesSell = $corpDivTrainSlaves - ($corpDivTrainDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000 + 15 * _corpDivTrainSlavesSell * menialSlaveCost(), $corpDivTrainSlaves -= _corpDivTrainSlavesSell, $corpAssetsDev -= 200000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000, $corpAssetsDev -= 200000]] + <</if>> + <</if>> + <<else>> + <<if $corpCash > 25000 && $corpDivTrainDev > 10>> + | + <</if>> + <<if $corpDivTrainDev > 10>> + <<if $corpDivTrainSlaves == $corpDivTrainDev>> + [[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000 + 23 * menialSlaveCost(), $corpDivTrainSlaves -= 1, $corpAssetsDev -= 20000]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000, $corpAssetsDev -= 20000]] + <</if>> + <</if>> + <<if $corpDivTrainDev > 20>> + <<if $corpDivTrainSlaves >= $corpDivTrainDev - 10>> + <<set _corpDivTrainSlavesSell = $corpDivTrainSlaves - ($corpDivTrainDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000 + 23 * _corpDivTrainSlavesSell * menialSlaveCost(), $corpDivTrainSlaves -= _corpDivTrainSlavesSell, $corpAssetsDev -= 200000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000, $corpAssetsDev -= 200000]] + <</if>> + <</if>> + <</if>> + <br>Rules: + <<if $corpDivWhore > 0>> + <<if ndef $corpDivTrainToWhore>> + Do not auto send slaves to the escort services [[Auto Send|Manage Corporation][$corpDivTrainToWhore = 1]] + <<else>> + Auto send slaves to the escort services <<link "Stop Auto Send">><<unset $corpDivTrainToWhore>><<goto "Manage Corporation">><</link>> + <</if>> + | + <</if>> + <<if ndef $corpDivTrainToMarket>> + Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivTrainToMarket = 1]] + <<else>> + Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivTrainToMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if ndef $corpDivTrainFromMarket>> + <br>Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivTrainFromMarket = 1]] + <<else>> + <br>Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivTrainFromMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <<if ndef $corpDivTrainSurgeryTimer || $corpDivTrainSurgeryTimer < 5 || $corpDivSurgery == 0>> /*not worth it to have the in between option here too*/ + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivTrainSlaves * 15 * menialSlaveCost(-$corpDivTrainSlaves) + Math.trunc($corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2)) + $corpDivTrainDev * 20000, + $corpAssetsDev -= $corpDivTrainDev * 20000, + $corpAssetsSlave -= $corpDivTrainSlaves * 15 * menialSlaveCost(-$corpDivTrainSlaves), + $corpRev += Math.trunc($corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2)), + $corpDivTrain = 0, + $corpDivTrainDev = 0, + $menialDemandFactor -= $corpDivTrainSlaves + $corpDivTrainSlaves2, + $corpExpandToken += 1>> + <<unset $corpDivTrainSlaves, + $corpDivTrainSlaves2>> + <<goto "Manage Corporation">> + <</link>> + <<else>> + <<link "Dissolve">> + <<set $corpCash += $corpDivTrainSlaves * 23 * menialSlaveCost(-$corpDivTrainSlaves) + Math.trunc($corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2)) + $corpDivTrainDev * 20000, + $corpAssetsDev -= $corpDivTrainDev * 20000, + $corpAssetsSlave -= $corpDivTrainSlaves * 23 * menialSlaveCost(-$corpDivTrainSlaves), + $corpRev += Math.trunc($corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2)), + $corpDivTrain = 0, + $corpDivTrainDev = 0, + $menialDemandFactor -= $corpDivTrainSlaves + $corpDivTrainSlaves2, + $corpExpandToken += 1>> + <<unset $corpDivTrainSlaves, + $corpDivTrainSlaves2>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <</if>> + <br> +<</if>> + +<<if $corpDivArcade == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivExtra > 0>> + <<if $corpCash > 300000>> + <br>The corporation can expand by starting a sex arcade division at a cost of @@.yelllowgreen;<<print cashFormat(300000)>>.@@ [[Add Division|Manage Corporation][$corpDivArcade = 1, $corpCash -= 300000, $corpDivArcadeSlaves = 20, $corpDivArcadeDev = 20, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 100000, $corpAssetsSlave += 200000]]<br> + <<else>> + <br>The corporation does not have the funds to add a sex arcade division; @@.yellowgreen;<<print cashFormat(300000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivArcadeCost = Math.trunc(200 * $corpDivArcadeSlaves + 0.125 * Math.pow($corpDivArcadeDev, 2)), + _corpDivArcadeCostPU = Math.trunc(_corpDivArcadeCost / ($corpDivArcadeSlaves)), + _corpDivArcadeRev = 1000, + _corpDivArcadeProc = Math.trunc($corpDivArcadeDev * 0.05)>> + <br>The corporation has a sex arcade division. + <br>It has to replace approximately + <<if _corpDivArcadeProc > 1>> + @@.red;<<print _corpDivArcadeProc>> slaves@@ + <<else>> + @@.red;less than one slave@@ + <</if>> + each week when filled to capacity ($corpDivArcadeDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivArcadeCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivArcadeCostPU)>>@@ per slave. + <br>The arcade generates on average @@.yellowgreen;<<print cashFormat(_corpDivArcadeRev)>>@@ per slave. + <<if $corpDivArcadeSlaves > 0>> + <br>Currently the division is exploiting + <<if $corpDivArcadeSlaves > 1>> + @@.green;$corpDivArcadeSlaves slaves.@@ + <<else>> + @@.green;one slave.@@ + <</if>> + <<if $corpDivArcadeSlaves < $corpDivArcadeDev>> + <br>There is room to exploit more slaves. + <<if $corpCash >= 10 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 10 * menialSlaveCost(), $corpDivArcadeSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 10 * menialSlaveCost()]] + <<if $corpCash > 100 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 100 * menialSlaveCost(10), $corpDivArcadeSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 100 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 10 * menialSlaveCost($corpDivArcadeDev - $corpDivArcadeSlaves) * ($corpDivArcadeDev - $corpDivArcadeSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 10 * menialSlaveCost($corpDivArcadeDev - $corpDivArcadeSlaves) * ($corpDivArcadeDev - $corpDivArcadeSlaves), $corpDivArcadeSlaves = $corpDivArcadeDev, $menialSupplyFactor -= $corpDivArcadeDev - $corpDivArcadeSlaves, $corpAssetsSlave += 10 * menialSlaveCost($corpDivArcadeDev - $corpDivArcadeSlaves) * ($corpDivArcadeDev - $corpDivArcadeSlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(5000)>>.@@ Downsizing recoups 80% of the investment. + <br><<if $corpCash > 5000>> + [[Expand Division|Manage Corporation][$corpDivArcadeDev += 1, $corpCash -= 5000, $corpAssetsDev += 5000]] + <</if>> + <<if $corpCash > 50000>> + | [[Expand x10|Manage Corporation][$corpDivArcadeDev += 10, $corpCash -= 50000, $corpAssetsDev += 50000]] + <</if>> + <<if $corpDivArcadeDev > 20>> + <<if $corpCash > 5000>> + | + <</if>> + <<if $corpDivArcadeSlaves == $corpDivArcadeDev>> + [[Downsize Division|Manage Corporation][$corpDivArcadeDev -= 1, $corpCash += 4000 + 10 * menialSlaveCost(), $corpDivArcadeSlaves -= 1, $corpAssetsDev -= 4000]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivArcadeDev -= 1, $corpCash += 4000, $corpAssetsDev -= 4000]] + <</if>> + <</if>> + <<if $corpDivArcadeDev > 30>> + <<if $corpDivArcadeSlaves >= $corpDivArcadeDev - 10>> + <<set _corpDivArcadeSlavesSell = $corpDivArcadeSlaves - ($corpDivArcadeDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivArcadeDev -= 10, $corpCash += 40000 + 10 * _corpDivArcadeSlavesSell * menialSlaveCost(), $corpDivArcadeSlaves -= $_corpDivArcadeSlavesSell, $corpAssetsDev -= 40000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivArcadeDev -= 10, $corpCash += 40000, $corpAssetsDev -= 40000]] + <</if>> + <</if>> + <br>Rules: + <<if ndef $corpDivArcadeFromMarket>> + Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivArcadeFromMarket = 1]] + <<else>> + Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivArcadeFromMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivArcadeSlaves * 10 * menialSlaveCost(-$corpDivArcadeSlaves) + $corpDivArcadeDev * 4000, + $corpDivArcade = 0, + $corpAssetsSlave -= $corpDivArcadeSlaves * 10 * menialSlaveCost(-$corpDivArcadeSlaves), + $corpAssetsDev -= $corpDivArcadeDev * 4000, + $corpDivArcadeDev = 0, + $menialDemandFactor -= $corpDivArcadeSlaves, + $corpExpandToken += 1>> + <<unset $corpDivArcadeSlaves>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <br> +<</if>> + +<<if $corpDivMenial == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivLegal > 0 || $corpDivBreak > 0>> + <<if $corpCash > 430000>> + <br>The corporation can expand by starting a menial services division at a cost of @@.yelllowgreen;<<print cashFormat(430000)>>.@@ [[Add Division|Manage Corporation][$corpDivMenial = 1, $corpCash -= 430000, $corpDivMenialSlaves = 20, $corpDivMenialDev = 20, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsSlave += 300000, $corpAssetsDev += 130000]]<br> + <<else>> + <br>The corporation does not have the funds to add a menial services division; @@.yellowgreen;<<print cashFormat(430000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivMenialCost = Math.trunc(200 * $corpDivMenialSlaves + 0.1 * Math.pow($corpDivMenialDev, 2)), + _corpDivMenialCostPU = Math.trunc(_corpDivMenialCost / ($corpDivMenialSlaves)), + _corpDivMenialRev = 1250, + _corpDivMenialProc = Math.trunc($corpDivMenialDev * 0.05)>> + <br>The corporation has a menial services division. + <br>It has to replace approximately <<if _corpDivMenialProc > 1>>@@.red;<<print _corpDivMenialProc>> slaves@@<<else>>@@.red;less than one slave@@<</if>> each week when operating at capacity ($corpDivMenialDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivMenialCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivMenialCostPU)>>@@ per slave. + <br>The menial services generate @@.yellowgreen;<<print cashFormat(_corpDivMenialRev)>>@@ per slave on average. + <<if $corpDivMenialSlaves > 0>> + <br>Currently the division is exploiting <<if $corpDivMenialSlaves > 1>>@@.green;$corpDivMenialSlaves slaves.@@<<else>>@@.green;one slave.@@<</if>> + <<if $corpDivMenialSlaves < $corpDivMenialDev>> + <br>There is room to exploit more slaves. + <<if $corpCash >= 15 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 15 * menialSlaveCost(), $corpDivMenialSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 15 * menialSlaveCost()]] + <<if $corpCash > 150 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 150 * menialSlaveCost(10), $corpDivMenialSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 150 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 15 * menialSlaveCost($corpDivMenialDev - $corpDivMenialSlaves) * ($corpDivMenialDev - $corpDivMenialSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 15 * menialSlaveCost($corpDivMenialDev - $corpDivMenialSlaves) * ($corpDivMenialDev - $corpDivMenialSlaves), $corpDivMenialSlaves = $corpDivMenialDev, $menialSupplyFactor -= $corpDivMenialDev - $corpDivMenialSlaves, $corpAssetsSlave += 15 * menialSlaveCost($corpDivMenialDev - $corpDivMenialSlaves) * ($corpDivMenialDev - $corpDivMenialSlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(6500)>>.@@ Downsizing recoups 80% of the investment. + <br><<if $corpCash > 6500>> + [[Expand Division|Manage Corporation][$corpDivMenialDev += 1, $corpCash -= 6500, $corpAssetsDev += 6500]] + <</if>> + <<if $corpCash > 65000>> + | [[Expand x10|Manage Corporation][$corpDivMenialDev += 10, $corpCash -= 65000, $corpAssetsDev += 65000]] + <</if>> + <<if $corpDivMenialDev > 20>> + <<if $corpCash > 6500>> + | + <</if>> + <<if $corpDivMenialSlaves == $corpDivMenialDev>> + [[Downsize Division|Manage Corporation][$corpDivMenialDev -= 1, $corpCash += 5200 + 15 * menialSlaveCost(), $corpDivMenialSlaves -= 1, $corpAssetsDev -= 5200]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivMenialDev -= 1, $corpCash += 5200, $corpAssetsDev -= 5200]] + <</if>> + <</if>> + <<if $corpDivMenialDev > 30>> + <<if $corpDivMenialSlaves >= $corpDivMenialDev - 10>> + <<set _corpDivMenialSlavesSell = $corpDivMenialSlaves - ($corpDivMenialDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivMenialDev -= 10, $corpCash += 52000 + 15 * _corpDivMenialSlavesSell * menialSlaveCost(), $corpDivMenialSlaves -= $_corpDivMenialSlavesSell, $corpAssetsDev -= 52000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivMenialDev -= 10, $corpCash += 52000, $corpAssetsDev -= 52000]] + <</if>> + <</if>> + <br>Rules: + <<if ndef $corpDivMenialFromMarket>> + Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivMenialFromMarket = 1]] + <<else>> + Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivMenialFromMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivMenialSlaves * 15 * menialSlaveCost(-$corpDivMenialSlaves) + $corpDivMenialDev * 5200, + $corpAssetsDev -= $corpDivMenialDev * 5200, + $corpAssetsSlave -= $corpDivMenialSlaves * 15 * menialSlaveCost(-$corpDivMenialSlaves), + $corpDivMenial = 0, + $corpDivMenialDev = 0, + $menialDemandFactor -= $corpDivMenialSlaves, + $corpExpandToken += 1>> + <<unset $corpDivMenialSlaves>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <br> +<</if>> + +<<if $corpDivDairy == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivSurgery > 0>> + <<if $corpCash > 430000>> + <br>The corporation can expand by starting a dairy division at a cost of @@.yelllowgreen;<<print cashFormat(430000)>>.@@ [[Add Division|Manage Corporation][$corpDivDairy = 1, $corpCash -= 430000, $corpDivDairySlaves = 10, $corpDivDairyDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsSlave += 230000, $corpAssetsDev += 200000]]<br> + <<else>> + <br>The corporation does not have the funds to add a dairy division; @@.yellowgreen;<<print cashFormat(430000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivDairyCost = Math.trunc(850 * $corpDivDairySlaves + 0.4 * Math.pow($corpDivDairyDev, 2)), + _corpDivDairyCostPU = Math.trunc(_corpDivDairyCost / ($corpDivDairySlaves)), + _corpDivDairyRev = 3000, + _corpDivDairyProc = Math.trunc($corpDivDairyDev * 0.05)>> + <br>The corporation has a dairy division. + <br>It has to replace approximately <<if _corpDivDairyProc > 1>>@@.red;<<print _corpDivDairyProc>> slaves@@<<else>>@@.red;less than one slave@@<</if>> each week when operating at capacity ($corpDivDairyDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivDairyCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivDairyCostPU)>>@@ per slave. + <br>The dairy generates @@.yellowgreen;<<print cashFormat(_corpDivDairyRev)>>@@ per slave on average. + <<if $corpDivDairySlaves > 0>> + <br>Currently the division is milking <<if $corpDivDairySlaves > 1>>@@.green;$corpDivDairySlaves slaves.@@<<else>>@@.green;one slave.@@<</if>> + <<if $corpDivDairySlaves < $corpDivDairyDev>> + <br>there is room to milk more slaves. + <<if $corpCash >= 23 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 23 * menialSlaveCost(), $corpDivDairySlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 23 * menialSlaveCost()]] + <<if $corpCash > 230 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 230 * menialSlaveCost(10), $corpDivDairySlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 230 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 23 * menialSlaveCost($corpDivDairyDev - $corpDivDairySlaves) * ($corpDivDairyDev - $corpDivDairySlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 23 * menialSlaveCost($corpDivDairyDev - $corpDivDairySlaves) * ($corpDivDairyDev - $corpDivDairySlaves), $corpDivDairySlaves = $corpDivDairyDev, $menialSupplyFactor -= $corpDivDairyDev - $corpDivDairySlaves, $corpAssetsSlave += 23 * menialSlaveCost($corpDivDairyDev - $corpDivDairySlaves) * ($corpDivDairyDev - $corpDivDairySlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(15000)>>.@@ Downsizing recoups 80% of the investment. + <br><<if $corpCash > 15000>> + [[Expand Division|Manage Corporation][$corpDivDairyDev += 1, $corpCash -= 15000, $corpAssetsDev += 15000]] + <</if>> + <<if $corpCash > 150000>> + | [[Expand x10|Manage Corporation][$corpDivDairyDev += 10, $corpCash -= 150000, $corpAssetsDev += 150000]] + <</if>> + <<if $corpDivDairyDev > 10>> + <<if $corpCash > 15000>> + | + <</if>> + <<if $corpDivDairySlaves == $corpDivDairyDev>> + [[Downsize Division|Manage Corporation][$corpDivDairyDev -= 1, $corpCash += 12000 + 23 * menialSlaveCost(), $corpDivDairySlaves -= 1, $corpAssetsDev -= 12000]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivDairyDev -= 1, $corpCash += 12000, $corpAssetsDev -= 12000]] + <</if>> + <</if>> + <<if $corpDivDairyDev > 20>> + <<if $corpDivDairySlaves >= $corpDivDairyDev - 10>> + <<set _corpDivDairySlavesSell = $corpDivDairySlaves - ($corpDivDairyDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivDairyDev -= 10, $corpCash += 120000 + 23 * _corpDivDairySlavesSell * menialSlaveCost(), $corpDivDairySlaves -= $_corpDivDairySlavesSell, $corpAssetsDev -= 120000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivDairyDev -= 10, $corpCash += 120000, $corpAssetsDev -= 120000]] + <</if>> + <</if>> + <br>Rules: + <<if ndef $corpDivDairyFromMarket>> + Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivDairyFromMarket = 1]] + <<else>> + Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivDairyFromMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivDairySlaves * 23 * menialSlaveCost(-$corpDivDairySlaves) + $corpDivDairyDev * 12000, + $corpDivDairy = 0, + $corpAssetsDev -= $corpDivDairyDev * 12000, + $corpAssetsSlave -= $corpDivDairySlaves * 23 * menialSlaveCost(-$corpDivDairySlaves), + $corpDivDairyDev = 0, + $menialDemandFactor -= $corpDivDairySlaves, + $corpExpandToken += 1>> + <<unset $corpDivDairySlaves>> + <<goto "Manage Corporation">> + <</link>> + <</if>> +<</if>> + +<<if $corpDivWhore == 0>> + <<if $corpExpandToken > 0>> + <<if $corpDivTrain > 0>> + <<if $corpDivTrainSurgerySwitch == 0>> + <<if $corpCash > 460000>> + <br>The corporation can expand by starting an escort division at a cost of @@.yelllowgreen;<<print cashFormat(460000)>>.@@ [[Add Division|Manage Corporation][$corpDivWhore = 1, $corpCash -= 460000, $corpDivWhoreSlaves = 10, $corpDivWhoreDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000, $corpAssetsSlave += 260000]]<br> + <<else>> + <br>The corporation does not have the funds to add an escort division; @@.yellowgreen;<<print cashFormat(460000)>>@@ required.<br> + <</if>> + <<else>> + <<if $corpCash > 540000>> + <br>The corporation can expand by starting an escort division at a cost of @@.yelllowgreen;<<print cashFormat(540000)>>.@@ [[Add Division|Manage Corporation][$corpDivWhore = 1, $corpCash -= 540000, $corpDivWhoreSlaves = 10, $corpDivWhoreDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000, $corpAssetsSlave += 340000]]<br> + <<else>> + <br>The corporation does not have the funds to add an escort division; @@.yellowgreen;<<print cashFormat(540000)>>@@ required.<br> + <</if>> + <</if>> + <</if>> + <</if>> +<<else>> + <<set _corpDivWhoreCost = Math.trunc(700 * $corpDivWhoreSlaves + 0.25 * Math.pow($corpDivWhoreDev, 2)), + _corpDivWhoreCostPU = Math.trunc(_corpDivWhoreCost / ($corpDivWhoreSlaves)), + _corpDivWhoreRev = 3000, + _corpDivWhoreProc = Math.trunc($corpDivWhoreDev * 0.05)>> + <br>The corporation has an escort division. + <br>It has to replace approximately <<if _corpDivWhoreProc > 1>>@@.red;<<print _corpDivWhoreProc>> slaves@@<<else>>@@.red;less than one slave@@<</if>> each week when operating at capacity ($corpDivWhoreDev). + <br>It costs @@.yellowgreen;<<print cashFormat(_corpDivWhoreCost)>>@@ to run. On average that is @@.yellowgreen;<<print cashFormat(_corpDivWhoreCostPU)>>@@ per slave. + <br>The escorts generate @@.yellowgreen;<<print cashFormat(_corpDivWhoreRev)>>@@ per slave on average. + <<if $corpDivWhoreSlaves > 0>> + <br>Currently the division is whoring out <<if $corpDivWhoreSlaves > 1>>@@.green;$corpDivWhoreSlaves slaves.@@<<else>>@@.green;one slave.@@<</if>> + <<if $corpDivWhoreSlaves < $corpDivWhoreDev>> + <br>There is room to whore out more slaves. + <<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>> + <<if $corpCash >= 26 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 26 * menialSlaveCost(), $corpDivWhoreSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 26 * menialSlaveCost()]] + <<if $corpCash > 260 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 260 * menialSlaveCost(10), $corpDivWhoreSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 260 * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > 26 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 26 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves), $corpDivWhoreSlaves = $corpDivWhoreDev, $menialSupplyFactor -= $corpDivWhoreDev - $corpDivWhoreSlaves, $corpAssetsSlave += 26 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)]] + <</if>> + <</if>> + <<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 20>> + <<if $corpCash >= Math.trunc((26 + 0.4 * $corpDivTrainSurgeryTimer) * menialSlaveCost())>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= Math.trunc((26 + 0.4 * $corpDivTrainSurgeryTimer) * menialSlaveCost(), $corpDivWhoreSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost()]] + <<if $corpCash > (260 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= (260 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost(10), $corpDivWhoreSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += (260 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost(10)]] + <</if>> + <<if $corpCash > (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves), $corpDivWhoreSlaves = $corpDivWhoreDev, $menialSupplyFactor -= $corpDivWhoreDev - $corpDivWhoreSlaves, $corpAssetsSlave += (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)]] + <</if>> + <</if>> + <<else>> + <<if $corpCash >= 34 * menialSlaveCost()>> + If you do not have eligable slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 34 * menialSlaveCost(), $corpDivWhoreSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 34 * menialSlaveCost()]] + <<if $corpCash > 340 * menialSlaveCost(10)>> + | [[Buy 10|Manage Corporation][$corpCash -= 340 * menialSlaveCost(10), $corpDivWhoreSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 340 * menialSlaveCost()]] + <</if>> + <<if $corpCash > 34 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)>> + | [[Fill|Manage Corporation][$corpCash -= 34 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves), $corpDivWhoreSlaves = $corpDivWhoreDev, $menialSupplyFactor -= $corpDivWhoreDev - $corpDivWhoreSlaves, $corpAssetsSlave += 34 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)]] + <</if>> + <</if>> + <</if>> + <</if>> + <</if>> + <br>Expanding the division costs @@.yellowgreen;<<print cashFormat(20000)>>.@@ Downsizing recoups 80% of the investment. + <br><<if $corpCash > 20000>> + [[Expand Division|Manage Corporation][$corpDivWhoreDev += 1, $corpCash -= 20000, $corpAssetsDev += 20000]] + <</if>> + <<if $corpCash > 200000>> + | [[Expand x10|Manage Corporation][$corpDivWhoreDev += 10, $corpCash -= 200000, $corpAssetsDev += 200000]] + <</if>> + <<if $corpDivTrainSurgeryTimer < 20 || $corpDivSurgery == 0>> + <<if $corpDivWhoreDev > 10>> + <<if $corpCash > 20000>> + | + <</if>> + <<if $corpDivWhoreSlaves == $corpDivWhoreDev>> + [[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000 + 26 * menialSlaveCost(), $corpDivWhoreSlaves -= 1, $corpAssetsDev -= 16000]] + <<else>> + [[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]] + <</if>> + <</if>> + <<if $corpDivWhoreDev > 20>> + <<if $corpDivWhoreSlaves >= $corpDivWhoreDev - 10>> + <<set _corpDivWhoreSlavesSell = $corpDivWhoreSlaves - ($corpDivWhoreDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000 + 26 * _corpDivWhoreSlavesSell * menialSlaveCost(), $corpDivWhoreSlaves -= $_corpDivWhoreSlavesSell, $corpAssetsDev -= 160000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]] + <</if>> + <</if>> + <<else>> + <<if $corpDivWhoreDev > 10>> + <<if $corpDivWhoreSlaves == $corpDivWhoreDev>> + | [[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000 + 34 * menialSlaveCost(), $corpDivWhoreSlaves -= 1, $corpAssetsDev -= 16000]] + <<else>> + | [[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]] + <</if>> + <</if>> + <<if $corpDivWhoreDev > 20>> + <<if $corpDivWhoreSlaves >= $corpDivWhoreDev - 10>> + <<set _corpDivWhoreSlavesSell = $corpDivWhoreSlaves - ($corpDivWhoreDev - 10)>> + | [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000 + 34 * _corpDivWhoreSlavesSell * menialSlaveCost(), $corpDivWhoreSlaves -= $_corpDivWhoreSlavesSell, $corpAssetsDev -= 160000]] + <<else>> + | [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]] + <</if>> + <</if>> + <</if>> + <br>Rules: + <<if ndef $corpDivWhoreFromMarket>> + Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivWhoreFromMarket = 1]] + <<else>> + Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivWhoreFromMarket>><<goto "Manage Corporation">><</link>> + <</if>> + <<if $corpDiv > 1>> + <<if $corpDivTrainSurgeryTimer < 20 || $corpDivSurgery == 0>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivWhoreSlaves * 26 * menialSlaveCost(-$corpDivWhoreSlaves) + $corpDivWhoreDev * 16000, + $corpAssetsDev -= $corpDivWhoreDev * 16000, + $corpAssetsSlave -= $corpDivWhoreSlaves * 26 * menialSlaveCost(-$corpDivWhoreSlaves), + $corpDivWhore = 0, + $corpDivWhoreDev = 0, + $menialDemandFactor -= $corpDivWhoreSlaves, + $corpExpandToken += 1>> + <<unset $corpDivWhoreSlaves>> + <<goto "Manage Corporation">> + <</link>> + <<else>> + <br>Dissolve the division. @@.orange;//Think before you click//@@ + <<link "Dissolve">> + <<set $corpCash += $corpDivWhoreSlaves * 34 * menialSlaveCost(-$corpDivWhoreSlaves) + $corpDivWhoreDev * 16000, + $corpAssetsDev -= $corpDivWhoreDev * 16000, + $corpAssetsSlave -= $corpDivWhoreSlaves * 34 * menialSlaveCost(-$corpDivWhoreSlaves), + $corpDivWhore = 0, + $corpDivWhoreDev = 0, + $menialDemandFactor -= $corpDivWhoreSlaves, + $corpExpandToken += 1>> + <<unset $corpDivWhoreSlaves>> + <<goto "Manage Corporation">> + <</link>> + <</if>> + <</if>> + <br> +<</if>> + +<br><br> + +__Dividend__ +<<if $dividendRatio > 0.5>> + <br>The corporation is currently reserving 75% of its profit to be paid out as dividends. [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.5]] +<<elseif $dividendRatio > 0.25>> + <br>The corporation is currently reserving 50% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.75]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.25]] +<<elseif $dividendRatio > 0.1>> + <br>The corporation is currently reserving 25% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.5]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.1]] +<<elseif $dividendRatio > 0.05>> + <br>The corporation is currently reserving 10% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.25]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.05]] +<<elseif $dividendRatio > 0>> + <br>The corporation is currently reserving 5% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.1]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0]] +<<else>> + <br>The corporation is currently not reserving a portion of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.05]] +<</if>> +<<if $corpCashDividend == 0>> + <br>You can direct the corporation to reserve cash over <<if corpValue() * 0.05 > 1000000>>5% of @@.yellowgreen;<<print cashFormat(corpValue())>>@@<<else>>@@.yellowgreen;<<print cashFormat(1000000)>>@@<</if>> to be paid out as dividends as well. [[Payout Cash Reserves|Manage Corporation][$corpCashDividend = 1]] +<<else>> + <br>The corporation will payout unused cash reserves as dividends [[Stop|Manage Corporation][$corpCashDividend = 0]] +<</if>> + +<br><br> + +__Shares__ +<br>You own $personalShares shares while another $publicShares shares are traded publicly. The going rate on the market for 1000 shares is currently @@.yellowgreen;<<print cashFormat(corpSharePrice())>>.@@ +<br>The corporation can buyback 1000 shares for @@.yellowgreen;<<print cashFormat(corpSharePrice(-1000))>>@@ or issue 1000 shares and net @@.yellowgreen;<<print cashFormat(corpSharePrice(1000))>>.@@ +<<if $corpCash > corpSharePrice(-1000)>> + <<if $publicShares <= $personalShares - 2000 && $publicShares > 0>> /*It won't buy back player shares if the corporation is entirely owned by the player*/ + <br>The corporation can buyback some of your shares. [[Buyback 1000|Manage Corporation][cashX(corpSharePrice(-1000), "stocksTraded"), $corpCash -= corpSharePrice(-1000), $personalShares -= 1000]] + <<elseif $publicShares >= 1000>> + <br>The corporation can buyback some of the public shares. [[Buyback 1000|Manage Corporation][$corpCash -= corpSharePrice(-1000), $publicShares -= 1000]] + <</if>> +<</if>> +<<if $cash > corpSharePrice(1000)>> + <br>The corporation can issue 1000 shares to you. [[Issue 1000|Manage Corporation][cashX(forceNeg(corpSharePrice(1000)), "stocksTraded"), $corpCash += corpSharePrice(1000), $personalShares += 1000]] +<</if>> +<<if $publicShares <= $personalShares - 2000>> + <br>The corporation can issue 1000 shares onto the stockmarket. [[Issue 1000|Manage Corporation][$corpCash += corpSharePrice(1000), $publicShares += 1000]] +<</if>> +<<if $publicShares <= $personalShares - 3000>> + <br>You can sell some of your shares on the stockmarket. [[Sell 1000|Manage Corporation][cashX(corpSharePrice(), "stocksTraded"), $personalShares -= 1000, $publicShares += 1000]] +<</if>> +<<if $cash > corpSharePrice() && $publicShares >= 1000>> + <br>You can buy some shares from the stockmarket [[Buy 1000|Manage Corporation][cashX(forceNeg(corpSharePrice()), "stocksTraded"), $personalShares += 1000, $publicShares -= 1000]] +<</if>> + +<br><br> + +__Slave specialization__ +<<if $corpSpecToken > 0>> /*Spending tokens on new specializations*/ + <<if $corpSpecToken > 1>> + <br>Your corporation has $corpSpecToken specializations left. + <<else>> + <br>Your corporation has one specialization left. + <</if>> + <<if $corpSpecTimer > 0>> + You have recently changed specializations and the corporation needs <<if $corpSpecTimer > 1>>2 more weeks<<else>>another week<</if>> before it can comply with another directive. + <<else>> + <br>Choosing to specialize your corporation uses a specialization. The corporation can be directed to focus on the following: + <<if $corpSpecRaces.length == 0 && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This used to be $captureUpgradeRace, it is a general acquisition specialization*/ + <br>Slaves who are not + <<if $arcologies[0].FSSubjugationistRace != "amerindian" || $arcologies[0].FSSubjugationist == "unset">>[[Amerindian|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "asian" || $arcologies[0].FSSubjugationist == "unset">>[[Asian|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "black" || $arcologies[0].FSSubjugationist == "unset">>[[Black|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "indo-aryan" || $arcologies[0].FSSubjugationist == "unset">>[[Indo-aryan|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "latina" || $arcologies[0].FSSubjugationist == "unset">>[[Latina|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "malay" || $arcologies[0].FSSubjugationist == "unset">>[[Malay|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "middle eastern" || $arcologies[0].FSSubjugationist == "unset">>[[Middle Eastern|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "mixed race" || $arcologies[0].FSSubjugationist == "unset">>[[Mixed Race|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "pacific islander" || $arcologies[0].FSSubjugationist == "unset">>[[Pacific Islander|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "semitic" || $arcologies[0].FSSubjugationist == "unset">>[[Semitic|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic"), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "southern european" || $arcologies[0].FSSubjugationist == "unset">>[[Southern European|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>> + <<if $arcologies[0].FSSubjugationistRace != "white" || $arcologies[0].FSSubjugationist == "unset">>[[White|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white", 1), $corpSpecToken -= 1, $corpSpecTimer = 2]]<</if>> + <</if>> + <<if $seeDicks != 0 && ndef $corpSpecGender && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This used to be $captureUpgradeGender, it is a general acquisition specialization*/ + <br>Train only slaves with [[Pussies|Manage Corporation][$corpSpecGender = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Dicks|Manage Corporation][$corpSpecGender = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecHeight && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This is a general acquisition specialization*/ + <br>Slaves that are [[Short|Manage Corporation][$corpSpecHeight = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Tall|Manage Corporation][$corpSpecHeight = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecVirgin && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This is a general acquisition specialization*/ + <br>Slaves that are [[Virgins|Manage Corporation][$corpSpecVirgin = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecIntelligence && $corpDivLegal > 0 >> /*This used to be $entrapmentUpgradeIntelligence, it is a legal enslavement specialization*/ + <br>Slaves who are [[Stupid|Manage Corporation][$corpSpecIntelligence = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Intelligent|Manage Corporation][$corpSpecIntelligence = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecAge && $corpDivExtra > 0>> /*This used to be $captureUpgradeAge, it is the extralegal enslavement specialization*/ + <br>Slaves who are [[Younger|Manage Corporation][$corpSpecAge = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Older|Manage Corporation][$corpSpecAge = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecWeight && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $generalUpgradeWeight, it is a general improvement specialization*/ + <br>Managing slaves' diets to achieve [[Thin Slaves|Manage Corporation][$corpSpecWeight = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Fat nor Thin Slaves|Manage Corporation][$corpSpecWeight = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Fat Slaves|Manage Corporation][$corpSpecWeight = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecDevotion && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $entrapmentUpgradeDevotionOne/Two, it is a general improvement specialization*/ + <br>Slaves who are [[Reluctant|Manage Corporation][$corpSpecDevotion = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Obedient|Manage Corporation][$corpSpecDevotion = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecAccent && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $trainingUpgradeAccent, it is a general improvement specialization*/ + <br>Slaves are taught to [[Speak the Language|Manage Corporation][$corpSpecAccent = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Speak without Accent|Manage Corporation][$corpSpecAccent = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecHormones && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $drugUpgradeHormones, it is a general improvement specialization*/ + <br>Slaves are given hormones to [[Feminize|Manage Corporation][$corpSpecHormones = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Masculinize|Manage Corporation][$corpSpecHormones = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecInjection && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $drugUpgradeInjectionOne, it is a general improvement specialization*/ + <br>Slave assets are made to be [[Petite|Manage Corporation][$corpSpecInjection = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Tasteful|Manage Corporation][$corpSpecInjection = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Huge|Manage Corporation][$corpSpecInjection = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecCosmetics && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $surgicalUpgradeCosmetics, it is a general improvement specialization*/ + <br>Straightforward cosmetic procedures are [[Applied|Manage Corporation][$corpSpecCosmetics = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecEducation && $corpDivTrain > 0>> /*This used to be $trainingUpgradeEducation, it is the training specialization*/ + <br>Slaves are given [[No Education|Manage Corporation][$corpSpecEducation == 0, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Basic Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecImplants && $corpDivSurgery > 0>> /*This used to be $surgicalUpgradeImplants, it is the surgery specialization*/ + <br>Slave implants are [[Applied|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecGenitalia && $corpDivSurgery > 100>> /*This used to be $surgicalUpgradeGenitalia, it is the surgery specialization*/ + <br>Slaves get their genitalia reconfigured [[Add Pussy|Manage Corporation][$corpSpecPussy = 1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Remove Pussy|Manage Corporation][$corpSpecPussy = -1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Add Dick|Manage Corporation][$corpSpecDick = 1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Remove Dick|Manage Corporation][$corpSpecDick = -1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Add Balls|Manage Corporation][$corpSpecBalls = 1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Remove Balls|Manage Corporation][$corpSpecBalls = -1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecTrust && $corpDivBreak > 0>> /*This used to be $generalUpgradeBreaking, it is the slave breaking specific specialization*/ + <br>Breaking slaves with [[Brutality|Manage Corporation][$corpSpecTrust = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Care|Manage Corporation][$corpSpecTrust = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecAmputee && $corpDivArcade > 0 && $corpDivSurgeryDev > 100>> /*This is the arcade specialization*/ + <br>Slave limbs are catagorically [[Removed|Manage Corporation][$corpSpecAmputee = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecMuscle && $corpDivMenial > 0>> /*This used to be $generalUpgradeMuscle, it is the Menial division's specialization*/ + <br>Slaves with muscles that are <<if $arcologies[0].FSPhysicalIdealist == "unset">> [[Weak|Manage Corporation][$corpSpecMuscle = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>>[[Soft|Manage Corporation][$corpSpecMuscle = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Toned|Manage Corporation][$corpSpecMuscle = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecMilk && $corpDivDairy > 0>> /*This is the dairy specialization*/ + <br>Slaves are made to be lactating [[Naturally|Manage Corporation][$corpSpecMilk = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Through Implant|Manage Corporation][$corpSpecMilk = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if ndef $corpSpecSexEd && $corpDivWhore > 0>> /*This used to be $trainingUpgradeSexEd, it is the escort division specialization*/ + <br>Slaves are sexually [[Clueless|Manage Corporation][$corpSpecSexEd = 0, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Competent|Manage Corporation][$corpSpecSexEd = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <</if>> +<<else>> + <br>Your corporation cannot pick a new specialization at this time. +<</if>> + +<<if $corpSpec > $corpSpecToken>> /*Modifying specializations*/ + <br><br>You have chosen the following specializations; + <br>//You can choose to specialize further with additional tokens, specialize less, end the specialization or sometimes tweak them for free.// + <<if $corpSpecRaces.length == 12>> + <<set $corpSpecRaces = []>> + <</if>> + <<if $corpSpecRaces.length > 0>> + <br>The corporation enslaves people of the following race(s); + <<if $corpSpecRaces.includes("amerindian")>> + <br>Amerindian + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "amerindian")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Amerindian== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("asian")>> + <br>Asian + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "asian")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Asian== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("black")>> + <br>Black + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "black")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Black== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("indo-aryan")>> + <br>Indo-aryan + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "indo-aryan")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Indo-aryan== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("latina")>> + <br>Latina + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "latina")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Latina== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("malay")>> + <br>Malay + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "malay")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Malay== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("middle eastern")>> + <br>Middle Eastern + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "middle eastern")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Middle Eastern== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("mixed race")>> + <br>Mixed Race + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "mixed race")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Mixed Race== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("pacific islander")>> + <br>Pacific Islander + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "pacific islander")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Pacific Islander== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("semitic")>> + <br>Semitic + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "semitic")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",1), $corpSpecToken -= , $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Semitic== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("southern european")>> + <br>Southern European + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "southern european")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==Southern European== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",0)]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecRaces.includes("white")>> + <br>White + <<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace == "white")>> + <<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>> + <<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",1), $corpSpecToken -= 1, $corpSpecTimer = 2]] + <<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>> + [[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",1)]] + <</if>> + <</if>> + <</if>> + <<else>> + <br>==White== + <<if $corpSpecTimer == 0>> + <<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",0), $corpSpecToken += 1, $corpSpecTimer = 2]] + <<else>> + [[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",0)]] + <</if>> + <</if>> + <</if>> + <</if>> + <<if $corpSpecGender == 1>> + <br>The corporation trains slaves with pussies. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecGender>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecGender == 2>> + <br>The corporation trains slaves with dicks. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecGender>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecHeight == 1>> + <br>The corporation is targeting tiny slaves. + <<if $corpSpecTimer == 0>> + [[Short Slaves|Manage Corporation][$corpSpecHeight = 2, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecHeight == 2>> + <br>The corporation is targeting short slaves. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && ($corpDivExtraDev + $corpDivLegalDev) > 50>> + [[Tiny Slaves|Manage Corporation][$corpSpecHeight = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecHeight == 4>> + <br>The corporation is targeting tall slaves. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && ($corpDivExtraDev + $corpDivLegalDev) > 50>> + [[Giant Slaves|Manage Corporation][$corpSpecHeight = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecHeight == 5>> + <br>The corporation is targeting giant slaves. + <<if $corpSpecTimer == 0>> + [[Tall Slaves|Manage Corporation][$corpSpecHeight = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecVirgin == 1>> + <br>The corporation is ensuring slaves remain virgins. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecVirgin>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecTrust == 1>> + <br>The corporation is breaking slaves with extreme brutality. + <<if $corpSpecTimer == 0>> + [[Apply Less Brutality|Manage Corporation][$corpSpecTrust = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> /*Don't think this deserves the added cost of a token, unlike the 'utmost care' one*/ + <<elseif $corpSpecTrust == 2>> + <br>The corporation is breaking slaves with brutality. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && $arcologies[0].FSDegradationist > 20 && $corpDivBreakDev > 50>> + [[Apply Extreme Brutality|Manage Corporation][$corpSpecTrust = 1, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecTrust == 4>> + <br>The corporation is breaking slaves with care. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && $arcologies[0].FSPaternalist > 20 && $corpDivBreakDev > 50>> + [[Use the Utmost Care|Manage Corporation][$corpSpecTrust = 5, $corpSpecToken += 1, $corpSpecTimer == 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecTrust == 5>> + <br>The corporation is breaking slaves with the utmost care. + <<if $corpSpecTimer == 0>> + [[Use Less Care|Manage Corporation][$corpSpecTrust = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecWeight == 1>> + <br>The corporation makes slaves follow incredibly strict diets. + <<if $corpSpecTimer == 0>> + [[Apply Looser Diet|Manage Corporation][$corpSpecWeight = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecWeight == 2>> + <br>The corporation makes slaves diet. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && $arcologies[0].FSHedonisticDecadence == "unset">> + [[Apply Strict Diet|Manage Corporation][$corpSpecWeight = 1, $corpSpecTimer = 2]] | + <</if>> + [[Aim for Healthy Weight][$corpSpecWeight = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecWeight == 3>> + <br>The corporation is aiming for slaves with a healthy weight. + <<if $corpSpecTimer == 0>> + [[Apply Diet|Manage Corporation][$corpSpecWeight = 2, $corpSpecTimer = 2]] | [[Plump up Slaves|Manage Corporation][$corpSpecWeight = 5, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> /*Perhaps 'plump up' is not the right phrase*/ + <<elseif $corpSpecWeight == 5>> + <br>The corporation aims for plump slaves. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && $arcologies[0].FSPhysicalIdealist == "unset">> + [[Fatten Slaves|Manage Corporation][$corpSpecWeight = 6, $corpSpecTimer = 2]] | + <</if>> + [[Aim for Healthy Weight][$corpSpecWeight = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecWeight == 6>> + <br>The corporation aims for fat slaves. + <<if $corpSpecTimer == 0>> + [[Settle for Plump|Manage Corporation][$corpSpecWeight = 5, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecMuscle == 1>> + <br>The corporation aims to have frail slaves. + <<if $corpSpecTimer == 0>> + [[Aim for Weak|Manage Corporation][$corpSpecMuscle = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecMuscle>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecMuscle == 2>> /*Don't think this deserves the added cost of a token, unlike slaves getting ripped*/ + <br>The corporation aims to have weak slaves. + <<if $corpSpecTimer == 0>> + <<if $arcologies[0].FSPhysicalIdealist == "unset">> + [[Aim for Frail|Manage Corporation][$corpSpecMuscle = 1, $corpSpecTimer = 2]] | + <</if>> + [[Aim for Soft][$corpSpecMuscle = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecMuscle == 3>> + <br>The corporation is aiming for slaves with soft muscles. + <<if $corpSpecTimer == 0>> + <<if $arcologies[0].FSPhysicalIdealist == "unset">> + [[Aim for Weak|Manage Corporation][$corpSpecMuscle = 2, $corpSpecTimer = 2]] | + <</if>> + [[Aim for Toned|Manage Corporation][$corpSpecMuscle = 4, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecMuscle == 4>> + <br>The corporation aims for toned muscles. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && ($corpDivBreakDev + $corpDivSurgery + $corpDivTrainDev > 100)>> + [[Aim for Ripped|Manage Corporation][$corpSpecMuscle = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]] | + <</if>> + [[Aim for Soft][$corpSpecMuscle = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecMuscle == 5>> + <br>The corporation aims for ripped slaves. + <<if $corpSpecTimer == 0>> + [[Aim for Toned|Manage Corporation][$corpSpecMuscle = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecDevotion == 1>> + <br>The corporation keeps slaves extremely defiant. + <<if $corpSpecTimer == 0>> + [[Less Defiant|Manage Corporation][$corpSpecDevotion = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> /*Don't think this deserves the added cost of a token, unlike the 'devoted' one*/ + <<elseif $corpSpecDevotion == 2>> + <br>The corporation keeps slaves reluctant. + <<if $corpSpecTimer == 0>> + [[Make them Defiant|Manage Corporation][$corpSpecDevotion = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecDevotion == 4>> + <br>The corporation is fostering obedience. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && $corpDivTrainDev > 100>> + [[Foster Devotion|Manage Corporation][$corpSpecDevotion = 5, $corpSpecToken += 1, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecDevotion == 5>> + <br>The corporation is fostering devotion. + <<if $corpSpecTimer == 0>> + [[Settle for Obedience|Manage Corporation][$corpSpecDevotion = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecIntelligence == 1>> + <br>The corporation keeps stupid slaves. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecIntelligence>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecIntelligence == 3>> + <br>The corporation keeps intelligent slaves. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecIntelligence>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecAge == 1>> + <br>The corporation focuses on young slaves. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecAge>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecAge == 3>> + <br>The corporation focuses on older slaves. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecAge>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecAccent == 1>> + <br>The corporation teaches slaves to speak the lingua franca. + <<if $corpSpecTimer == 0>> + [[Eliminate Accents|Manage Corporation][$corpSpecAccent = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecAccent>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecAccent == 2>> + <br>The corporation teaches slaves to speak the lingua franca. + <<if $corpSpecTimer == 0>> + [[Just Teach Language|Manage Corporation][$corpSpecAccent = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecAccent>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecEducation == 0>> + <brThe corporation focuses on uneducated slaves. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0>> + [[Basic Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecEducation>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecEducation == 1>> + <br>The corporation makes sure all slaves have a basic education. + <<if $corpSpecTimer == 0>> + <<if $corpDivTrain > 200 && $corpSpecToken > 0>> + [[Advanced Education|Manage Corporation][$corpSpecEducation = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | + <</if>> + [[No Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecEducation>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecEducation == 2>> + <br>The corporation makes sure all slaves have an advanced education. + <<if $corpSpecTimer == 0>> + [[Basic Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecEducation>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecCosmetics == 1>> + <br>The corporation applies straightforward cosmetic procedures. + <<if $corpSpecTimer == 0>> + <<link "No Focus">><<unset $corpSpecCosmetics>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecImplants == 1>> + <br>The corporation applies tasteful implants to all slaves. + <<if $corpSpecTimer == 0>> + <<if $corpDivSurgeryDev > 100 && $corpSpecToken > 0>> + [[Absurd Implants|Manage Corporation][$corpSpecImplants = 2, $corpSpecToken -= 1, ]] | + <</if>> + <<link "No Focus">><<unset $corpSpecImplants>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecImplants == 2>> + <br>The corporation applies absurd implants to all slaves. + <<if $corpSpecTimer == 0>> + [[Tasteful Implants|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecImplants>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if ndef $corpSpecPussy && ndef $corpSpecDick && ndef $corpSpecBalls && $corpSpecGenitalia == 1>> + <<set ndef $corpSpecGenitalia, + $corpSpecToken += 1>> + <</if>> + <<if $corpSpecGenitalia == 1>> + <<if $corpSpecPussy == 1>> + <br>The corporation adds a pussy to all slaves. + <<if $corpSpecTimer == 0>> + <<link "Stop">><<unset $corpSpecPussy>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecPussy == -1>> + <br>The corporation removes pussies from all slaves. + <<if $corpSpecTimer == 0>> + <<link "Stop">><<unset $corpSpecPussy>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<else>> + <br>The corporation has no plans for pussies. + <<if $corpSpecTimer == 0>> + [[Add Pussy|Manage Corporation][$corpSpecPussy = 1, $corpSpecTimer = 2]] | [[Remove Pussy|Manage Corporation][$corpSpecPussy = -1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <</if>> + <<if $corpSpecDick == 1>> + <br>The corporation adds a dick to all slaves. + <<if $corpSpecTimer == 0>> + <<link "Stop">><<unset $corpSpecDick>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecDick == -1>> + <br>The corporation removes dicks from all slaves. + <<if $corpSpecTimer == 0>> + <<link "Stop">><<unset $corpSpecDick>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<else>> + <br>The corporation has no plans for dicks. + <<if $corpSpecTimer == 0>> + [[Add Dick|Manage Corporation][$corpSpecDick = 1, $corpSpecTimer = 2]] | [[Remove Dick|Manage Corporation][$corpSpecDick = -1, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <</if>> + <<if $corpSpecBalls == 1>> + <br>The corporation adds balls to all slaves (penis required). + <<if $corpSpecTimer == 0>> + <<link "Stop">><<unset $corpSpecBalls>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecBalls == -1>> + <br>The corporation removes balls from all slaves. + <<if $corpSpecTimer == 0>> + <<link "Stop">><<unset $corpSpecBalls>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<else>> + <br>The corporation has no plans for balls. + <<if $corpSpecTimer == 0>> + [[Add Balls|Manage Corporation][$corpSpecBalls = 1, $corpSpecTimer = 2]] | [[Remove Balls|Manage Corporation][$corpSpecBalls = -1, $corpSpecTimer = 2]] + <</if>> + <</if>> + <</if>> + <<if $corpSpecInjection == 1>> + <br>The corporation aims for petite assets. + <<if $corpSpecTimer == 0>> + [[Tasteful Size|Manage Corporation][$corpSpecInjection = 2, $corpSpecTimer = 2]] | [[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecInjection == 2>> + <br>The corporation aims for tasteful assets. + <<if $corpSpecTimer == 0>> + [[Small Size|Manage Corporation][$corpSpecInjection = 1, $corpSpecTimer = 2]] | [[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecInjection == 3>> + <br>The corporation aims for huge assets. + <<if $corpSpecTimer == 0>> + [[Small Size|Manage Corporation][$corpSpecInjection = 1, $corpSpecTimer = 2]] | [[Tasteful Size|Manage Corporation][$corpSpecInjection = 2, $corpSpecTimer = 2]] | + <<if $corpDivSurgeryDev > 100 && $corpSpecToken > 0>> + [[Supermassive Size|Manage Corporation][$corpSpecInjection = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]] + <</if>> + <<if $corpDivDairyDev > 200 && $corpSpecToken > 0>> | + [[Pastoral Size|Manage Corporation][$corpSpecInjection = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecInjection == 4>> + <br>The corporation aims for supermassive assets. + <<if $corpSpecTimer == 0>> + [[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecToken += 1, $corpSpecTimer = 2]] | + <<if $corpDivDairyDev > 200>> + [[Pastoral Size|Manage Corporation][$corpSpecInjection = 5, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecInjection == 5>> + <br>The corporation aims for pastoral assets. + <<if $corpSpecTimer == 0>> + [[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecToken += 1, $corpSpecTimer = 2]] | + <<if $corpDivSurgeryDev > 50>> + [[Supermassive Size|Manage Corporation][$corpSpecInjection = 4, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecHormones == 1>> + <br>The corporation feminizes slaves with hormones. + <<if $corpSpecTimer == 0>> + [[Masculinize|Manage Corporation][$corpSpecHormones = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHormones>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecHormones == 2>> + <br>The corporation masculinize slaves with hormones. + <<if $corpSpecTimer == 0>> + [[Feminize|Manage Corporation][$corpSpecHormones = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHormones>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecAmputee == 1>> + <br>The corporation removes all limbs from its slaves. + <<if $corpSpecTimer == 0>> + <<link "Stop">><<unset $corpSpecAmputee>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecMilk == 1>> + <br>The corporation makes sure all slaves are naturally lactating. + <<if $corpSpecTimer == 0>> + [[Lactation Implant|Manage Corporation][$corpSpecMilk = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecMilk>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecMilk == 2>> + <br>The corporation equips all slaves with lactation implants. + <<if $corpSpecTimer == 0>> + [[Natural Lactation|Manage Corporation][$corpSpecMilk = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecMilk>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> + <<if $corpSpecSexEd == 1>> + <br>The corporation familiarizes slaves with sexual service. + <<if $corpSpecTimer == 0>> + <<if $corpSpecToken > 0 && $corpDivWhoreDev > 200>> + [[Advanced Training|Manage Corporation][$corpSpecSexEd = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | + <</if>> + <<link "No Focus">><<unset $corpSpecSexEd>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <<elseif $corpSpecSexEd == 2>> + <br>The corporation teaches advanced sexual techniques to its slaves. + <<if $corpSpecTimer == 0>> + [[Basic Training|Manage Corporation][$corpSpecSexEd = 1, $corpSpecToken +=1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecSexEd>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>> + <</if>> + <</if>> +<</if>> /*End of activated specializations*/ + +<br><br> + +@@.orange;//Warning: Think TWICE before you click this!//@@ +<<link "Dissolve the corporation">> + <<set cashX(Math.min(corpSharePrice() * $personalShares / 1000, 1000000), "stocksTraded"), + $corpIncorporated = 0, + $corpDivExtra = 0, + $corpDivLegal = 0, + $corpDivBreak = 0, + $corpDivSurgery = 0, + $corpDivTrain = 0, + $corpDivArcade = 0, + $corpDivMenial = 0, + $corpDivDairy = 0, + $corpDivWhore = 0, + $corpDivExtraDev = 0, + $corpDivLegalDev = 0, + $corpDivBreakDev = 0, + $corpDivSurgeryDev = 0, + $corpDivTrainDev = 0, + $corpDivDairyDev = 0, + $corpDivArcadeDev = 0, + $corpDivMenialDev = 0, + $corpDivWhoreDev = 0, + $corpExpand = 0, + $corpExpandToken = 0, + $corpSpec = 0, + $corpSpecToken = 0, + $corpSpecRaces = []>> + <<unset $corpCash, + $personalShares, + $publicShares, + $corpDividend, + $dividendTimer, + $corpDiv, + $corpRev, + $corpDivExtraSlaves, + $corpDivLegalSlaves, + $corpDivBreakSlaves, + $corpDivBreakSlaves2, + $corpDivSurgerySlaves, + $corpDivSurgerySlaves2, + $corpDivTrainSlaves, + $corpDivTrainSlaves2, + $corpDivArcadeSlaves, + $corpDivMenialSlaves, + $corpDivDairySlaves, + $corpDivWhoreSlaves, + $corpRevOld, + $corpAssetsSlaveOld, + $corpAssetsSlave, + $corpAssetsDevOld, + $corpAssetsDev, + $corpOverheadOld, + $corpOpCostOld, + $corpProfitOld, + $corpSpecAccent, + $corpSpecAge, + $corpSpecAmputee, + $corpSpecBalls, + $corpSpecDevotion, + $corpSpecDick, + $corpSpecEducation, + $corpSpecGender, + $corpSpecGenitalia, + $corpSpecWeight, + $corpSpecHeight, + $corpSpecHormones, + $corpSpecImplants, + $corpSpecInjection, + $corpSpecIntelligence, + $corpSpecMilk, + $corpSpecMuscle, + $corpSpecPussy, + $corpSpecSexEd, + $corpSpecTrust, + $corpSpecVirgin>> + <<if $corpMarket == 1>> + <<for _i = 0; _i < $sectors.length; _i++>> + <<if $sectors[_i].type == "CorporateMarket">><<set $sectors[_i].type = "Markets">><<break>><</if>> + <</for>> + <<set $corpMarket = 0>> + <</if>> + <<goto "Manage Corporation">> +<</link>> +@@.orange;//Warning!//@@ + +<</if>> /*end of incorporated or not check*/ diff --git a/src/pregmod/manageEconomy.tw b/src/pregmod/manageEconomy.tw index 1ce6567dc8a2fb3bae4434b80cf38563af424a72..24b1158efeb2b4f640e88788b2e68b20a0e488b5 100644 --- a/src/pregmod/manageEconomy.tw +++ b/src/pregmod/manageEconomy.tw @@ -1,4 +1,5 @@ :: Manage Economy [nobr] +<<set $nextButton = "Back", $nextLink = "Main">> <<if $difficultySwitch == 1>> __Economy__<br> diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index 7cb6b68ec90faede7879946ac43f33815d5aff83..51cb9703282805a5d9d2c91f9b14d50a814e3dda 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -233,6 +233,13 @@ <<if ndef $PC.markings>> <<set $PC.markings = "none">> <</if>> +<<if ndef $PC.pronoun>> + <<if $PC.title == 1>> + <<set $PC.pronoun = "he", $PC.possessive = "his", $PC.object = "him">> + <<else>> + <<set $PC.pronoun = "she", $PC.possessive = "her", $PC.object = "her">> + <</if>> +<</if>> <<if ndef $PC.pregKnown>> <<if $PC.preg > 0>> <<set $PC.pregKnown = 1>> @@ -687,12 +694,6 @@ <<if ndef $incubatorGrowthStimsSetting>> <<set $incubatorGrowthStimsSetting = 0>> <</if>> -<<if ndef $incubatorName>> - <<set $incubatorName = "the Incubator">> -<</if>> -<<if ndef $incubatorNameCaps>> - <<set $incubatorNameCaps = "The Incubator">> -<</if>> <<if ndef $reservedChildren>> <<set $reservedChildren = 0>> <</if>> @@ -712,12 +713,6 @@ <<if ndef $nurserySlaves>> <<set $nurserySlaves = 0>> <</if>> -<<if ndef $NurseryiIDs>> - <<set $NurseryiIDs = []>> -<</if>> -<<if $NurseryiIDs.length > 0 && typeof $NurseryiIDs[0] === 'object'>> - <<set $NurseryiIDs = $NurseryiIDs.map(function(a) { return a.ID; })>> -<</if>> <<if ndef $Matron>> <<set $Matron = 0>> <</if>> @@ -730,15 +725,6 @@ <<if ndef $MatronInfluence>> <<set $MatronInfluence = 0>> <</if>> -<<if ndef $nurseryName>> - <<set $nurseryName = "the Nursery">> -<</if>> -<<if ndef $nurseryNameCaps>> - <<set $nurseryNameCaps = "The Nursery">> -<</if>> -<<if ndef $nurseryDecoration>> - <<set $nurseryDecoration = "standard">> -<</if>> <<if ndef $nurseryWeight>> <<set $nurseryWeight = 0>> <</if>> @@ -776,24 +762,9 @@ <<set $cribsFreed = []>> <</if>> -<<if ndef $FarmyardiIDs>> - <<set $FarmyardiIDs = []>> -<</if>> -<<if $FarmyardiIDs.length > 0 && typeof $FarmyardiIDs[0] === 'object'>> - <<set $FarmyardiIDs = $FarmyardiIDs.map(function(a) { return a.ID; })>> -<</if>> <<if ndef $Farmer>> <<set $Farmer = 0>> <</if>> -<<if ndef $farmyardName>> - <<set $farmyardName = "the Farmyard">> -<</if>> -<<if ndef $farmyardNameCaps>> - <<set $farmyardNameCaps = "The Farmyard">> -<</if>> -<<if ndef $farmyardDecoration>> - <<set $farmyardDecoration = "standard">> -<</if>> <<if ndef $farmyard>> <<set $farmyard = 0>> <</if>> @@ -994,6 +965,7 @@ <<if ndef $assistantBodyDesire>> <<set $assistantBodyDesire = 0>> <</if>> + <<if ndef $huskSlaveOrdered>> <<set $huskSlaveOrdered = 0>> <</if>> @@ -1127,14 +1099,6 @@ <<set $drugUpgradeInjectionOne = "unselected">> <<set $drugUpgradeInjectionTwo = "unselected">> <</if>> -<<if $slaveAssetPrice === 0>> - <<set $slaveAssetPrice = Math.trunc(10*$slaveCostFactor)>> - <<set $entrapmentAssetPrice = 10>> - <<set $captureAssetPrice = 10>> - <<set $trainingAssetPrice = 10>> - <<set $surgicalAssetPrice = 10>> - <<set $drugAssetPrice = 10>> -<</if>> <<= SFBC()>> <<if def $SF && $SF.Active >= 0 && passage() === "New Game Plus">> @@ -1809,37 +1773,6 @@ Setting missing global variables: <<set $roomsPopulation = 0>> <</if>> -<<if ndef $BrothiIDs>> - <<set $BrothiIDs = []>> -<</if>> -<<if $BrothiIDs.length > 0 && typeof $BrothiIDs[0] === 'object'>> - <<set $BrothiIDs = $BrothiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $brothelName>> - <<set $brothelName = "the Brothel">> -<</if>> -<<if ndef $brothelNameCaps>> - <<set $brothelNameCaps = "The Brothel">> -<</if>> -<<if ndef $brothelDecoration>> - <<set $brothelDecoration = "standard">> -<</if>> - -<<if ndef $DairyiIDs>> - <<set $DairyiIDs = []>> -<</if>> -<<if $DairyiIDs.length > 0 && typeof $DairyiIDs[0] === 'object'>> - <<set $DairyiIDs = $DairyiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $dairyName>> - <<set $dairyName = "the Dairy">> -<</if>> -<<if ndef $dairyNameCaps>> - <<set $dairyNameCaps = "The Dairy">> -<</if>> -<<if ndef $dairyDecoration>> - <<set $dairyDecoration = "standard">> -<</if>> <<if ndef $dairyFeedersUpgrade>> <<set $dairyFeedersUpgrade = 0>> <</if>> @@ -1869,88 +1802,13 @@ Setting missing global variables: <<set $bioreactorsBarren = 0>> <</if>> -<<if ndef $ClubiIDs>> - <<set $ClubiIDs = []>> -<</if>> -<<if $ClubiIDs.length > 0 && typeof $ClubiIDs[0] === 'object'>> - <<set $ClubiIDs = $ClubiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $clubName>> - <<set $clubName = "the Club">> -<</if>> -<<if ndef $clubNameCaps>> - <<set $clubNameCaps = "The Club">> -<</if>> -<<if ndef $clubDecoration>> - <<set $clubDecoration = "standard">> -<</if>> - -<<if ndef $ServQiIDs>> - <<set $ServQiIDs = []>> -<</if>> -<<if $ServQiIDs.length > 0 && typeof $ServQiIDs[0] === 'object'>> - <<set $ServQiIDs = $ServQiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $servantsQuartersName>> - <<set $servantsQuartersName = "the Servants' Quarters">> -<</if>> -<<if ndef $servantsQuartersNameCaps>> - <<set $servantsQuartersNameCaps = "The Servants' Quarters">> -<</if>> -<<if ndef $servantsQuartersDecoration >> - <<set $servantsQuartersDecoration = "standard">> -<</if>> - -<<if ndef $SchlRiIDs>> - <<set $SchlRiIDs = []>> -<</if>> -<<if $SchlRiIDs.length > 0 && typeof $SchlRiIDs[0] === 'object'>> - <<set $SchlRiIDs = $SchlRiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $schoolroomName>> - <<set $schoolroomName = "the Schoolroom">> -<</if>> -<<if ndef $schoolroomNameCaps>> - <<set $schoolroomNameCaps = "The Schoolroom">> -<</if>> <<if ndef $schoolroomUpgradeSkills>> <<set $schoolroomUpgradeSkills = 0>> <</if>> <<if ndef $schoolroomUpgradeLanguage>> <<set $schoolroomUpgradeLanguage = 0>> <</if>> -<<if ndef $schoolroomDecoration>> - <<set $schoolroomDecoration = "standard">> -<</if>> - -<<if ndef $SpaiIDs>> - <<set $SpaiIDs = []>> -<</if>> -<<if $SpaiIDs.length > 0 && typeof $SpaiIDs[0] === 'object'>> - <<set $SpaiIDs = $SpaiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $spaName>> - <<set $spaName = "the Spa">> -<</if>> -<<if ndef $spaNameCaps>> - <<set $spaNameCaps = "The Spa">> -<</if>> -<<if ndef $spaDecoration>> - <<set $spaDecoration = "standard">> -<</if>> -<<if ndef $CliniciIDs>> - <<set $CliniciIDs = []>> -<</if>> -<<if $CliniciIDs.length > 0 && typeof $CliniciIDs[0] === 'object'>> - <<set $CliniciIDs = $CliniciIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $clinicName>> - <<set $clinicName = "the Clinic">> -<</if>> -<<if ndef $clinicNameCaps>> - <<set $clinicNameCaps = "The Clinic">> -<</if>> <<if ndef $clinicSlaves>> <<set $clinicSlaves = 0>> <</if>> @@ -1963,57 +1821,11 @@ Setting missing global variables: <<if ndef $clinicUpgradeScanner>> <<set $clinicUpgradeScanner = 0>> <</if>> -<<if ndef $clinicDecoration>> - <<set $clinicDecoration = "standard">> -<</if>> -<<if ndef $ArcadeiIDs>> - <<set $ArcadeiIDs = []>> -<</if>> -<<if $ArcadeiIDs.length > 0 && typeof $ArcadeiIDs[0] === 'object'>> - <<set $ArcadeiIDs = $ArcadeiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $arcadeName>> - <<set $arcadeName = "the Arcade">> -<</if>> -<<if ndef $arcadeNameCaps>> - <<set $arcadeNameCaps = "The Arcade">> -<</if>> -<<if ndef $arcadeDecoration>> - <<set $arcadeDecoration = "standard">> -<</if>> - -<<if ndef $CellBiIDs>> - <<set $CellBiIDs = []>> -<</if>> -<<if $CellBiIDs.length > 0 && typeof $CellBiIDs[0] === 'object'>> - <<set $CellBiIDs = $CellBiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $cellblockName>> - <<set $cellblockName = "the Cellblock">> -<</if>> -<<if ndef $cellblockNameCaps>> - <<set $cellblockNameCaps = "The Cellblock">> -<</if>> -<<if ndef $cellblockDecoration>> - <<set $cellblockDecoration = "standard">> -<</if>> <<if ndef $cellblockWardenCumsInside>> <<set $cellblockWardenCumsInside = 0>> <</if>> -<<if ndef $MastSiIDs>> - <<set $MastSiIDs = []>> -<</if>> -<<if $MastSiIDs.length > 0 && typeof $MastSiIDs[0] === 'object'>> - <<set $MastSiIDs = $MastSiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $masterSuiteName>> - <<set $masterSuiteName = "the Master Suite">> -<</if>> -<<if ndef $masterSuiteNameCaps>> - <<set $masterSuiteNameCaps = "The Master Suite">> -<</if>> <<if ndef $masterSuiteUpgradePregnancy>> <<set $masterSuiteUpgradePregnancy = 0>> <</if>> @@ -2029,22 +1841,7 @@ Setting missing global variables: <<if ndef $universalHGImpregnateMasterSuiteToggle>> <<set $universalHGImpregnateMasterSuiteToggle = 0>> <</if>> -<<if ndef $masterSuiteDecoration>> - <<set $masterSuiteDecoration = "standard">> -<</if>> -<<if ndef $HGSuiteiIDs>> - <<set $HGSuiteiIDs = []>> -<</if>> -<<if $HGSuiteiIDs.length > 0 && typeof $HGSuiteiIDs[0] === 'object'>> - <<set $HGSuiteiIDs = $HGSuiteiIDs.map(function(a) { return a.ID; })>> -<</if>> -<<if ndef $HGSuiteName>> - <<set $HGSuiteName = "the Head Girl Suite">> -<</if>> -<<if ndef $HGSuiteNameCaps>> - <<set $HGSuiteNameCaps = "The Head Girl Suite">> -<</if>> <<if ndef $HGSuiteSurgery>> <<set $HGSuiteSurgery = 1>> <</if>> @@ -2058,12 +1855,8 @@ Setting missing global variables: <<set $HGSuiteEquality = 0>> <</if>> -<<if ndef $pitName>> - <<set $pitName = "the Pit">> -<</if>> -<<if ndef $pitNameCaps>> - <<set $pitNameCaps = "The Pit">> -<</if>> +<<run FacilityDatatypeCleanup()>> + <<if ndef $fighterIDs>> <<set $fighterIDs = []>> <</if>> @@ -2789,6 +2582,106 @@ Setting missing global variables: <<unset $welfare, $slaveDemandU, $slaveDemandT, $slaveProductivity, $enslaveChance, $slaveExpiration>> <</if>> +/*Corporation variables added*/ +<<if ndef $vanillaShareSplit>> +<<set $vanillaShareSplit = 1>> +<</if>> +<<if ndef $corpCashDividend>> +<<set $corpCashDividend = 0>> +<</if>> +<<if ndef $corpDiv>> +<<set $corpDiv = 0>> +<</if>> +<<if ndef $corpExpand>> +<<set $corpExpand = 0>> +<</if>> +<<if ndef $corpExpandToken>> +<<set $corpExpandToken = 0>> +<</if>> +<<if ndef $corpSpec>> +<<set $corpSpec = 0>> +<</if>> +<<if ndef $corpSpecToken>> +<<set $corpSpecToken = 0>> +<</if>> +<<if ndef $corpDivExtra>> +<<set $corpDivExtra = 0>> +<</if>> +<<if ndef $corpDivLegal>> +<<set $corpDivLegal = 0>> +<</if>> +<<if ndef $corpDivBreak>> +<<set $corpDivBreak = 0>> +<</if>> +<<if ndef $corpDivSurgery>> +<<set $corpDivSurgery = 0>> +<</if>> +<<if ndef $corpDivTrain>> +<<set $corpDivTrain = 0>> +<</if>> +<<if ndef $corpDivArcade>> +<<set $corpDivArcade = 0>> +<</if>> +<<if ndef $corpDivMenial>> +<<set $corpDivMenial = 0>> +<</if>> +<<if ndef $corpDivDairy>> +<<set $corpDivDairy = 0>> +<</if>> +<<if ndef $corpDivWhore>> +<<set $corpDivWhore = 0>> +<</if>> +<<if ndef $corpDivExtraDev>> +<<set $corpDivExtraDev = 0>> +<</if>> +<<if ndef $corpDivLegalDev>> +<<set $corpDivLegalDev = 0>> +<</if>> +<<if ndef $corpDivBreakDev>> +<<set $corpDivBreakDev = 0>> +<</if>> +<<if ndef $corpDivSurgeryDev>> +<<set $corpDivSurgeryDev = 0>> +<</if>> +<<if ndef $corpDivTrainDev>> +<<set $corpDivTrainDev = 0>> +<</if>> +<<if ndef $corpDivArcadeDev>> +<<set $corpDivArcadeDev = 0>> +<</if>> +<<if ndef $corpDivMenialDev>> +<<set $corpDivMenialDev = 0>> +<</if>> +<<if ndef $corpDivDairyDev>> +<<set $corpDivDairyDev = 0>> +<</if>> +<<if ndef $corpDivWhoreDev>> +<<set $corpDivWhoreDev = 0>> +<</if>> +<<if ndef $corpSpecRaces>> +<<set $corpSpecRaces = []>> +<</if>> +<<if ndef $corpEasy>> + <<if $economy > 100>> + <<set $corpEasy = 1>> + <<else>> + <<set $corpEasy = 0>> + <</if>> +<</if>> + +/*Removing the old Corp from save*/ +<<if ndef $newCorp>> + <<set $newCorp = 1>> + <<set $corpIncorporated = 0>> + <<set $cash += Math.min(Math.trunc(($corpValue / ($publicShares + $personalShares)) * $personalShares), 1000000)>> /*Paying the player for his old corporation, so they can get the new one started with haste. It should perhaps have a message going with it*/ + <<set $mercenariesHelpCorp = 0>> + <<set $corpMarket = 0>> + <<unset $corpPeopleEnslaved, $slaveAssets, $slaveAssetPrice, $corpProfit, $corpCash, $corpValue, $sharePrice, $oldSharePrice, $personalShares, $publicShares, $generalAssetPrice, $generalAssets, $entrapmentAssets, $entrapmentAssetPrice, $captureAssets, $captureAssetPrice, $trainingAssets, $trainingAssetPrice, $surgicalAssets, $surgicalAssetPrice, $drugAssets, $drugAssetPrice, $generalUpgradeBreaking, $generalUpgradeWeight, $generalUpgradeMuscle, $entrapmentUpgradeDevotionOne, $entrapmentUpgradeDevotionTwo, $entrapmentUpgradeIntelligence, $captureUpgradeGender, $surgicalUpgradeGenitalia, $captureUpgradeAge, $captureUpgradeRace, $trainingUpgradeAccent, $trainingUpgradeEducation, $trainingUpgradeSexEd, $surgicalUpgradeCosmetics, $surgicalUpgradeImplants, $drugUpgradeHormones, $drugUpgradeInjectionOne, $drugUpgradeInjectionTwo>> + <<for _i = 0; _i < $sectors.length; _i++>> + <<if $sectors[_i].type == "CorporateMarket">><<set $sectors[_i].type = "Markets">><<break>><</if>> + <</for>> +<</if>> + <<if ndef $food>> <<set $food = 50000>> <</if>> @@ -2835,6 +2728,10 @@ Setting missing global variables: <<set $rations = 0>> <</if>> +<<if ndef $lastWeeksCashIncome>> + <<setupLastWeeksCash>> +<</if>> + <<run EconomyDatatypeCleanup()>> <<run ArcologyDatatypeCleanup()>> diff --git a/src/uncategorized/bulkSlaveGenerate.tw b/src/uncategorized/bulkSlaveGenerate.tw index b10adea6efe6db8d254f16d50cb0938590a73196..136d3f6290f5937349b7bdbae3e1df086f960c6f 100644 --- a/src/uncategorized/bulkSlaveGenerate.tw +++ b/src/uncategorized/bulkSlaveGenerate.tw @@ -55,12 +55,8 @@ <</if>> <<case "corporate">> - <<if $publicShares <= $personalShares*0.2>> + <<if $corpMarket == 1>> <<set $discount = 350>> - <<elseif $publicShares <= $personalShares*0.5>> - <<set $discount = 400>> - <<else>> - <<set $discount = 450>> <</if>> <<case "neighbor">> diff --git a/src/uncategorized/buySlaves.tw b/src/uncategorized/buySlaves.tw index 8c0e02b1055ea22564613395ebd3a62935e44ce8..b3267ece5c265e8a58c4d935c44aa15df23e4cdb 100644 --- a/src/uncategorized/buySlaves.tw +++ b/src/uncategorized/buySlaves.tw @@ -24,8 +24,8 @@ __Sex Slave Purchase Options__ <br> -<<if $corpMarket != 0>> - <br>[[Corporate Market][$slavesSeen += 1]] | //Slaves from your corporation purchased at a discounted rate.// +<<if $corpIncorporated != 0>> + <br>[[Corporate Market][$slavesSeen += 1]] | <<if $corpMarket == 1>>//Slaves from your corporation purchased at a discounted rate.//<<else>>//Slaves from your corporation//<</if>> <<if $cash > _minimumFive>> [[(x5)|Bulk Slave Generate][$slaveMarket = "corporate", $introType = "bulk", $numSlaves = 5]] | <</if>> diff --git a/src/uncategorized/corporateMarket.tw b/src/uncategorized/corporateMarket.tw index 62bc930b94aeb24102129bb5d6962601b5f53268..2cf1ba8a53fb42cee7365512ecab8a3e90f23fcc 100644 --- a/src/uncategorized/corporateMarket.tw +++ b/src/uncategorized/corporateMarket.tw @@ -10,36 +10,44 @@ You're in your corporation's flagship slave market. The corporation pays you only nominal rent for this space, but will offer you a discount on slaves here based on your shares in it. Additionally, having the corporation's premiere products sold here in $arcologies[0].name will associate them with you, allowing your reputation to improve the corporate brand. A pretty -<<if $surgicalUpgradeGenitalia == "futanari">>futanari<<elseif $captureUpgradeGender == "XY">><<if $surgicalUpgradeGenitalia == "gelded">>clipped<<else>>shemale<</if>><</if>> -sales<<if $captureUpgradeAge == "old">>woman<<else>>girl<</if>> in a slutty suit greets you properly. She's a corporate slave chosen for loyalty and intelligence, and to physically represent the brand. -<<if $drugUpgradeInjectionTwo == "supermassive">> +<<if $corpSpecDick == 1 && $corpSpecPussy == 1>>futanari<<elseif $corpSpecGender == 2>><<if $corpSpecBalls == -1>>clipped<<else>>shemale<</if>><</if>> +sales<<if $corpSpecAge == 3>>woman<<else>>girl<</if>> in a slutty suit greets you properly. She's a corporate slave chosen for loyalty and intelligence, and to physically represent the brand. +<<if $corpSpecHeight == 5>> + Even before she engaged with you her towering height made her stand out and caught your eye, from up close she's even more impressive. +<<elseif $corpSpecHeight == 1>> + She's so short you have to physically look down on her. +<</if>> +<<if $corpSpecInjection == 4>> She has awe-inspiring breasts which her suit jacket helps support; even so, their bottoms reach past her navel. -<<elseif $drugUpgradeInjectionTwo == "pastoral">> +<<elseif $corpSpecInjection == 5>> She has gigantic, milk-swollen breasts almost spilling out of her suit. -<<elseif $surgicalUpgradeImplants == "absurd">> +<<elseif $corpSpecImplants == 2>> She has enormous fake tits that ride inhumanly high on her chest. -<<elseif $drugUpgradeInjectionOne == "huge">> +<<elseif $corpSpecInjection == 3>> She has huge tits and a nice broad butt which her tight skirt hugs closely. -<<elseif $surgicalUpgradeImplants == "applied">> +<<elseif $corpSpecImplants == 1>> She has nice fake bimbo tits and a silicone bubble butt. -<<elseif $drugUpgradeInjectionOne == "tasteful">> +<<elseif $corpSpecInjection == 2>> She's nice and curvy, with nice breasts and a lovely ass. +<<elseif $corpSpecInjection == 1>> + She has cute little breasts and a petite rump. <</if>> -<<if $surgicalUpgradeCosmetics == "applied">>Her face is flawless.<</if>> -<<if ($captureUpgradeRace != "unselected") && ($captureUpgradeRace != "none")>> - She's $captureUpgradeRace, of course<<if $trainingUpgradeAccent == "accents">>, and has a cute accent<</if>>. +<<if $corpSpecCosmetics == 1>>Her face is flawless.<</if>> +<<if ($corpSpecRaces.length == 1)>> + <<set _corpSpecRace = $corpSpecRaces.random()>> + She's <<print _corpSpecRace>>, of course<<if $corpSpecAccent == 1>>, and has a cute accent<</if>>. <</if>> -<<if $drugUpgradeHormones == "XX">> +<<if $corpSpecHormones == 1>> Her voice is soft and feminine, and she bats her eyes at you. -<<elseif $drugUpgradeHormones == "XY">> +<<elseif $corpSpecHormones == 2>> She has a deep voice, and speaks assertively. <</if>> -<<if $generalUpgradeMuscle == "toned">> +<<if $corpSpecMuscle == 4>> Her hot body is perfectly toned under her suit. -<<elseif $generalUpgradeMuscle == "ripped">> +<<elseif $corpSpecMuscle == 5>> Her suit is specially tailored to flatter her visible musculature. <</if>> -Of course, you know all about the corporation, but sales<<if $captureUpgradeAge == "old">>women<<else>>girls<</if>> here have standing orders to treat you like any other customer, so you can review the market properly. The slave turns to <<if $surgicalUpgradeGenitalia != "fucknugget">>a multimedia presentation on<<else>>a rack of<</if>> your corporation's slaves. +Of course, you know all about the corporation, but sales<<if $corpSpecAge == 3>>women<<else>>girls<</if>> here have standing orders to treat you like any other customer, so you can review the market properly. The slave turns to <<if $corpSpecAmputee != 1>>a multimedia presentation on<<else>>a rack of<</if>> your corporation's slaves. <br><br> @@ -49,12 +57,12 @@ She explains that the corporation captures many people, so it only retains and t <br><br> Her presentation done, the -<<if $surgicalUpgradeGenitalia == "futanari">>futanari<<elseif $captureUpgradeGender == "XY">><<if $surgicalUpgradeGenitalia == "gelded">>clipped<<else>>shemale<</if>><</if>> -sales<<if $captureUpgradeAge == "old">>woman<<else>>girl<</if>> directs you to the inventory interface that will allow you to peruse the corporation's slaves, and moves over to stand next to it, ready to answer any questions. +<<if $corpSpecDick == 1 && $corpSpecPussy == 1>>futanari<<elseif $corpSpecGender == 2>><<if $corpSpecBalls == -1>>clipped<<else>>shemale<</if>><</if>> +sales<<if $corpSpecAge == 3>>woman<<else>>girl<</if>> directs you to the inventory interface that will allow you to peruse the corporation's slaves, and moves over to stand next to it, ready to answer any questions. <<if $PC.dick == 1>> She positions herself facing away from you and hikes up her skirt to bare her - <<if $drugUpgradeInjectionTwo == "supermassive" || $drugUpgradeInjectionTwo == "pastoral">>gigantic ass<<elseif $surgicalUpgradeImplants != "none">>fake ass<<elseif $drugUpgradeInjectionOne != "huge">>big butt<<else>>cute butt<</if>> - and cocks her hips<<if $surgicalUpgradeGenitalia == "gelded">>, keeping her soft cock demurely out of sight<</if>>, if you feel like <<if $captureUpgradeGender == "XY" && $surgicalUpgradeGenitalia != "futanari">>sodomizing<<else>>fucking<</if>> her + <<if $corpSpecInjection > 4>>gigantic ass<<elseif $corpSpecImplants > 0>>fake ass<<elseif $corpSpecInjection == 3>>big butt<<elseif $corpSpecInjection == 2>>cute butt<<else>>little behind<</if>> + and cocks her hips<<if $corpSpecBalls == -1>>, keeping her soft cock demurely out of sight<</if>>, if you feel like <<if $corpSpecGender == 2 && $corpSpecPussy != 1>>sodomizing<<else>>fucking<</if>> her <<else>> She gets down on her knees right there, making her mouth available if you feel like riding her face <</if>> @@ -63,7 +71,7 @@ while you browse. <<link "Use her">> <<replace "#result">> <<if $PC.dick == 1>> - Her <<if $captureUpgradeGender == "XY" && $surgicalUpgradeGenitalia != "futanari">>asshole is thoughtfully pre-lubed, and your cock slides easily up it<<else>>pussy is nice and wet, and your cock slides inside her easily<</if>> as you consider the slaves on offer. She's well trained, and uses her <<if $captureUpgradeGender == "XY" && $surgicalUpgradeGenitalia != "futanari">>sphincter<<else>>womanly muscles<</if>> to please your member expertly as she ruts herself gently back against you, doing almost all the work. When you orgasm, she retains the load carefully, keeping your cum inside her and away from her nice clothes. + Her <<if $corpSpecGender == 2 && $corpSpecPussy != 1>>asshole is thoughtfully pre-lubed, and your cock slides easily up it<<else>>pussy is nice and wet, and your cock slides inside her easily<</if>> as you consider the slaves on offer. She's well trained, and uses her <<if $corpSpecGender == 2 && $corpSpecPussy != 1>>sphincter<<else>>womanly muscles<</if>> to please your member expertly as she ruts herself gently back against you, doing almost all the work. When you orgasm, she retains the load carefully, keeping your cum inside her and away from her nice clothes. <<else>> She's very well trained, and does all the work. Once you move in and straddle her, she gets right down to it, or in this case, up to it. Her clever tongue runs gently along your labia to build anticipation before starting a delightful dance around and then atop your clitoris. You orgasm in no time at all, a climax which she carefully prolongs by kissing you full on the pussy in just the right way, only breaking the oral embrace when you've ridden it as far as you'll go. <</if>> @@ -76,14 +84,8 @@ while you browse. <<slaveCost $activeSlave>> <<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += $slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1)>><</if>> -<<if $publicShares <= $personalShares*0.2>> - Your commanding share of the corporation allows you to purchase its slaves at a very steep discount. - <<set $slaveCost *= 0.7>> -<<elseif $publicShares <= $personalShares*0.5>> - Your large share of the corporation permits you to purchase its slaves at a steep discount. - <<set $slaveCost *= 0.8>> -<<else>> - Your shares of the corporation come with a decent discount on its slaves. +<<if $corpMarket == 1>> + Your own local franchise of your corporation allows you to enjoy a discount. <<set $slaveCost *= 0.9>> <</if>> diff --git a/src/uncategorized/corporationDevelopments.tw b/src/uncategorized/corporationDevelopments.tw index 539f26e0efedc10162178f12b8f11c930b6c313b..2f3493768e9ab7a1604d3580ac5b35f28fa32ceb 100644 --- a/src/uncategorized/corporationDevelopments.tw +++ b/src/uncategorized/corporationDevelopments.tw @@ -1,1660 +1,734 @@ :: Corporation Developments [nobr] -<<if $detailedCorpControls == 1>> -<<set _Numgeneral = "ALL">> -<<set _Numslave = "ALL">> -<<set _Numentrapment = "ALL">> -<<set _Numcapture = "ALL">> -<<set _Numtraining = "ALL">> -<<set _Numsurgical = "ALL">> -<<set _Numdrug = "ALL">> -<</if>> -<<if $useTabs == 0>>__The Corporation__<</if>> -<br> - -<<set _totalShares = ($personalShares+$publicShares)>> -<<set _roll = random(1,100)>> -<<set $corpPeopleEnslaved += 1>> +/*Main Corporation Loop*/ -<<set $corpValue = $corpCash + ($generalAssets*$generalAssetPrice)+($slaveAssets*$slaveAssetPrice)+($entrapmentAssets*$entrapmentAssetPrice)+($captureAssets*$captureAssetPrice)+($trainingAssets*$trainingAssetPrice)+($surgicalAssets*$surgicalAssetPrice)+($drugAssets*$drugAssetPrice)>> -<<set $corpProfit = Math.max(0, Math.trunc( 6666666 / (1 + Math.exp(-1.4 * (Math.log($corpValue) - 18))) ) - random(666, 6666))>> /* formula caps at 6666666, reaches 6.5 million at corpValue of 900 million */ -<<set $corpCash = Math.trunc($corpCash + $corpProfit)>> -Your corporation was valued at @@.yellowgreen;<<print cashFormat($corpValue)>>@@ and made a profit of @@.yellowgreen;<<print cashFormat($corpProfit)>>@@ last week. -<<set _addedSlaves = Math.ceil(Math.log($captureAssets+$entrapmentAssets))>> -<<if $mercenariesHelpCorp > 0 || ($SF.Toggle && $SF.Active >= 1 && $SF.Size >= 10 && $SFSupportLevel >= 4)>> - <<if $mercenariesHelpCorp > 0>> - The $mercenariesTitle - <<set _addedSlaves += Math.ceil(_addedSlaves * (1.04*$mercenaries))>> /* increase by 12-20% ($mercenaries == 3 - 5) */ - <</if>> - <<if $mercenariesHelpCorp > 0 && $SF.Toggle && $SF.Active >= 1 && $SF.Size >= 10 && $SFSupportLevel >= 4>> - and a - <<elseif $SF.Toggle && $SF.Active >= 1 && $SF.Size >= 10 && $SFSupportLevel >= 4>> - A - <</if>> - <<if $SF.Toggle && $SF.Active >= 1 && $SF.Size >= 10 && $SFSupportLevel >= 4>> - small portion of $SF.Lower - <<set _addedSlaves += Math.ceil(_addedSlaves * (1.04*($SF.Size/10)))>> - <</if>> - assist it with difficult enslavement targets. Otherwise, it -<<else>> - It -<</if>> -was a -<<if _roll > 90>> - n outstanding - <<set _addedSlaves *= 5>> -<<elseif _roll > 60>> - great - <<set _addedSlaves *= 4>> -<<elseif _roll > 40>> - good - <<set _addedSlaves *= 3>> -<<elseif _roll > 20>> - mediocre - <<set _addedSlaves *= 2>> -<<else>> - bad -<</if>> -week for <<if _roll > 90>> corporate <</if>> enslavement; -<<set $corpPeopleEnslaved += _addedSlaves, $slaveAssets += 500 * _addedSlaves>> -in total, the corporation has enslaved <<print commaNum($corpPeopleEnslaved)>> people. -<<set _trainingWeight = 0.6, _surgicalWeight = 0.2, _drugWeight = 0.2>> -<<if $surgicalUpgradeCosmetics == "none" && $surgicalUpgradeImplants == "none" && $surgicalUpgradeGenitalia == "none">> - <<set _surgicalWeight = 0, _trainingWeight += 0.2>> -<</if>> -<<if $drugUpgradeHormones == "none" && $drugUpgradeInjectionOne == "none" && $drugUpgradeInjectionTwo == "none">> - <<set _drugWeight = 0.1, _trainingWeight += 0.1>> -<</if>> -<<set _improvementAssetsTotal = ($trainingAssets * _trainingWeight) + ($surgicalAssets * _surgicalWeight) + ($drugAssets * _drugWeight)>> -The corporation -<<if _improvementAssetsTotal > $slaveAssets * 0.6>> - has enough training and medical assets to rapidly improve - <<set $slaveAssets += Math.ceil(Math.log($slaveAssets)*800)>> -<<elseif _improvementAssetsTotal > $slaveAssets * 0.4>> - uses its training and medical assets to improve - <<set $slaveAssets += Math.ceil(Math.log($slaveAssets)*400)>> -<<else>> - has only enough training and medical assets to maintain the value of +<<if $corpCash < 0>> + <<set $corpCash = Math.trunc($corpCash * 1.02)>> /*2% weekly interest rate on negative cash*/ <</if>> -its human holdings. -/* model weekly corporate expenses as random 1-3% reduction in all asset types (including cash) ... except slaves, whose value is tied to $slaveCostFactor (which the corporation does not affect) */ -<<set $trainingAssets = Math.max(Math.ceil($trainingAssets * random(97,99)/100), 500), $surgicalAssets = Math.max(Math.ceil($surgicalAssets * random(97,99)/100), 500), $drugAssets = Math.max(Math.ceil($drugAssets * random(97,99)/100), 500), $generalAssets = Math.max(Math.ceil($generalAssets * random(97,99)/100), 500), $entrapmentAssets = Math.max(Math.ceil($entrapmentAssets * random(97,99)/100), 500), $captureAssets = Math.max(Math.ceil($captureAssets * random(97,99)/100), 500), $corpCash = Math.ceil($corpCash * random(97,99)/100)>> -<<if $corpMarket>> - <<if $rep > 5000>> - <<set $slaveAssets += Math.ceil(Math.log($slaveAssets)/Math.log(10)*(($rep-5000)/15000)*200)>> - Since the corporation has its flagship slave market in $arcologies[0].name, your - <<if $rep > 19000>> - worldwide renown greatly - <<elseif $rep > 15000>> - widespread reputation significantly - <<elseif $rep > 10000>> - good reputation moderately - <<else>> - decent reputation slightly - <</if>> - enhances the value of its slaves. - <</if>> +<<if $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 20>> + <<set $corpDivTrainSurgeryTimer++>> <</if>> -<<set _dividendPerShare = 0.2 * $corpProfit / _totalShares, _multplier = 0>> -Since it is -<<if _dividendPerShare > 5>> <<set _dividendPerShare = 5 * Math.floor(0.2 * Math.log(_dividendPerShare)/Math.log(1.25))>> - <<set _multplier = _dividendPerShare>> - incredibly profitable, a massive dividend of @@.yellowgreen;<<print cashFormat(_dividendPerShare)>>@@ -<<elseif _dividendPerShare > 3>> <<set _multplier = 3>> - extremely profitable, a huge dividend of @@.yellowgreen;¤3@@ -<<elseif _dividendPerShare > 2>> <<set _multplier = 2>> - highly profitable, a huge dividend of @@.yellowgreen;¤2@@ -<<elseif _dividendPerShare > 1>> <<set _multplier = 1>> - very profitable, a large dividend of @@.yellowgreen;¤1@@ -<<elseif _dividendPerShare > 0.5>> <<set _multplier = 0.5>> - quite profitable, a moderate dividend of @@.yellowgreen;¤0.5@@ -<<elseif _dividendPerShare > 0.3>> <<set _multplier = 0.3>> - acceptably profitable, a reasonable dividend of @@.yellowgreen;¤0.3@@ -<<elseif _dividendPerShare > 0.2>> <<set _multplier = 0.2>> - moderately profitable, a modest dividend of @@.yellowgreen;¤0.2@@ -<<elseif _dividendPerShare > 0.1>> <<set _multplier = 0.1>> - modestly profitable, a small dividend of @@.yellowgreen;¤0.1@@ -<<elseif $corpProfit > 0>> <<set _multplier = 1+Math.ceil(($corpProfit*0.2*$personalShares)/_totalShares)>> - barely profitable, a meager dividend -<</if>> -<<if _dividendPerShare >= 0.1>>/share<</if>> was paid out to stockholders; you received @@.yellowgreen;<<if _dividendPerShare >= 0.1>> <<print cashFormat($personalShares*_multplier)>> <<else>> <<print cashFormat(_multplier)>> <</if>>@@. -<<if _dividendPerShare >= 0.1>> - <<set $corpCash -= Math.trunc($personalShares*_multplier)>> - <<run cashX(Math.trunc($personalShares*_multplier), "stocks")>> -<<else>> - <<set $corpCash -= Math.trunc($corpProfit*0.2)>> - <<run cashX(_multplier, "stocks")>> -<</if>> - -<<set _roll = random(1,100)>> +<<set _corpOpCost = 0>> -<<if $sharePrice*_totalShares < $corpValue*0.5>> /* market value is less than 50% of value of assets */ - Investors scramble to buy into your booming corporation, causing share prices to skyrocket. Your financial genius is @@.green;widely praised@@. - <<set $sharePrice = Math.ceil($sharePrice*(110 + _roll/5))/100, $rep += 150 + Math.ceil(_roll * 3.5)>> /* 10-30% rise, +150-500 rep */ -<<elseif $sharePrice*_totalShares < $corpValue*0.75>> /* market value is less than 75% of value of assets */ - The market consensus is that your corporation is undervalued, driving share prices sharply up. - <<set $sharePrice = Math.ceil($sharePrice*random(105,108))/100>> /* 5-8% rise */ -<<elseif $sharePrice*_totalShares > $corpValue*1.5>> /* market value is more than 1.5 times value of assets */ - Investors panic as the bubble around your corporation bursts. Share prices are in free fall, and many @@.red;blame you personally@@ for their losses. - <<set $sharePrice = Math.ceil($sharePrice* (90 - _roll/3))/100, $rep -= 300 + Math.ceil(5 * _roll)>> /* 10-43% drop, -300-800 rep */ -<<elseif random(1,100) < $rep/1000>> /* up to 20% chance */ - Share prices in your corporation are driven up by your reputation. - <<set $sharePrice = Math.ceil($sharePrice*either(101,103))/100>> /* 1-3% rise */ -<<elseif $sharePrice*_totalShares > $corpValue>> /* market value is more than value of assets */ - The market consensus is that your corporation is overvalued, driving share prices sharply down. - <<set $sharePrice = Math.ceil($sharePrice*random(92,95))/100>> /* 5-8% drop */ -<<elseif _roll < 20>> /* 20% chance */ - Market volatility drives share prices down. - <<set $sharePrice = Math.ceil($sharePrice*random(97,99))/100>> /* 1-3% drop */ -<<elseif _roll > 80>> /* 20% chance */ - Market volatility drives share prices up. - <<set $sharePrice = Math.ceil($sharePrice*either(101,102))/100>> /* 1-2% rise */ -<</if>> - -Shares in your corporation are trading at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice))>>@@: - -<<if $oldSharePrice == $sharePrice>> - no different from -<<elseif $oldSharePrice > $sharePrice>> - down @@.yellowgreen;<<print cashFormat(Math.ceil(($oldSharePrice-$sharePrice)*100)/100)>>@@ -<<else>> - up @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice - $oldSharePrice)*100)/100)>>@@ -<</if>> -last week. - -<<set $oldSharePrice = Math.ceil($sharePrice)>> - -You hold <<print commaNum($personalShares)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*$personalShares))>>@@ personally, while <<print commaNum($publicShares)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*$publicShares))>>@@ are publicly held. -<<set _PrivateOwnershipPercentage = Math.trunc(($personalShares/_totalShares)*100)>> -<<set _PublicOwnershipPercentage = Math.trunc(($publicShares/_totalShares)*100)>> - -<span id="CorpAction"> <br><br> - -<<if _PrivateOwnershipPercentage < 51>>//You cannot give up majority control.// -<<else>> /* actions that reduce private ownership percentage */ - - <br>Sell personal shares: - <<if $personalShares-1000 > $publicShares>> - <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> - <<set $personalShares -= 1000>> - <<set $publicShares += 1000>> - <<run cashX(Math.ceil($sharePrice*1000), "stocks")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> - <<replace "#CorpAction">> - <br>You sold <<print commaNum(1000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>,@@ driving the share price down slightly. - <</replace>> - <</link>> - <<if $personalShares-5000 > $publicShares>> - | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.95))>>@@">> - <<set $personalShares -= 5000>> - <<set $publicShares += 5000>> - <<run cashX(Math.ceil(($sharePrice*5000)*.95), "stocks")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> - <<replace "#CorpAction">> - <br>You sold <<print commaNum(5000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.95))>>,@@ driving the share price down slightly. - <</replace>> - <</link>> - <</if>> - <<if $personalShares-10000 > $publicShares>> - | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>@@">> - <<set $personalShares -= 10000>> - <<set $publicShares += 10000>> - <<run cashX(Math.ceil(($sharePrice*10000)*.9), "stocks")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> - <<replace "#CorpAction">> - <br>You sold <<print commaNum(10000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>,@@ driving the share price down slightly. - <</replace>> - <</link>> - <</if>> - <<if $personalShares-15000 > $publicShares>> - | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>@@">> - <<set $personalShares -= 15000>> - <<set $publicShares += 15000>> - <<run cashX(Math.ceil(($sharePrice*15000)*.85), "stocks")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> - <<replace "#CorpAction">> - <br>You sold <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>,@@ driving the share price down somewhat. - <</replace>> - <</link>> - <</if>> - <<if $personalShares-20000 > $publicShares>> - | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>@@">> - <<set $personalShares -= 20000>> - <<set $publicShares += 20000>> - <<run cashX(Math.ceil(($sharePrice*20000)*.8), "stocks")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99,$PC.trading >= 100 ? 99 : 98)))/100>> - <<replace "#CorpAction">> - <br>You sold <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>,@@ driving the share price down significantly. - <</replace>> - <</link>> - <</if>> +__Corporation Management__ +<br>''Operational Results'' +/*Divisions doing their thing*/ +<<if $corpDivExtra == 1>> + <<if $mercenariesHelpCorp > 0>> /*This is the cost of acquiring slaves, the level of development is also the amount of slaves on average*/ + <<set $corpCash -= 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2) - ($mercenaries - 2) * 50, + _corpOpCost += 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2) - ($mercenaries - 2) * 50, + _corpDivExtraSlaves = Math.trunc($corpDivExtraDev * (1 + random(-40,40) / 100)), + $corpDivExtraSlaves += _corpDivExtraSlaves>> /*the actual amount of slaves acquired*/ <<else>> - //You cannot give up majority control.// - <</if>> - - <br>Issue new public shares: - <<if $personalShares-1000 > $publicShares>> - <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> - <<set $publicShares += 1000>> - <<set $corpCash += Math.ceil(($sharePrice*1000))>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>The corporation issued <<print commaNum(1000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>,@@ driving the share price down slightly. - <</replace>> - <</link>> - <<if $personalShares-5000 > $publicShares>> - | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.9))>>@@">> - <<set $publicShares += 5000>> - <<set $corpCash += Math.ceil(($sharePrice*5000)*.9)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>The corporation issued <<print commaNum(5000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.9))>>,@@ driving the share price down slightly. - <</replace>> - <</link>> - <</if>> - <<if $personalShares-10000 > $publicShares>> - | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>@@">> - <<set $publicShares += 10000>> - <<set $corpCash += Math.ceil(($sharePrice*10000)*.9)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>The corporation issued <<print commaNum(10000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>,@@ driving the share price down slightly. - <</replace>> - <</link>> - <</if>> - <<if $personalShares-15000 > $publicShares>> - | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>@@">> - <<set $publicShares += 15000>> - <<set $corpCash += Math.ceil(($sharePrice*15000)*.85)>> - <<set $sharePrice = (Math.trunc($sharePrice*random(96,98)))/100>> - <<replace "#CorpAction">> - <br>The corporation issued <<print commaNum(15000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>,@@ driving the share price down somewhat. - <</replace>> - <</link>> - <</if>> - <<if $personalShares-20000 > $publicShares>> - | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>@@">> - <<set $publicShares += 20000>> - <<set $corpCash += Math.ceil(($sharePrice*20000)*.8)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>The corporation issued <<print commaNum(20000)>> new shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>@@ driving the share price down significantly. - <</replace>> - <</link>> - <</if>> + <<set $corpCash -= 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2), + _corpOpCost += 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2), + _corpDivExtraSlaves = Math.trunc($corpDivExtraDev * (1 + random(-40,40) / 100)), + $corpDivExtraSlaves += _corpDivExtraSlaves>> + <</if>> +<</if>> +<<if $corpDivLegal == 1>> + <<set $corpCash -= 12000 * $corpDivLegalDev + 6 * Math.pow($corpDivExtraDev, 2), + _corpOpCost += 12000 * $corpDivLegalDev + 6 * Math.pow($corpDivExtraDev, 2), + _corpDivLegalSlaves = Math.trunc($corpDivLegalDev * (1 + random(-25,25) / 100)), + $corpDivLegalSlaves += _corpDivLegalSlaves>> +<</if>> +<<if $corpDivBreak == 1>> + <<set $corpCash -= 450 * $corpDivBreakSlaves + Math.trunc(0.7 * Math.pow($corpDivBreakDev, 2)), + _corpOpCost += 450 * $corpDivBreakSlaves + Math.trunc(0.7 * Math.pow($corpDivBreakDev, 2)), + _corpDivBreakProc = Math.trunc($corpDivBreakSlaves * 0.3 * (1 + random(-15,15) / 100)), + $corpDivBreakSlaves2 += _corpDivBreakProc, + $corpDivBreakSlaves -= _corpDivBreakProc>> +<</if>> +<<if $corpDivSurgery == 1>> + <<set $corpCash -= 2400 * $corpDivSurgerySlaves + Math.pow($corpDivSurgeryDev, 2), + _corpOpCost += 2400 * $corpDivSurgerySlaves + Math.pow($corpDivSurgeryDev, 2), + _corpDivSurgeryProc = Math.trunc($corpDivSurgerySlaves * 0.5 * (1 + random(-10,10) / 100)), + $corpDivSurgerySlaves2 += _corpDivSurgeryProc, + $corpDivSurgerySlaves -= _corpDivSurgeryProc>> +<</if>> +<<if $corpDivTrain == 1>> + <<set $corpCash -= 700 * $corpDivTrainSlaves + Math.trunc(0.8 * Math.pow($corpDivTrainDev, 2)), + _corpOpCost += 700 * $corpDivTrainSlaves + Math.trunc(0.8 * Math.pow($corpDivTrainDev, 2)), + _corpDivTrainProc = Math.trunc($corpDivTrainSlaves * 0.2 * (1 + random(-15,15) / 100)), + $corpDivTrainSlaves2 += _corpDivTrainProc, + $corpDivTrainSlaves -= _corpDivTrainProc>> +<</if>> +<<if $corpDivArcade == 1>> + <<set _corpOpCost += 200 * $corpDivArcadeSlaves + Math.trunc(0.125 * Math.pow($corpDivArcadeDev, 2)), + _corpDivArcadeRev = Math.trunc(1000 * (1 + random(-5,5) / 100) * $corpDivArcadeSlaves), + $corpRev += _corpDivArcadeRev, + $corpCash += _corpDivArcadeRev, + _corpDivArcadeProc = $corpDivArcadeSlaves * 0.05 * (1 + random(-10,10) / 100)>> + <<if _corpDivArcadeProc > 1>> + <<set _corpDivArcadeProc = Math.trunc(_corpDivArcadeProc)>> + <<elseif _corpDivArcadeProc < 1 && _corpDivArcadeProc > random(1,100) / 100>> + <<set _corpDivArcadeProc = 1>> <<else>> - //You cannot give up majority control.// - <</if>> - -<</if>>/* closes actions that reduce private ownership percentage */ - -<<if _PublicOwnershipPercentage <= 5>><br>//You cannot make the corporation privately held.// -<<else>> /* actions that reduce public ownership percentage */ - <br>Purchase shares from corporation: - <<if $cash > $sharePrice*1000>> - <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> - <<set $personalShares += 1000>> - <<run cashX(forceNeg(Math.ceil($sharePrice*1000)), "stocksTraded")>> - <<set $corpCash += Math.ceil($sharePrice*1000)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>You purchased <<print commaNum(1000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>,@@ from the corporation driving the share price down slightly. - <</replace>> - <</link>> - <<if $cash > $sharePrice*5000>> - | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.95))>>@@">> - <<set $personalShares += 5000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*5000)*.95)), "stocksTraded")>> - <<set $corpCash += Math.ceil(($sharePrice*5000)*.95)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>You purchased <<print commaNum(5000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.95))>>,@@ from the corporation driving the share price down slightly. - <</replace>> - <</link>> - <</if>> - <<if $cash > $sharePrice*10000>> - | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>@@">> - <<set $personalShares += 10000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*10000)*.9)), "stocksTraded")>> - <<set $corpCash += Math.ceil(($sharePrice*10000)*.9)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>You purchased <<print commaNum(10000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>,@@ from the corporation driving the share price down slightly. - <</replace>> - <</link>> - <</if>> - <<if $cash > $sharePrice*15000>> - | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>@@">> - <<set $personalShares += 15000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*15000)*.85)), "stocksTraded")>> - <<set $corpCash += Math.ceil(($sharePrice*15000)*.85)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>You purchased <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>,@@ from the corporation driving the share price down somewhat. - <</replace>> - <</link>> - <</if>> - <<if $cash > $sharePrice*20000>> - | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>@@">> - <<set $personalShares += 20000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*20000)*.8)), "stocksTraded")>> - <<set $corpCash += Math.ceil(($sharePrice*20000)*.8)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(98,99)))/100>> - <<replace "#CorpAction">> - <br>You purchased <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>,@@ from the corporation driving the share price down significantly. - <</replace>> - <</link>> - <</if>> + <<set _corpDivArcadeProc = 0>> + <</if>> + <<set $corpDivArcadeSlaves -= _corpDivArcadeProc>> +<</if>> +<<if $corpDivMenial == 1>> + <<set _corpDivMenialRev = Math.trunc(1250 * (1 + random(-10,10) / 100)) * $corpDivMenialSlaves, + _corpOpCost += 200 * $corpDivMenialSlaves + Math.trunc(0.1 * Math.pow($corpDivMenialDev, 2)), + $corpRev += _corpDivMenialRev, + $corpCash += _corpDivMenialRev, + _corpDivMenialProc = $corpDivMenialSlaves * 0.05 * (1 + random(-10,10) / 100)>> + <<if _corpDivMenialProc > 1>> + <<set _corpDivMenialProc = Math.trunc(_corpDivMenialProc)>> + <<elseif _corpDivMenialProc < 1 && _corpDivMenialProc > random(1,100) / 100>> + <<set _corpDivMenialProc = 1>> <<else>> - //You are unable to purchase <<print commaNum(1000)>> shares at the current share price, valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@.// - <</if>> - - <br>Buy publicly held shares: - <<if $publicShares > 1000 && $cash > $sharePrice*1000>> - <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> - <<set $personalShares += 1000>> - <<set $publicShares -= 1000>> - <<run cashX(forceNeg(Math.ceil($sharePrice*1000)), "stocksTraded")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> - <<replace "#CorpAction">> - <br>You bought <<print commaNum(1000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>,@@ driving the share price up slightly. - <</replace>> - <</link>> - <<if $publicShares > 5000 && $cash >= $sharePrice*5000>> - | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.95))>>@@">> <<set $personalShares += 1000>> - <<set $publicShares -= 5000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*5000)*.95)), "stocksTraded")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> - <<replace "#CorpAction">> - <br>You bought <<print commaNum(5000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.95))>>,@@ driving the share price up slightly. - <</replace>> - <</link>> - <</if>> - <<if $publicShares > 10000 && $cash >= $sharePrice*10000>> - | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>@@">> <<set $personalShares += 10000>> - <<set $publicShares -= 10000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*10000)*.9)), "stocksTraded")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> - <<replace "#CorpAction">> - <br>You bought <<print commaNum(10000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>,@@ driving the share price up slightly. - <</replace>> - <</link>> - <</if>> - <<if $publicShares > 15000 && $cash >= $sharePrice*15000>> - | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>@@">> <<set $personalShares += 15000>> - <<set $publicShares -= 15000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*15000)*.85)), "stocksTraded")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> - <<replace "#CorpAction">> - <br>You bought <<print commaNum(15000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>,@@ driving the share price up somewhat. - <</replace>> - <</link>> - <</if>> - <<if $publicShares > 20000 && $cash >= $sharePrice*20000>> - | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>@@">> <<set $personalShares += 20000>> - <<set $publicShares -= 20000>> - <<run cashX(forceNeg(Math.ceil(($sharePrice*20000)*.8)), "stocksTraded")>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102,$PC.trading >= 100 ? 101 : 102)))/100>> - <<replace "#CorpAction">> - <br>You bought <<print commaNum(20000)>> shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>,@@ driving the share price up significantly. - <</replace>> - <</link>> - <</if>> - <<elseif $publicShares > 1000>> - //You are unable to purchase <<print commaNum(1000)>> shares at the current share price, valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@.// + <<set _corpDivMenialProc = 0>> + <</if>> + <<set $corpDivMenialSlaves -= _corpDivMenialProc>> +<</if>> +<<if $corpDivDairy == 1>> + <<set _corpDivDairyRev = Math.trunc(3000 * (1 + random(-10,10) / 100) * $corpDivDairySlaves), + _corpOpCost += 850 * $corpDivDairySlaves + Math.trunc(0.4 * Math.pow($corpDivDairyDev, 2)), + $corpRev += _corpDivDairyRev, + $corpCash += _corpDivDairyRev, + _corpDivDairyProc = $corpDivDairySlaves * 0.05 * (1 + random(-10,10) / 100)>> + <<if _corpDivDairyProc > 1>> + <<set _corpDivDairyProc = Math.trunc(_corpDivDairyProc)>> + <<elseif _corpDivDairyProc < 1 && _corpDivDairyProc > random(1,100) / 100>> + <<set _corpDivDairyProc = 1>> <<else>> - //You cannot make the corporation privately held.// - <</if>> - - <br>Direct the corporation to buy back publicly held shares: - <<if $publicShares > 1000 && $corpCash > $sharePrice*1000>> - <<link "<<print commaNum(1000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@">> - <<set $publicShares -= 1000>> - <<set $corpCash -= 1000*Math.ceil($sharePrice)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> - <<replace "#CorpAction">> - <br>The corporation bought back <<print commaNum(1000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>,@@ driving the share price up slightly. - <</replace>> - <</link>> - <<if $publicShares > 5000 && $corpCash >= $sharePrice*5000>> - | <<link "<<print commaNum(5000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*5000)*.95))>>@@">> - <<set $publicShares -= 5000>> - <<set $corpCash -= Math.ceil(($sharePrice*5000)*.95)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> - <<replace "#CorpAction">> - <br>The corporation bought back <<print commaNum(5000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil((($sharePrice*5000)*.95)))>>,@@ driving the share price up slightly. - <</replace>> - <</link>> - <</if>> - <<if $publicShares > 10000 && $corpCash >= $sharePrice*10000>> - | <<link "<<print commaNum(10000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>@@">> - <<set $publicShares -= 10000>> - <<set $corpCash -= Math.ceil(($sharePrice*10000)*.9)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> - <<replace "#CorpAction">> - <br>The corporation bought back <<print commaNum(10000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*10000)*.9))>>,@@ driving the share price up slightly. - <</replace>> - <</link>> - <</if>> - <<if $publicShares > 15000 && $corpCash >= $sharePrice*15000>> - | <<link "<<print commaNum(15000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>@@">> - <<set $publicShares -= 15000>> - <<set $corpCash -= Math.ceil(($sharePrice*15000)*.85)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> - <<replace "#CorpAction">> - <br>The corporation bought back <<print commaNum(15000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*15000)*.85))>>,@@ driving the share price up somewhat. - <</replace>> - <</link>> - <</if>> - <<if $publicShares > 20000 && $corpCash >= $sharePrice*20000>> - | <<link "<<print commaNum(20000)>> valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>@@">> - <<set $publicShares -= 20000>> - <<set $corpCash -= Math.ceil(($sharePrice*20000)*.8)>> - <<set $sharePrice = (Math.trunc($sharePrice*either(101,102)))/100>> - <<replace "#CorpAction">> - <br>The corporation bought back <<print commaNum(20000)>> public shares valued at @@.yellowgreen;<<print cashFormat(Math.ceil(($sharePrice*20000)*.8))>>,@@ driving the share price up significantly. - <</replace>> - <</link>> - <</if>> - <<elseif $publicShares > 1000>> - //The corporation is unable to purchase <<print commaNum(1000)>> shares at the current share price, valued at @@.yellowgreen;<<print cashFormat(Math.ceil($sharePrice*1000))>>@@.// + <<set _corpDivDairyProc = 0>> + <</if>> + <<set $corpDivDairySlaves -= _corpDivDairyProc>> +<</if>> +<<if $corpDivWhore == 1>> + <<set _corpDivWhoreRev = Math.trunc(3000 * (1 + random(-5,5) / 100) * $corpDivWhoreSlaves), + _corpOpCost += 700 * $corpDivWhoreSlaves + Math.trunc(0.25 * Math.pow($corpDivWhoreDev, 2)), + $corpRev += _corpDivWhoreRev, + $corpCash += _corpDivWhoreRev, + _corpDivWhoreProc = $corpDivWhoreSlaves * 0.05 * (1 + random(-10,10) / 100)>> + <<if _corpDivWhoreProc > 1>> + <<set _corpDivWhoreProc = Math.trunc(_corpDivWhoreProc)>> + <<elseif _corpDivWhoreProc < 1 && _corpDivWhoreProc > random(1,100) / 100>> + <<set _corpDivWhoreProc = 1>> <<else>> - //You cannot make the corporation privately held.// + <<set _corpDivWhoreProc = 0>> <</if>> + <<set $corpDivWhoreSlaves -= _corpDivWhoreProc>> +<</if>> -<</if>> /* closes actions that reduce public ownership percentage */ -</span> -<br><br><br> - - -<span id="cashOnHand">@@.yellowgreen;<<print cashFormat($corpCash)>>@@</span> in cash on hand. -<span id="update"> </span> <br> +/*division output and moving slaves around*/ +<<set _corpDivBreakSlavesRoom = corpDivBreakSlavesRoom(), +_corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom(), +_corpDivTrainSlavesRoom = corpDivTrainSlavesRoom(), +_corpDivArcadeSlavesRoom = corpDivArcadeSlavesRoom(), +_corpDivMenialSlavesRoom = corpDivMenialSlavesRoom(), +_corpDivDairySlavesRoom = corpDivDairySlavesRoom(), +_corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>> -<<if $generalAssetPrice > 10>> - <<if random(1,100) > 50>> - <<set $generalAssetPrice -= 1>> - <<elseif random(1,100) > 50>> - <<set $generalAssetPrice += 1>> - <</if>> -<<elseif $generalAssetPrice < 4>> - <<set $generalAssetPrice = 5>> -<<elseif $generalAssetPrice < 10>> - <<if random(1,100) > 50>> - <<set $generalAssetPrice += 1>> - <<elseif random(1,100) > 50>> - <<set $generalAssetPrice -= 1>> - <</if>> -<<else>> - <<if random(1,100) > 50>> - <<set $generalAssetPrice += 1>> +<<if $corpDivExtra > 0>> + <br>Extralegal Enslavement: The division + <<if $mercenariesHelpCorp > 0>> + @@.green;acquired <<print _corpDivExtraSlaves>> slaves@@ with the help of your mercenaries. <<else>> - <<set $generalAssetPrice -= 1>> - <</if>> -<</if>> - -<<if $detailedCorpControls != 1>> - <span id="genAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($generalAssetPrice*$generalAssets))>>@@</span> in general assets. - General asset prices are - <<if $generalAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $generalAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $generalAssetPrice == 10>>average<<elseif $generalAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. - | <<link "Buy">> - <<if $generalAssetPrice*500 < $corpCash>> - <<set $generalAssets += 500>> - <<set $corpCash -= 500*$generalAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#genAssets">> - @@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Invest Half">> - <<if $generalAssetPrice*1000 < $corpCash>> - <<set $generalAssets += (Math.trunc($corpCash/($generalAssetPrice*1000)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($generalAssetPrice*1000)))*($generalAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#genAssets">> - @@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Massive investment">> - <<if $generalAssetPrice*1000 < $corpCash>> - <<set $generalAssets += (Math.trunc($corpCash/($generalAssetPrice*500)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($generalAssetPrice*500)))*($generalAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#genAssets">> - @@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Sell">> - <<if $generalAssets >= 1000>> - <<set $generalAssets -= 500>> - <<set $corpCash += 500*$generalAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#genAssets">> - @@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You cannot sell any more assets. - <</replace>> - <</if>> - <</link>> - /* Divest Half command rounds down. This means that on odd numbers a fraction of the asset is lost. - I can't be arsed to care. At this point that amount of money is insignificant.*/ - | <<link "Divest Half">> - <<if $generalAssets >= 100000>> - <<set $generalAssets = Math.trunc($generalAssets/2)>> - <<set $corpCash += $generalAssets*$generalAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#genAssets">> - @@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You don't have enough assets to justify bulk divestment. - <</replace>> + @@.green;acquired <<print _corpDivExtraSlaves>>.@@ + <</if>> + <<if $corpDivExtraToArcade == 1 && _corpDivArcadeSlavesRoom > 0>> /*slaves getting auto moved around*/ + <<if $corpDivExtraSlaves >= _corpDivArcadeSlavesRoom>> + It moved <<if _corpDivArcadeSlavesRoom > 1>><<print _corpDivArcadeSlavesRoom>> slaves<<else>>one slave<</if>> to the arcade division. + <<set $corpDivExtraSlaves -= _corpDivArcadeSlavesRoom, + $corpDivArcadeSlaves = $corpDivArcadeDev, + _corpDivArcadeSlavesRoom = corpDivArcadeSlavesRoom()>> + <<elseif $corpDivExtraSlaves > 0>> + It moved <<if $corpDivExtraSlaves > 1>><<print $corpDivExtraSlaves>> slaves<<else>>one slave<</if>> to the arcade division. + <<set $corpDivArcadeSlaves += $corpDivExtraSlaves, + $corpDivExtraSlaves = 0, + _corpDivArcadeSlavesRoom = corpDivArcadeSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivExtraToBreak == 1 && _corpDivBreakSlavesRoom > 0>> + <<if $corpDivExtraSlaves >= _corpDivBreakSlavesRoom>> + It moved <<if _corpDivBreakSlavesRoom > 1>><<print _corpDivBreakSlavesRoom>> slaves<<else>>one slave<</if>> to the slave breaking division. + <<set $corpDivExtraSlaves -= _corpDivBreakSlavesRoom, + $corpDivBreakSlaves = $corpDivBreakDev, + _corpDivBreakSlavesRoom = corpDivBreakSlavesRoom()>> + <<elseif $corpDivExtraSlaves > 0>> + It moved <<if $corpDivExtraSlaves > 1>><<print $corpDivExtraSlaves>> slaves<<else>>one slave<</if>> to the slave breaking division. + <<set $corpDivBreakSlaves += $corpDivExtraSlaves, + $corpDivExtraSlaves = 0, + _corpDivBreakSlavesRoom = corpDivBreakSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivExtraToMarket == 1 && $corpDivExtraSlaves > 0>> + It immediately sold <<if $corpDivExtraSlaves > 1>>$corpDivExtraSlaves slaves<<elseif $corpDivExtraSlaves > 0>>one slave<</if>> + <<set _corpDivExtraRev = $corpDivExtraSlaves * 10 * menialSlaveCost(-_corpDivExtraSlaves), + $corpCash += _corpDivExtraRev, + $corpRev += _corpDivExtraRev, + $corpDivExtraSlaves = 0>> + to the market and made @@.yellowgreen;<<print cashFormat(_corpDivExtraRev)>>.@@ + <<elseif $corpDivExtraSlaves > 0>> + It holds <<if $corpDivExtraSlaves > 1>>@@.green;$corpDivExtraSlaves slaves@@<<else>>@@.green;one slave@@<</if>> at the end of the week. + <<if $corpDivExtraSlaves > $corpDivExtraDev * 2>> /*The division can store some slaves it has acquired/processed, but not a huge amount*/ + <<set _corpDivExtraCapSlaves = $corpDivExtraSlaves - $corpDivExtraDev * 2, + _corpDivExtraRev = _corpDivExtraCapSlaves * 10 * menialSlaveCost(-_corpDivExtraCapSlaves), + $corpCash += _corpDivExtraRev, + $corpRev += _corpDivExtraRev, + $menialDemandFactor -= _corpDivExtraCapSlaves, + $corpDivExtraSlaves = $corpDivExtraDev * 2>> /*slaves over holding capacity get sold*/ + But it ran out of storage space and had to sell <<if _corpDivExtraCapSlaves > 1>>@@.red;<<print _corpDivExtraCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivExtraRev)>>.@@ <</if>> - <</link>> -<<else>> - <span id="generalAssetsDisp">@@.yellowgreen;<<print cashFormat($generalAssetPrice*$generalAssets)>>@@ (<<print commaNum(Math.ceil($generalAssets/500))>> unit<<if Math.ceil($generalAssets/500) != 1>>s<</if>>)</span> in general assets. - Prices are - <<if $generalAssetPrice > 10>> - @@.yellowgreen;<<print cashFormat($generalAssetPrice*500)>>ea@@. - <<elseif $generalAssetPrice < 10>> - @@.gold;<<print cashFormat($generalAssetPrice*500)>>ea@@. - <<else>> - <<print cashFormat($generalAssetPrice*500)>>ea. <</if>> - <span id="controlsgeneral"><<CorpDevBuySell "general" "Numgeneral">></span><span id='generalAssetsPurchasing'></span> -<</if>> <br> +<</if>> -<<set $slaveAssetPrice = Math.trunc(10*$slaveCostFactor)>> - -<<if $detailedCorpControls != 1>> - <span id="slavAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($slaveAssetPrice*$slaveAssets))>>@@</span> in slaves. - Slave prices are - <<if $slaveAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $slaveAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $slaveAssetPrice == 10>>average<<elseif $slaveAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. - | <<link "Buy">> - <<if $slaveAssetPrice*500 < $corpCash>> - <<set $slaveAssets += 500>> - <<set $corpCash -= 500*$slaveAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#slavAssets">> - @@.yellowgreen;<<print cashFormat($slaveAssetPrice*$slaveAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Invest Half">> - <<if $slaveAssetPrice*1000 < $corpCash>> - <<set $slaveAssets += (Math.trunc($corpCash/($slaveAssetPrice*1000)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($slaveAssetPrice*1000)))*($slaveAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#slavAssets">> - @@.yellowgreen;<<print cashFormat($slaveAssetPrice*$slaveAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Massive investment">> - <<if $slaveAssetPrice*1000 < $corpCash>> - <<set $slaveAssets += (Math.trunc($corpCash/($slaveAssetPrice*500)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($slaveAssetPrice*500)))*($slaveAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#slavAssets">> - @@.yellowgreen;<<print cashFormat($slaveAssetPrice*$slaveAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> +<<if $corpDivLegal > 0>> + <br>Legal Enslavement: The division @@.green;acquired <<print _corpDivLegalSlaves>>.@@ + <<if $corpDivLegalToMenial == 1 && _corpDivMenialSlavesRoom > 0>> + <<if $corpDivLegalSlaves >= _corpDivMenialSlavesRoom>> + It moved <<if _corpDivMenialSlavesRoom > 1>><<print _corpDivMenialSlavesRoom>> slaves<<else>>one slave<</if>> to the menial services division. + <<set $corpDivLegalSlaves -= _corpDivMenialSlavesRoom, + $corpDivMenialSlaves = $corpDivMenialDev, + _corpDivMenialSlavesRoom = corpDivMenialSlavesRoom()>> + <<elseif $corpDivLegalSlaves > 0>> + It moved <<if $corpDivLegalSlaves > 1>>$corpDivLegalSlaves slaves<<else>>one slave<</if>> to the menial services division. + <<set $corpDivMenialSlaves += $corpDivLegalSlaves, + $corpDivLegalSlaves = 0, + _corpDivMenialSlavesRoom = corpDivMenialSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivLegalToSurgery == 1 && _corpDivSurgerySlavesRoom > 0>> + <<if $corpDivLegalSlaves >= _corpDivSurgerySlavesRoom>> + It moved <<if _corpDivSurgerySlavesRoom > 1>><<print _corpDivSurgerySlavesRoom>> slaves<<else>>one slave<</if>> to the physical modification division. + <<set $corpDivLegalSlaves -= _corpDivSurgerySlavesRoom, + $corpDivSurgerySlaves = $corpDivSurgeryDev, + _corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom()>> + <<elseif $corpDivLegalSlaves > 0>> + It moved <<if $corpDivLegalSlaves > 1>>$corpDivLegalSlaves slaves<<else>>one slave<</if>> to the physical modification division. + <<set $corpDivSurgerySlaves += $corpDivLegalSlaves, + $corpDivLegalSlaves = 0, + _corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivLegalToTrain == 1 && _corpDivTrainSlavesRoom > 0>> + <<if $corpDivLegalSlaves >= _corpDivTrainSlavesRoom>> + It moved <<if _corpDivTrainSlavesRoom > 1>><<print _corpDivTrainSlavesRoom>> slaves<<else>>one slave<</if>> to the slave training division. + <<set $corpDivLegalSlaves -= _corpDivTrainSlavesRoom, + $corpDivTrainSlaves = $corpDivTrainDev, + _corpDivTrainSlavesRoom = corpDivTrainSlavesRoom()>> + <<elseif $corpDivLegalSlaves > 0>> + It moved <<if $corpDivLegalSlaves > 1>>$corpDivLegalSlaves slaves<<else>>one slave<</if>> to the slave training division. + <<set $corpDivTrainSlaves += $corpDivLegalSlaves, + $corpDivLegalSlaves = 0, + _corpDivTrainSlavesRoom = corpDivTrainSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivLegalToMarket == 1 && $corpDivLegalSlaves > 0>> + It immediately sold <<if $corpDivLegalSlaves > 1>><<print $corpDivLegalSlaves>> slaves<<else>>one slave<</if>> + <<set _corpDivLegalRev = $corpDivLegalSlaves * 10 * menialSlaveCost(-$corpDivLegalSlaves), + $corpCash += _corpDivLegalRev, + $corpRev += _corpDivLegalRev, + $corpDivLegalSlaves = 0>> + to the market and made @@.yellowgreen;<<print cashFormat(_corpDivLegalRev)>>.@@ + <<elseif $corpDivLegalSlaves > 0>> + It holds <<if $corpDivLegalSlaves > 1>>@@.green;$corpDivLegalSlaves slaves@@<<else>>@@.green;one slave@@<</if>> at the end of the week. + <<if $corpDivLegalSlaves > $corpDivLegalDev * 2>> + <<set _corpDivLegalCapSlaves = $corpDivLegalSlaves - $corpDivLegalDev * 2, + _corpDivLegalRev = _corpDivLegalCapSlaves * 15 * menialSlaveCost(-_corpDivLegalCapSlaves), + $corpCash += _corpDivLegalRev, + $corpRev += _corpDivLegalRev, + $menialDemandFactor -= _corpDivLegalCapSlaves, + $corpDivLegalSlaves = $corpDivLegalDev * 2>> + But it ran out of storage space and had to sell <<if _corpDivBreakCapSlaves > 1>>@@.red;<<print _corpDivBreakCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivLegalRev)>>.@@ <</if>> - <</link>> - | <<link "Sell">> - <<if $slaveAssets >= 1000>> - <<set $slaveAssets -= 500>> - <<set $corpCash += 500*$slaveAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#slavAssets">> - @@.yellowgreen;<<print cashFormat($slaveAssetPrice*$slaveAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You cannot sell any more assets. - <</replace>> - <</if>> - <</link>> - | <<link "Divest Half">> - <<if $slaveAssets >= 100000>> - <<set $slaveAssets = Math.trunc($slaveAssets/2)>> - <<set $corpCash += $slaveAssets*$slaveAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#slavAssets">> - @@.yellowgreen;<<print cashFormat($slaveAssetPrice*$slaveAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You don't have enough assets to justify bulk divestment. - <</replace>> - <</if>> - <</link>> -<<else>> - <span id="slaveAssetsDisp">@@.yellowgreen;<<print cashFormat(Math.ceil($slaveAssetPrice*$slaveAssets))>>@@ (<<print commaNum(Math.ceil($slaveAssets/500))>> unit<<if Math.ceil($slaveAssets/500) != 1>>s<</if>>)</span> in slaves. - Prices are - <<if $slaveAssetPrice > 10>> - @@.yellowgreen;<<print cashFormat($slaveAssetPrice*500)>>ea@@ - <<elseif $slaveAssetPrice < 10>> - @@.gold;<<print cashFormat($slaveAssetPrice*500)>>ea@@ - <<else>> - <<print cashFormat($slaveAssetPrice*500)>>ea - <</if>> - <span id="controlsslave"><<CorpDevBuySell "slave" "Numslave">></span><span id='slaveAssetsPurchasing'></span> -<</if>> <br> - -<<if $entrapmentAssetPrice > 10>> - <<if random(1,100) > 50>> - <<set $entrapmentAssetPrice -= 1>> - <<elseif random(1,100) > 50>> - <<set $entrapmentAssetPrice += 1>> - <</if>> -<<elseif $entrapmentAssetPrice < 4>> - <<set $entrapmentAssetPrice = 5>> -<<elseif $entrapmentAssetPrice < 10>> - <<if random(1,100) > 50>> - <<set $entrapmentAssetPrice += 1>> - <<elseif random(1,100) > 50>> - <<set $entrapmentAssetPrice -= 1>> - <</if>> -<<elseif $entrapmentAssetPrice == 10>> - <<if random(1,100) > 50>> - <<set $entrapmentAssetPrice += 1>> - <<else>> - <<set $entrapmentAssetPrice -= 1>> <</if>> -<<else>> - <<set $entrapmentAssetPrice = 5>> <</if>> - -<<if $detailedCorpControls != 1>> - <span id="trapAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($entrapmentAssetPrice*$entrapmentAssets))>>@@</span> in legal enslavement assets. - Legal enslavement asset prices are - <<if $entrapmentAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $entrapmentAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $entrapmentAssetPrice == 10>>average<<elseif $entrapmentAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. - | <<link "Buy">> - <<if $entrapmentAssetPrice*500 < $corpCash>> - <<set $entrapmentAssets += 500>> - <<set $corpCash -= 500*$entrapmentAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trapAssets">> - @@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Invest Half">> - <<if $entrapmentAssetPrice*1000 < $corpCash>> - <<set $entrapmentAssets += (Math.trunc($corpCash/($entrapmentAssetPrice*1000)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($entrapmentAssetPrice*1000)))*($entrapmentAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trapAssets">> - @@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Massive investment">> - <<if $entrapmentAssetPrice*1000 < $corpCash>> - <<set $entrapmentAssets += (Math.trunc($corpCash/($entrapmentAssetPrice*500)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($entrapmentAssetPrice*500)))*($entrapmentAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trapAssets">> - @@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Sell">> - <<if $entrapmentAssets >= 1000>> - <<set $entrapmentAssets -= 500>> - <<set $corpCash += 500*$entrapmentAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trapAssets">> - @@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You cannot sell any more assets. - <</replace>> - <</if>> - <</link>> - | <<link "Divest Half">> - <<if $entrapmentAssets >= 100000>> - <<set $entrapmentAssets = Math.trunc($entrapmentAssets/2)>> - <<set $corpCash += $entrapmentAssets*$entrapmentAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trapAssets">> - @@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You don't have enough assets to justify bulk divestment. - <</replace>> - <</if>> - <</link>> -<<else>> - <span id="entrapmentAssetsDisp">@@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*$entrapmentAssets)>>@@ (<<print commaNum(Math.floor($entrapmentAssets/500))>> unit<<if Math.floor($entrapmentAssets/500) != 1>>s<</if>>)</span> in legal enslavement assets. - Prices are - <<if $entrapmentAssetPrice > 10>> - @@.yellowgreen;<<print cashFormat($entrapmentAssetPrice*500)>>ea@@ - <<elseif $entrapmentAssetPrice < 10>> - @@.gold;<<print cashFormat($entrapmentAssetPrice*500)>>ea@@ - <<else>> - <<print cashFormat($entrapmentAssetPrice*500)>>ea - <</if>> - <span id="controlsentrapment"><<CorpDevBuySell "entrapment" "Numentrapment">></span><span id='entrapmentAssetsPurchasing'></span> -<</if>> <br> -<<if $captureAssetPrice > 10>> - <<if random(1,100) > 50>> - <<set $captureAssetPrice -= 1>> - <<elseif random(1,100) > 50>> - <<set $captureAssetPrice += 1>> - <</if>> -<<elseif $captureAssetPrice < 4>> - <<set $captureAssetPrice = 5>> -<<elseif $captureAssetPrice < 10>> - <<if random(1,100) > 50>> - <<set $captureAssetPrice += 1>> - <<elseif random(1,100) > 50>> - <<set $captureAssetPrice -= 1>> - <</if>> -<<elseif $captureAssetPrice == 10>> - <<if random(1,100) > 50>> - <<set $captureAssetPrice += 1>> - <<else>> - <<set $captureAssetPrice -= 1>> - <</if>> -<<else>> - <<set $captureAssetPrice = 5>> -<</if>> - -<<if $detailedCorpControls != 1>> - <span id="capAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($captureAssetPrice*$captureAssets))>>@@</span> in conflict zone enslavement assets. - Extralegal enslavement asset prices are - <<if $captureAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $captureAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $captureAssetPrice == 10>>average<<elseif $captureAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. - | <<link "Buy">> - <<if $captureAssetPrice*500 < $corpCash>> - <<set $captureAssets += 500>> - <<set $corpCash -= 500*$captureAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#capAssets">> - @@.yellowgreen;<<print cashFormat($captureAssetPrice*$captureAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Invest Half">> - <<if $captureAssetPrice*1000 < $corpCash>> - <<set $captureAssets += (Math.trunc($corpCash/($captureAssetPrice*1000)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($captureAssetPrice*1000)))*($captureAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#capAssets">> - @@.yellowgreen;<<print cashFormat($captureAssetPrice*$captureAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Massive investment">> - <<if $captureAssetPrice*1000 < $corpCash>> - <<set $captureAssets += (Math.trunc($corpCash/($captureAssetPrice*500)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($captureAssetPrice*500)))*($captureAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#capAssets">> - @@.yellowgreen;<<print cashFormat($captureAssetPrice*$captureAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Sell">> - <<if $captureAssets >= 1000>> - <<set $captureAssets -= 500>> - <<set $corpCash += 500*$captureAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#capAssets">> - @@.yellowgreen;<<print cashFormat($captureAssetPrice*$captureAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You cannot sell any more assets. - <</replace>> - <</if>> - <</link>> - | <<link "Divest Half">> - <<if $captureAssets >= 100000>> - <<set $captureAssets = Math.trunc($captureAssets/2)>> - <<set $corpCash += $captureAssets*$captureAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#capAssets">> - @@.yellowgreen;<<print cashFormat($captureAssetPrice*$captureAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You don't have enough assets to justify bulk divestment. - <</replace>> +<<if $corpDivBreak > 0>> + <br>Slave Breaking: The division broke <<if _corpDivBreakProc > 1>><<print _corpDivBreakProc>> slaves.<<elseif _corpDivBreakProc > 0>>one slave.<<else>>@@.red;none of its slaves.@@<</if>> The division is still busy breaking $corpDivBreakSlaves slaves. + <<if $corpDivBreakFromMarket == 1 && _corpDivBreakSlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivBreakSlavesRoom>> slaves that need breaking from the market. + <<set _corpDivBreakAssetsSlave = _corpDivBreakSlavesRoom * 10 * menialSlaveCost(_corpDivBreakSlavesRoom), + $corpCash -= _corpDivBreakAssetsSlave, + $corpAssetsSlave += _corpDivBreakAssetsSlave, + $corpDivBreakSlaves = $corpDivBreakDev>> + <</if>> + <<if $corpDivBreakToMenial == 1 && _corpDivMenialSlavesRoom > 0>> + <<if $corpDivBreakSlaves2 >= _corpDivMenialSlavesRoom>> + It moved <<if _corpDivMenialSlavesRoom > 1>><<print _corpDivMenialSlavesRoom>> slaves<<else>>one slave<</if>> to the menial services division. + <<set $corpDivBreakSlaves2 -= _corpDivMenialSlavesRoom, + $corpDivMenialSlaves = $corpDivMenialDev, + _corpDivMenialSlavesRoom = corpDivMenialSlavesRoom()>> + <<elseif $corpDivBreakSlaves2 > 0>> + It moved <<if $corpDivBreakSlaves2 > 1>>$corpDivBreakSlaves2 slaves<<else>>one slave<</if>> to the menial services division. + <<set $corpDivMenialSlaves += $corpDivBreakSlaves2, + $corpDivBreakSlaves2 = 0, + _corpDivMenialSlavesRoom = corpDivMenialSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivBreakToSurgery == 1 && _corpDivSurgerySlavesRoom > 0>> + <<if $corpDivBreakSlaves2 >= _corpDivSurgerySlavesRoom>> + It moved <<if _corpDivSurgerySlavesRoom > 1>><<print _corpDivSurgerySlavesRoom>> slaves<<else>>one slave<</if>> to the physical modification division. + <<set $corpDivBreakSlaves2 -= _corpDivSurgerySlavesRoom, + $corpDivSurgerySlaves = $corpDivSurgeryDev, + _corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom()>> + <<elseif $corpDivBreakSlaves2 > 0>> + It moved <<if $corpDivBreakSlaves2 > 1>>$corpDivBreakSlaves2 slaves<<else>>one slave<</if>> to the physical modification division. + <<set $corpDivSurgerySlaves += $corpDivBreakSlaves2, + $corpDivBreakSlaves2 = 0, + _corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivBreakToTrain == 1 && _corpDivTrainSlavesRoom > 0>> + <<if $corpDivBreakSlaves2 >= _corpDivTrainSlavesRoom>> + It moved <<if _corpDivTrainSlavesRoom > 1>><<print _corpDivTrainSlavesRoom>> slaves<<else>>one slave<</if>> to the slave training division. + <<set $corpDivBreakSlaves2 -= _corpDivTrainSlavesRoom, + $corpDivTrainSlaves = $corpDivTrainDev, + _corpDivTrainSlavesRoom = corpDivTrainSlavesRoom()>> + <<elseif $corpDivBreakSlaves2 > 0>> + It moved <<if $corpDivBreakSlaves2 > 1>>$corpDivBreakSlaves2 slaves<<else>>one slave<</if>> to the slave training division. + <<set $corpDivTrainSlaves += $corpDivBreakSlaves2, + $corpDivBreakSlaves2 = 0, + _corpDivTrainSlavesRoom = corpDivTrainSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivBreakToMarket == 1 && $corpDivBreakSlaves2 > 0>> + It immediately sold <<if $corpDivBreakSlaves2 > 1>>$corpDivBreakSlaves2 slaves<<else>>one slave<</if>> + <<set _corpDivBreakRev = $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2), + $corpCash += _corpDivBreakRev, + $corpRev += _corpDivBreakRev, + $corpDivBreakSlaves2 = 0>> + to the market and made @@.yellowgreen;<<print cashFormat(_corpDivBreakRev)>>.@@ + <<elseif $corpDivBreakSlaves2 > 0>> + It is holding <<if $corpDivBreakSlaves2 > 1>>$corpDivBreakSlaves2 broken slaves<<else>>one broken slave<</if>> at the end of the week. + <<if $corpDivBreakSlaves2 > Math.trunc($corpDivBreakDev * 0.6)>> + <<set _corpDivBreakCapSlaves = $corpDivBreakSlaves2 - Math.trunc($corpDivBreakDev * 0.6), + _corpDivBreakRev = _corpDivBreakCapSlaves * 15 * menialSlaveCost(-_corpDivBreakCapSlaves), + $corpCash += _corpDivBreakRev, + $corpRev += _corpDivBreakRev, + $menialDemandFactor -= _corpDivBreakCapSlaves, + $corpDivBreakSlaves2 = Math.trunc($corpDivBreakDev * 0.6)>> + But it ran out of storage space and had to sell <<if _corpDivBreakCapSlaves > 1>>@@.red;<<print _corpDivBreakCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivBreakRev)>>.@@ <</if>> - <</link>> -<<else>> - <span id="captureAssetsDisp">@@.yellowgreen;<<print cashFormat($captureAssetPrice*$captureAssets)>>@@ (<<print commaNum(Math.floor($captureAssets/500))>> unit<<if Math.floor($captureAssets/500) != 1>>s<</if>>)</span> in conflict zone enslavement assets. - Prices are - <<if $captureAssetPrice > 10>> - @@.yellowgreen;<<print cashFormat($captureAssetPrice*500)>>ea@@ - <<elseif $captureAssetPrice < 10>> - @@.gold;<<print cashFormat($captureAssetPrice*500)>>ea@@ - <<else>> - <<print cashFormat($captureAssetPrice*500)>>ea - <</if>> - <span id="controlscapture"><<CorpDevBuySell "capture" "Numcapture">></span><span id='captureAssetsPurchasing'></span> -<</if>> <br> - -<<if $trainingAssetPrice > 10>> - <<if random(1,100) > 50>> - <<set $trainingAssetPrice -= 1>> - <<elseif random(1,100) > 50>> - <<set $trainingAssetPrice += 1>> - <</if>> -<<elseif $trainingAssetPrice < 4>> - <<set $trainingAssetPrice = 5>> -<<elseif $trainingAssetPrice < 10>> - <<if random(1,100) > 50>> - <<set $trainingAssetPrice += 1>> - <<elseif random(1,100) > 50>> - <<set $trainingAssetPrice -= 1>> <</if>> -<<elseif $trainingAssetPrice > 5>> - <<if random(1,100) > 50>> - <<set $trainingAssetPrice += 1>> - <<else>> - <<set $trainingAssetPrice -= 1>> - <</if>> -<<else>> - <<set $trainingAssetPrice = 5>> <</if>> - -<<if $detailedCorpControls != 1>> - <span id="trainAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($trainingAssetPrice*$trainingAssets))>>@@</span> in slave training assets. - Slave training asset prices are - <<if $trainingAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $trainingAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $trainingAssetPrice == 10>>average<<elseif $trainingAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. - | <<link "Buy">> - <<if $trainingAssetPrice*500 < $corpCash>> - <<set $trainingAssets += 500>> - <<set $corpCash -= 500*$trainingAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trainAssets">> - @@.yellowgreen;<<print cashFormat($trainingAssetPrice*$trainingAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Invest Half">> - <<if $trainingAssetPrice*1000 < $corpCash>> - <<set $trainingAssets += (Math.trunc($corpCash/($trainingAssetPrice*1000)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($trainingAssetPrice*1000)))*($trainingAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trainAssets">> - @@.yellowgreen;<<print cashFormat($trainingAssetPrice*$trainingAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Massive investment">> - <<if $trainingAssetPrice*1000 < $corpCash>> - <<set $trainingAssets += (Math.trunc($corpCash/($trainingAssetPrice*500)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($trainingAssetPrice*500)))*($trainingAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trainAssets">> - @@.yellowgreen;<<print cashFormat($trainingAssetPrice*$trainingAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Sell">> - <<if $trainingAssets >= 1000>> - <<set $trainingAssets -= 500>> - <<set $corpCash += 500*$trainingAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trainAssets">> - @@.yellowgreen;<<print cashFormat($trainingAssetPrice*$trainingAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You cannot sell any more assets. - <</replace>> - <</if>> - <</link>> - | <<link "Divest Half">> - <<if $trainingAssets >= 100000>> - <<set $trainingAssets = Math.trunc($trainingAssets/2)>> - <<set $corpCash += $trainingAssets*$trainingAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#trainAssets">> - @@.yellowgreen;<<print cashFormat($trainingAssetPrice*$trainingAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You don't have enough assets to justify bulk divestment. - <</replace>> - <</if>> - <</link>> -<<else>> - <span id="trainingAssetsDisp">@@.yellowgreen;<<print cashFormat($trainingAssetPrice*$trainingAssets)>>@@ (<<print commaNum(Math.floor($trainingAssets/500))>> unit<<if Math.floor($trainingAssets/500) != 1>>s<</if>>)</span> of slave training assets. - Prices are - <<if $trainingAssetPrice > 10>> - @@.yellowgreen;<<print cashFormat($trainingAssetPrice*500)>>ea@@ - <<elseif $trainingAssetPrice < 10>> - @@.gold;<<print cashFormat($trainingAssetPrice*500)>>ea@@ - <<else>> - <<print cashFormat($trainingAssetPrice*500)>>ea - <</if>> - <span id="controlstraining"><<CorpDevBuySell "training" "Numtraining">></span><span id='trainingAssetsPurchasing'></span> -<</if>> <br> -<<if $surgicalAssetPrice > 10>> - <<if random(1,100) > 50>> - <<set $surgicalAssetPrice -= 1>> - <<elseif random(1,100) > 50>> - <<set $surgicalAssetPrice += 1>> - <</if>> -<<elseif $surgicalAssetPrice < 4>> - <<set $surgicalAssetPrice = 5>> -<<elseif $surgicalAssetPrice < 10>> - <<if random(1,100) > 50>> - <<set $surgicalAssetPrice += 1>> - <<elseif random(1,100) > 50>> - <<set $surgicalAssetPrice -= 1>> - <</if>> -<<elseif $surgicalAssetPrice == 10>> - <<if random(1,100) > 50>> - <<set $surgicalAssetPrice += 1>> - <<else>> - <<set $surgicalAssetPrice -= 1>> - <</if>> -<<else>> - <<set $surgicalAssetPrice = 5>> -<</if>> - -<<if $detailedCorpControls != 1>> - <span id="surgAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($surgicalAssetPrice*$surgicalAssets))>>@@</span> in surgical assets. - Surgical asset prices are - <<if $surgicalAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $surgicalAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $surgicalAssetPrice == 10>>average<<elseif $surgicalAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. - | <<link "Buy">> - <<if $surgicalAssetPrice*500 < $corpCash>> - <<set $surgicalAssets += 500>> - <<set $corpCash -= 500*$surgicalAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#surgAssets">> - @@.yellowgreen;<<print cashFormat($surgicalAssetPrice*$surgicalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> +<<if $corpDivSurgery > 0>> + <br>Physical Slave Modifications: The division finished working on <<if _corpDivSurgeryProc > 1>><<print _corpDivSurgeryProc>> slaves.<<elseif _corpDivSurgeryProc > 0>>one slave.<<else>>@@.red;none of its slaves.@@<</if>> The division is still working on $corpDivSurgerySlaves slaves. + <<if $corpDivSurgeryFromMarket == 1 && _corpDivSurgerySlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivSurgerySlavesRoom>> slaves that could use some work done to their bodies from the market. + <<set _corpDivSurgeryAssetsSlave = _corpDivSurgerySlavesRoom * 15 * menialSlaveCost(_corpDivSurgerySlavesRoom), + $corpCash -= _corpDivSurgeryAssetsSlave, + $corpAssetsSlave += _corpDivSurgeryAssetsSlave, + $corpDivSurgerySlaves = $corpDivSurgeryDev, + _corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom()>> + <</if>> + <<if $corpDivSurgeryToDairy == 1 && _corpDivDairySlavesRoom > 0>> + <<if $corpDivSurgerySlaves2 >= _corpDivDairySlavesRoom>> + It moved <<if _corpDivDairySlavesRoom > 1>><<print _corpDivDairySlavesRoom>> slaves<<else>>one slave<</if>> to the dairy division. + <<set $corpDivSurgerySlaves2 -= _corpDivDairySlavesRoom, + $corpDivDairySlaves = $corpDivDairyDev, + _corpDivDairySlavesRoom = corpDivDairySlavesRoom()>> + <<elseif $corpDivSurgerySlaves2 > 0>> + It moved <<if $corpDivSurgerySlaves2 > 1>>$corpDivSurgerySlaves2 slaves<<else>>one slave<</if>> to the dairy division. + <<set $corpDivDairySlaves += $corpDivSurgerySlaves2, + $corpDivSurgerySlaves2 = 0, + _corpDivDairySlavesRoom = corpDivDairySlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivSurgeryToTrain == 1 && _corpDivTrainSlavesRoom > 0>> + <<if $corpDivSurgerySlaves2 >= _corpDivTrainSlavesRoom>> + It moved <<if _corpDivTrainSlavesRoom > 1>><<print _corpDivTrainSlavesRoom>> slaves<<else>>one slave<</if>> to the slave training division. + <<set $corpDivSurgerySlaves2 -= _corpDivTrainSlavesRoom, + $corpDivTrainSlaves = $corpDivTrainDev, + _corpDivTrainSlavesRoom = corpDivTrainSlavesRoom()>> + <<elseif $corpDivSurgerySlaves2 > 0>> + It moved <<if $corpDivSurgerySlaves2 > 1>>$corpDivSurgerySlaves2 slaves<<else>>one slave<</if>> to the slave training division. + <<set $corpDivTrainSlaves += $corpDivSurgerySlaves2, + $corpDivSurgerySlaves2 = 0, + _corpDivTrainSlavesRoom = corpDivTrainSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivSurgeryToMarket == 1 && $corpDivSurgerySlaves2 > 0>> + It immediately sold <<if $corpDivSurgerySlaves2 > 1>><<print $corpDivSurgerySlaves2>> slaves<<else>>one slave<</if>> + <<set _corpDivSurgeryRev = $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2), + $corpCash += _corpDivSurgeryRev, + $corpRev += _corpDivSurgeryRev, + $corpDivSurgerySlaves2 = 0>> + to the market and made @@.yellowgreen;<<print cashFormat(_corpDivSurgeryRev)>>.@@ + <<elseif $corpDivSurgerySlaves2 > 0>> + It is holding <<if $corpDivSurgerySlaves2 > 1>>@@.green;$corpDivSurgerySlaves2 improved slaves@@<<else>>@@.green;one improved slave@@<</if>> at the end of the week. + <<if $corpDivSurgerySlaves2 > Math.trunc($corpDivSurgeryDev)>> + <<set _corpDivSurgeryCapSlaves = $corpDivSurgerySlaves2 - Math.trunc($corpDivSurgeryDev), + _corpDivSurgeryRev = _corpDivSurgeryCapSlaves * 23 * menialSlaveCost(-_corpDivSurgeryCapSlaves), + $corpCash += _corpDivSurgeryRev, + $corpRev += _corpDivSurgeryRev, + $menialDemandFactor -= _corpDivSurgeryCapSlaves, + $corpDivSurgerySlaves2 = Math.trunc($corpDivSurgeryDev)>> + But it ran out of storage space and had to sell <<if _corpDivSurgeryCapSlaves > 1>>@@.red;<<print _corpDivSurgeryCapSlaves>> slaves@@<<else>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivSurgeryRev)>>.@@ <</if>> - <</link>> - | <<link "Invest Half">> - <<if $surgicalAssetPrice*1000 < $corpCash>> - <<set $surgicalAssets += (Math.trunc($corpCash/($surgicalAssetPrice*1000)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($surgicalAssetPrice*1000)))*($surgicalAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#surgAssets">> - @@.yellowgreen;<<print cashFormat($surgicalAssetPrice*$surgicalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Massive investment">> - <<if $surgicalAssetPrice*1000 < $corpCash>> - <<set $surgicalAssets += (Math.trunc($corpCash/($surgicalAssetPrice*500)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($surgicalAssetPrice*500)))*($surgicalAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#surgAssets">> - @@.yellowgreen;<<print cashFormat($surgicalAssetPrice*$surgicalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Sell">> - <<if $surgicalAssets >= 1000>> - <<set $surgicalAssets -= 500>> - <<set $corpCash += 500*$surgicalAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#surgAssets">> - @@.yellowgreen;<<print cashFormat($surgicalAssetPrice*$surgicalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You cannot sell any more assets. - <</replace>> - <</if>> - <</link>> - | <<link "Divest Half">> - <<if $surgicalAssets >= 100000>> - <<set $surgicalAssets = Math.trunc($surgicalAssets/2)>> - <<set $corpCash += $surgicalAssets*$surgicalAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#surgAssets">> - @@.yellowgreen;<<print cashFormat($surgicalAssetPrice*$surgicalAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You don't have enough assets to justify bulk divestment. - <</replace>> - <</if>> - <</link>> -<<else>> - <span id="surgicalAssetsDisp">@@.yellowgreen;<<print cashFormat($surgicalAssetPrice*$surgicalAssets)>>@@ (<<print commaNum(Math.floor($surgicalAssets/500))>> unit<<if Math.floor($surgicalAssets/500) != 1>>s<</if>>)</span> in surgical assets. - Prices are - <<if $surgicalAssetPrice > 10>> - @@.yellowgreen;<<print cashFormat($surgicalAssetPrice*500)>>ea@@ - <<elseif $surgicalAssetPrice < 10>> - @@.gold;<<print cashFormat($surgicalAssetPrice*500)>>ea@@ - <<else>> - <<print cashFormat($surgicalAssetPrice*500)>>ea - <</if>> - <span id="controlssurgical"><<CorpDevBuySell "surgical" "Numsurgical">></span><span id='surgicalAssetsPurchasing'></span> -<</if>> <br> - -<<if $drugAssetPrice > 10>> - <<if random(1,100) > 50>> - <<set $drugAssetPrice -= 1>> - <<elseif random(1,100) > 50>> - <<set $drugAssetPrice += 1>> - <</if>> -<<elseif $drugAssetPrice < 4>> - <<set $drugAssetPrice = 5>> -<<elseif $drugAssetPrice < 10>> - <<if random(1,100) > 50>> - <<set $drugAssetPrice += 1>> - <<elseif random(1,100) > 50>> - <<set $drugAssetPrice -= 1>> - <</if>> -<<elseif $drugAssetPrice == 10>> - <<if random(1,100) > 50>> - <<set $drugAssetPrice += 1>> - <<else>> - <<set $drugAssetPrice -= 1>> <</if>> -<<else>> - <<set $drugAssetPrice = 5>> <</if>> - -<<if $detailedCorpControls != 1>> - <span id="drAssets">@@.yellowgreen;<<print cashFormat(Math.ceil($drugAssetPrice*$drugAssets))>>@@</span> in pharmaceutical assets. - Drug asset prices are - <<if $drugAssetPrice > 12>>@@.yellowgreen;very high@@<<elseif $drugAssetPrice > 10>>@@.yellowgreen;high@@<<elseif $drugAssetPrice == 10>>average<<elseif $drugAssetPrice >= 8>>@@.gold;low@@<<else>>@@.gold;very low@@<</if>>. - | <<link "Buy">> - <<if $drugAssetPrice*500 < $corpCash>> - <<set $drugAssets += 500>> - <<set $corpCash -= 500*$drugAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#drAssets">> - @@.yellowgreen;<<print cashFormat($drugAssetPrice*$drugAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Invest Half">> - <<if $drugAssetPrice*1000 < $corpCash>> - <<set $drugAssets += (Math.trunc($corpCash/($drugAssetPrice*1000)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($drugAssetPrice*1000)))*($drugAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#drAssets">> - @@.yellowgreen;<<print cashFormat($drugAssetPrice*$drugAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Massive investment">> - <<if $drugAssetPrice*1000 < $corpCash>> - <<set $drugAssets += (Math.trunc($corpCash/($drugAssetPrice*500)))*500>> - <<set $corpCash -= (Math.trunc($corpCash/($drugAssetPrice*500)))*($drugAssetPrice*500)>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#drAssets">> - @@.yellowgreen;<<print cashFormat($drugAssetPrice*$drugAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - There are insufficient funds for additional purchases. - <</replace>> - <</if>> - <</link>> - | <<link "Sell">> - <<if $drugAssets >= 1000>> - <<set $drugAssets -= 500>> - <<set $corpCash += 500*$drugAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#drAssets">> - @@.yellowgreen;<<print cashFormat($drugAssetPrice*$drugAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You cannot sell any more assets. - <</replace>> - <</if>> - <</link>> - | <<link "Divest Half">> - <<if $drugAssets >= 100000>> - <<set $drugAssets = Math.trunc($drugAssets/2)>> - <<set $corpCash += $drugAssets*$drugAssetPrice>> - <<replace "#cashOnHand">> - @@.yellowgreen;<<print cashFormat($corpCash)>>@@ - <</replace>> - <<replace "#drAssets">> - @@.yellowgreen;<<print cashFormat($drugAssetPrice*$drugAssets)>>@@ - <</replace>> - <<replace "#update">> - <</replace>> - <<else>> - <<replace "#update">> - You don't have enough assets to justify bulk divestment. - <</replace>> + +<<if $corpDivTrain > 0>> + <br>Slave Training: The division finished training <<if _corpDivTrainProc > 1>><<print _corpDivTrainProc>> slaves.<<elseif _corpDivTrainProc > 0>>one slave.<<else>>@@.red;none of its slaves.@@<</if>> The division is still training $corpDivTrainSlaves slaves. + <<if $corpDivTrainFromMarket == 1>> + <<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0 && _corpDivTrainSlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivTrainSlavesRoom>> slaves that need slave training from the market. + <<set _corpDivTrainAssetsSlave = _corpDivTrainSlavesRoom * 15 * menialSlaveCost(_corpDivTrainSlavesRoom), + $corpCash -= _corpDivTrainAssetsSlave, + $corpAssetsSlave += _corpDivTrainAssetsSlave, + $corpDivTrainSlaves = $corpDivTrainDev>> + <<elseif _corpDivTrainSlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivTrainSlavesRoom>> slaves that need slave training from the market. + <<set _corpDivTrainAssetsSlave = _corpDivTrainSlavesRoom * 23 * menialSlaveCost(_corpDivTrainSlavesRoom), + $corpCash -= _corpDivTrainAssetsSlave, + $corpAssetsSlave += _corpDivTrainAssetsSlave, + $corpDivTrainSlaves = $corpDivTrainDev>> + <</if>> + <</if>> + <<if $corpDivTrainToWhore == 1 && _corpDivWhoreSlavesRoom > 0>> + <<if $corpDivTrainSlaves2 >= _corpDivWhoreSlavesRoom>> + It moved <<if _corpDivWhoreSlavesRoom > 1>><<print _corpDivWhoreSlavesRoom>> slaves<<else>>one slave<</if>> to the escort division. + <<set $corpDivTrainSlaves2 -= _corpDivWhoreSlavesRoom, + $corpDivWhoreSlaves = $corpDivWhoreDev, + _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>> + <<elseif $corpDivTrainSlaves2 > 0>> + It moved <<if $corpDivTrainSlaves2 > 1>>$corpDivTrainSlaves2 slaves<<else>>one slave<</if>> to the escort division. + <<set $corpDivWhoreSlaves += $corpDivTrainSlaves2, + $corpDivTrainSlaves2 = 0, + _corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>> + <</if>> + <</if>> + <<if $corpDivTrainToMarket == 1 && $corpDivTrainSlaves2 > 0>> + <<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>> + It immediately sold <<if $corpDivTrainSlaves2 > 1>>$corpDivTrainSlaves2 slaves<<else>>one slave<</if>> + <<set _corpDivTrainRev = $corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2), + $corpCash += _corpDivTrainRev, + $corpRev += _corpDivTrainRev, + $corpDivTrainSlaves2 = 0>> + to the market and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@ + <<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 5>> + It immediately sold <<if $corpDivTrainSlaves2 > 1>>$corpDivTrainSlaves2 slaves<<else>>one slave<</if>> + <<set _corpDivTrainRev = Math.trunc($corpDivTrainSlaves2 * (26 + $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost(-$corpDivTrainSlaves2)), + $corpCash += _corpDivTrainRev, + $corpRev += _corpDivTrainRev, + $corpDivTrainSlaves2 = 0>> + to the market and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@ + <<else>> + It immediately sold <<if $corpDivTrainSlaves2 > 1>><<print $corpDivTrainSlaves2>> slaves<<else>>one slave<</if>> + <<set _corpDivTrainRev = $corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2), + $corpCash += _corpDivTrainRev, + $corpRev += _corpDivTrainRev, + $corpDivTrainSlaves2 = 0>> + to the market and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@ + <</if>> + <<elseif $corpDivTrainSlaves2 > 0>>It is holding <<if $corpDivTrainSlaves2 > 1>>$corpDivTrainSlaves2 trained slaves<<else>>one trained slave<<else>> at the end of the week.<</if>> + <<if $corpDivTrainSlaves2 > Math.trunc($corpDivTrainDev * 0.4)>> + <<if $corpDivTrainSurgeryTimer < 5 || $corpDivSurgery == 0>> + <<set _corpDivTrainCapSlaves = $corpDivTrainSlaves2 - Math.trunc($corpDivTrainDev * 0.4), + _corpDivTrainRev = _corpDivTrainCapSlaves * 26 * menialSlaveCost(-_corpDivTrainCapSlaves), + $corpCash += _corpDivTrainRev, + $corpRev += _corpDivTrainRev, + $menialDemandFactor -= _corpDivTrainCapSlaves, + $corpDivTrainSlaves2 = Math.trunc($corpDivTrainDev * 0.4)>> + But it ran out of storage space and had to sell <<if _corpDivTrainCapSlaves > 1>>@@.red;<<print _corpDivTrainCapSlaves>> slaves@@<<elseif _corpDivTrainCapSlaves > 0>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@ + <<else>> + <<set _corpDivTrainCapSlaves = $corpDivTrainSlaves2 - Math.trunc($corpDivTrainDev * 0.4), + _corpDivTrainRev = _corpDivTrainCapSlaves * 34 * menialSlaveCost(-_corpDivTrainCapSlaves), + $corpCash += _corpDivTrainRev, + $corpRev += _corpDivTrainRev, + $menialDemandFactor -= _corpDivTrainCapSlaves, + $corpDivTrainSlaves2 = Math.trunc($corpDivTrainDev * 0.4)>> + But it ran out of storage space and had to sell <<if _corpDivTrainCapSlaves > 1>>@@.red;<<print _corpDivTrainCapSlaves>> slaves@@<<elseif _corpDivTrainCapSlaves > 0>>@@.red;one slave@@<</if>> and made @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>.@@ + <</if>> <</if>> - <</link>> -<<else>> - <span id="drugAssetsDisp">@@.yellowgreen;<<print cashFormat($drugAssetPrice*$drugAssets)>>@@ (<<print commaNum(Math.floor($drugAssets/500))>> unit<<if Math.floor($drugAssets/500) != 1>>s<</if>>)</span> in pharmaceutical assets. - Prices are - <<if $drugAssetPrice > 10>> - @@.yellowgreen;<<print cashFormat($drugAssetPrice*500)>>ea@@ - <<elseif $drugAssetPrice < 10>> - @@.gold;<<print cashFormat($drugAssetPrice*500)>>ea@@ - <<else>> - <<print cashFormat($drugAssetPrice*500)>>ea <</if>> - <span id="controlsdrug"><<CorpDevBuySell "drug" "Numdrug">></span><span id='drugAssetsPurchasing'></span> <</if>> -<br> <span id="direction"> - -<<if $generalAssets >= 2000>> - <<if $generalUpgradeBreaking == "unselected">> - <br>The corporation has enough general expertise to specialize. Focus on breaking slaves with - <<link "Brutality">><<set $generalUpgradeBreaking = "brutality">><<replace "#direction">><br><<print "You directed the corporation to train slaves with brutal force.">><</replace>><</link>> - | <<link "Care">><<set $generalUpgradeBreaking = "care">><<replace "#direction">><br><<print "You directed the corporation to train slaves with loving care.">><</replace>><</link>> - | <<link "No focus">><<set $generalUpgradeBreaking = "none">><<replace "#direction">><br><<print "You directed the corporation to focus on whatever training methods work best.">><</replace>><</link>> +<<if $corpDivArcade > 0>> + <br>Sex Arcade: The division is exploiting @@.green;$corpDivArcadeSlaves slaves.@@ <<if _corpDivArcadeProc > 0>>During operations <<if _corpDivArcadeProc > 1>>@@.red;_corpDivArcadeProc slaves@@<<else>>@@.green;one slave@@<</if>> wore out.<</if>> + It earned @@.yellowgreen;<<print cashFormat(_corpDivArcadeRev)>>@@ in revenue. + <<if $corpDivArcadeFromMarket == 1 && _corpDivArcadeSlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivArcadeSlavesRoom>> fresh slaves from the market. + <<set _corpDivArcadeAssetsSlave = _corpDivArcadeSlavesRoom * 10 * menialSlaveCost(_corpDivArcadeSlavesRoom), + $corpCash -= _corpDivArcadeAssetsSlave, + $corpAssetsSlave += _corpDivArcadeAssetsSlave, + $corpDivArcadeSlaves = $corpDivArcadeDev>> <</if>> <</if>> -<<if $generalUpgradeBreaking != "unselected">> - <br> - <<if $generalUpgradeBreaking == "brutality">>The corporation does not hesitate from using brutality to break slaves. - <<elseif $generalUpgradeBreaking == "care">>The corporation uses care in training their slaves. - <<else>>The corporation uses both care and brutality when training their slaves. - <</if>> - <<link "Refocus">><<set $generalUpgradeBreaking = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<</if>> -<<if $generalAssets >= 5000>> - <<if $generalUpgradeWeight == "unselected">> - <br>The corporation has enough general expertise to specialize. Manage slaves' diets to an - <<link "Attractive weight">><<set $generalUpgradeWeight = "attractive">><<replace "#direction">><br><<print "You directed the corporation to slim fat slaves and feed thin ones.">><</replace>><</link>> - | <<link "No dieting">><<set $generalUpgradeWeight = "none">><<replace "#direction">><br><<print "You directed the corporation not to focus on slaves' weight.">><</replace>><</link>> - <</if>> -<</if>> -<<if $generalUpgradeWeight != "unselected">> - <br> - <<if $generalUpgradeWeight == "attractive">>The corporation manages the slaves' diets to ensure they aren't too thin or too fat. - <<else>>The corporation does not try to change the slaves' weights. - <</if>> - <<link "Refocus">><<set $generalUpgradeWeight = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<</if>> -<<if $generalAssets >= 10000>> - <<if $generalUpgradeMuscle == "unselected">> - <br>The corporation has enough general expertise to specialize. Train slaves until their muscles are - <<link "Toned">><<set $generalUpgradeMuscle = "toned">><<replace "#direction">><br><<print "You directed the corporation to train slaves until they're toned.">><</replace>><</link>> - | <<link "Ripped">><<set $generalUpgradeMuscle = "ripped">><<replace "#direction">><br><<print "You directed the corporation to train slaves until they're ripped.">><</replace>><</link>> - | <<link "No training">><<set $generalUpgradeMuscle = "none">><<replace "#direction">><br><<print "You directed the corporation not to focus on slaves' fitness.">><</replace>><</link>> - <</if>> -<</if>> -<<if $generalUpgradeMuscle != "unselected">> - <br> - <<if $generalUpgradeMuscle == "toned">>The corporation's slaves are made to exercise until they are toned. - <<elseif $generalUpgradeMuscle == "ripped">>The corporation's slaves are made to exercise until they are ripped. - <<else>>The corporation does not try to manage their slaves' fitness. - <</if>> - <<link "Refocus">><<set $generalUpgradeMuscle = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<</if>> -<<if $entrapmentAssets >= 2000>> - <<if $entrapmentUpgradeDevotionOne == "unselected">> - <br>The corporation is entrapping enough slaves to specialize. Focus on slaves with - <<link "Obedience">><<set $entrapmentUpgradeDevotionOne = "obedience">><<replace "#direction">><br><<print "You directed the corporation to retain obedient slaves.">><</replace>><</link>> - | <<link "No focus">><<set $entrapmentUpgradeDevotionOne = "none">><<replace "#direction">><br><<print "You directed the corporation to train slaves regardless of obedience.">><</replace>><</link>> - <</if>> -<</if>> -<<if $entrapmentAssets >= 5000>> - <<if $entrapmentUpgradeDevotionTwo == "unselected">> - <br>The corporation is entrapping enough slaves to specialize. Focus on slaves with - <<link "Devotion">><<set $entrapmentUpgradeDevotionTwo = "devotion">><<replace "#direction">><br><<print "You directed the corporation to retain devoted slaves.">><</replace>><</link>> - | <<link "No focus">><<set $entrapmentUpgradeDevotionTwo = "none">><<replace "#direction">><br><<print "You directed the corporation to train slaves regardless of devotion.">><</replace>><</link>> - <</if>> -<</if>> - <br> - <<if $entrapmentUpgradeDevotionOne == "obedience">>The corporation selects slaves who are predisposed to obedience. - <<else>>The corporation trains slaves regardless of obedience.<</if>> - <<link "Refocus">><<set $entrapmentUpgradeDevotionOne = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> - <br> - <<if $entrapmentUpgradeDevotionTwo == "devotion">>The corporation selects slaves who are predisposed to devotion. - <<else>>The corporation trains slaves regardless of devotion.<</if>> - <<link "Refocus">><<set $entrapmentUpgradeDevotionTwo = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<<if $entrapmentAssets >= 10000>> - <<if $entrapmentUpgradeIntelligence == "unselected">> - <br>The corporation is entrapping enough slaves to specialize. Focus on slaves who are - <<link "Intelligent">><<set $entrapmentUpgradeIntelligence = "intelligent">><<replace "#direction">><br><<print "You directed the corporation to retain intelligent slaves.">><</replace>><</link>> - | <<link "Stupid">><<set $entrapmentUpgradeIntelligence = "stupid">><<replace "#direction">><br><<print "You directed the corporation to retain stupid slaves.">><</replace>><</link>> - | <<link "No focus">><<set $entrapmentUpgradeIntelligence = "none">><<replace "#direction">><br><<print "You directed the corporation to train slaves regardless of intelligence.">><</replace>><</link>> - <</if>> -<</if>> -<<if $entrapmentUpgradeIntelligence != "unselected">> - <br> - <<if $entrapmentUpgradeIntelligence == "intelligent">>The corporation only retains smart slaves. - <<elseif $entrapmentUpgradeIntelligence == "stupid">>The corporation only retains stupid slaves. - <<else>>The corporation does not care how smart/stupid a slave is. - <</if>> - <<link "Refocus">><<set $entrapmentUpgradeIntelligence = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<</if>> -<<if $captureAssets >= 2000>> - <<if $seeDicks != 0>> - <<if $captureUpgradeGender == "unselected">> - <br>The corporation captures enough slaves to specialize. Focus on training slaves with - <<link "Pussies">><<set $captureUpgradeGender = "XX">><<replace "#direction">><br><<print "You directed the corporation to retain slaves with pussies for training.">><</replace>><</link>> - | <<link "Dicks">><<set $captureUpgradeGender = "XY">><<replace "#direction">><br><<print "You directed the corporation to retain slaves with dicks for training.">><</replace>><</link>> - | <<link "No focus">><<set $captureUpgradeGender = "none">><<replace "#direction">><br><<print "You directed the corporation to retain any promising slave for training.">><</replace>><</link>> - <</if>> - <</if>> -<</if>> -<<if $captureUpgradeGender != "unselected">> - <br> - <<if $captureUpgradeGender == "XX">>The corporation only retains slaves with pussies. - <<elseif $captureUpgradeGender == "XY">>The corporation only retains slaves with dicks. - <<else>>The corporation retains any promising slave regardless of whether she has a dick or a pussy. - <</if>> - <<link "Refocus">><<set $captureUpgradeGender = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<</if>> -<<if $captureAssets >= 5000>> - <<if $captureUpgradeAge == "unselected">> - <br>The corporation captures enough slaves to specialize. Focus on training slaves who are - <<link "Younger">><<set $captureUpgradeAge = "young">><<replace "#direction">><br><<print "You directed the corporation to retain younger slaves for training.">><</replace>><</link>> - | <<link "Older">><<set $captureUpgradeAge = "old">><<replace "#direction">><br><<print "You directed the corporation to retain older slaves for training.">><</replace>><</link>> - | <<link "No focus">><<set $captureUpgradeAge = "none">><<replace "#direction">><br><<print "You directed the corporation to retain any promising slave for training.">><</replace>><</link>> - <</if>> -<</if>> -<<if $captureUpgradeAge != "unselected">> - <br> - <<if $captureUpgradeAge == "young">>The corporation is focusing on capturing younger slaves. - <<elseif $captureUpgradeAge == "old">>The corporation is focusing on capturing older slaves. - <<else>>The corporation is not focusing on capturing slaves of any particular age. - <</if>> - <<link "Refocus">><<set $captureUpgradeAge = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<</if>> -<<if $captureAssets >= 10000>> - <<if $captureUpgradeRace == "unselected">> - <br>The corporation captures enough slaves to specialize. Focus on training slaves who are - <<link "White">><<set $captureUpgradeRace = "white">><<replace "#direction">><br><<print "You directed the corporation to retain white slaves for training.">><</replace>><</link>> - | <<link "Asian">><<set $captureUpgradeRace = "asian">><<replace "#direction">><br><<print "You directed the corporation to retain asian slaves for training.">><</replace>><</link>> - | <<link "Indo-aryan">><<set $captureUpgradeRace = "indo-aryan">><<replace "#direction">><br><<print "You directed the corporation to retain indo-aryan slaves for training.">><</replace>><</link>> - | <<link "Latina">><<set $captureUpgradeRace = "latina">><<replace "#direction">><br><<print "You directed the corporation to retain latina slaves for training.">><</replace>><</link>> - | <<link "Middle Eastern">><<set $captureUpgradeRace = "middle eastern">><<replace "#direction">><br><<print "You directed the corporation to retain Middle Eastern slaves for training.">><</replace>><</link>> - | <<link "Black">><<set $captureUpgradeRace = "black">><<replace "#direction">><br><<print "You directed the corporation to retain black slaves for training.">><</replace>><</link>> - | <<link "Pacific Islander">><<set $captureUpgradeRace = "pacific islander">><<replace "#direction">><br><<print "You directed the corporation to retain pacific islander slaves for training.">><</replace>><</link>> - | <<link "Malay">><<set $captureUpgradeRace = "malay">><<replace "#direction">><br><<print "You directed the corporation to retain malay slaves for training.">><</replace>><</link>> - | <<link "Amerindian">><<set $captureUpgradeRace = "amerindian">><<replace "#direction">><br><<print "You directed the corporation to retain amerindian slaves for training.">><</replace>><</link>> - | <<link "Semitic">><<set $captureUpgradeRace = "semitic">><<replace "#direction">><br><<print "You directed the corporation to retain semitic slaves for training.">><</replace>><</link>> - | <<link "Southern European">><<set $captureUpgradeRace = "southern european">><<replace "#direction">><br><<print "You directed the corporation to retain southern european slaves for training.">><</replace>><</link>> - | <<link "Mixed Race">><<set $captureUpgradeRace = "mixed race">><<replace "#direction">><br><<print "You directed the corporation to retain mixed race slaves for training.">><</replace>><</link>> - | <<link "No focus">><<set $captureUpgradeRace = "none">><<replace "#direction">><br><<print "You directed the corporation to retain any promising slave for training.">><</replace>><</link>> - <</if>> -<</if>> -<<if $captureUpgradeRace != "unselected">> - <br> - <<if $captureUpgradeRace == "none">>The corporation retains any promising slave regardless of race. - <<else>>The corporation retains only $captureUpgradeRace slaves. - <</if>> - <<link "Refocus">><<set $captureUpgradeRace = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> -<</if>> -<<if $trainingAssets >= 2000>> - <<if $trainingUpgradeAccent == "unselected">> - <br>The corporation has enough training expertise to specialize. Focus on linguistic training to - <<link "Teach language">><<set $trainingUpgradeAccent = "accents">><<replace "#direction">><br><<print "You directed the corporation to teach slaves the lingua franca.">><</replace>><</link>> - | <<link "Eliminate accents">><<set $trainingUpgradeAccent = "eliminate">><<replace "#direction">><br><<print "You directed the corporation to teach slaves perfect, unaccented language.">><</replace>><</link>> - | <<link "No training">><<set $trainingUpgradeAccent = "none">><<replace "#direction">><br><<print "You directed the corporation not to focus on linguistic training.">><</replace>><</link>> - <</if>> -<</if>> -<<if $trainingUpgradeAccent != "unselected">> - <br> - <<if $trainingUpgradeAccent == "accents">>Slaves are taught the lingua franca but are allowed to retain their accents. - <<elseif $trainingUpgradeAccent == "eliminate">>Slaves are taught the lingua franca until they can speak it without accent. - <<else>>The corporation does not expend any special effort teaching language. + +<<if $corpDivMenial > 0>> + <br>Menial Services: The division is exploiting @@.green;$corpDivMenialSlaves slaves.@@ <<if _corpDivMenialProc > 0>>During operations <<if _corpDivMenialProc > 1>>@@.red;_corpDivMenialProc slaves@@<<else>>@@.green;one slave@@<</if>> wore out.<</if>> + <br>It earned @@.yellowgreen;<<print cashFormat(_corpDivMenialRev)>>@@ in revenue. + <<if $corpDivMenialFromMarket == 1 && _corpDivMenialSlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivMenialSlavesRoom>> menial slaves from the market. + <<set _corpDivMenialAssetsSlave = _corpDivMenialSlavesRoom * 15 * menialSlaveCost(_corpDivMenialSlavesRoom), + $corpCash -= _corpDivMenialAssetsSlave, + $corpAssetsSlave += _corpDivMenialAssetsSlave, + $corpDivMenialSlaves = $corpDivMenialDev>> <</if>> - <<link "Refocus">><<set $trainingUpgradeAccent = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> <</if>> -<<if $trainingAssets >= 5000>> - <<if $trainingUpgradeEducation == "unselected">> - <br>The corporation has enough training expertise to specialize. Train slaves with - <<link "Basic educations">><<set $trainingUpgradeEducation = "basic">><<replace "#direction">><br><<print "You directed the corporation to focus on ensuring slaves are properly educated.">><</replace>><</link>> - | <<link "No training">><<set $trainingUpgradeEducation = "none">><<replace "#direction">><br><<print "You directed the corporation to focus on getting slaves broken, not educated.">><</replace>><</link>> + +<<if $corpDivDairy > 0>> + <br>Dairy: The division is milking @@.green;$corpDivDairySlaves slaves.@@ <<if _corpDivDairyProc > 0>>During operations <<if _corpDivDairyProc > 1>>@@.red;_corpDivDairyProc slaves@@<<else>>@@.green;one slave@@<</if>> ran dry.<</if>> + It earned @@.yellowgreen;<<print cashFormat(_corpDivDairyRev)>>@@ in revenue. + <<if $corpDivDairyFromMarket == 1 && _corpDivDairySlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivDairySlavesRoom>> cows from the market. + <<set _corpDivDairyAssetsSlave = _corpDivDairySlavesRoom * 23 * menialSlaveCost(_corpDivDairySlavesRoom), + $corpCash -= _corpDivDairyAssetsSlave, + $corpAssetsSlave += _corpDivDairyAssetsSlave, + $corpDivDairySlaves = $corpDivDairyDev>> <</if>> <</if>> -<<if $trainingUpgradeEducation != "unselected">> - <br> - <<if $trainingUpgradeEducation == "basic">>Slaves are given basic slave education. - <<else>>The corporation does not waste money with slave education. + +<<if $corpDivWhore > 0>> + <br>Escort Service: The division is whoring out @@.green;$corpDivWhoreSlaves slaves.@@ <<if _corpDivWhoreProc > 0>>During operations <<if _corpDivWhoreProc > 1>>@@.red;_corpDivWhoreProc slaves@@<<else>>@@.green;one slave@@<</if>> lost their appeal.<</if>> + It earned @@.yellowgreen;<<print cashFormat(_corpDivWhoreRev)>>@@ in revenue. + <<if $corpDivWhoreFromMarket == 1 && $corpDivTrainSurgerySwitch > 0 && _corpDivWhoreSlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivWhoreSlavesRoom>> trained whores from the market. + <<set _corpDivWhoreAssetsSlave = _corpDivWhoreSlavesRoom * 34 * menialSlaveCost(_corpDivWhoreSlavesRoom), + $corpCash -= _corpDivWhoreAssetsSlave, + $corpAssetsSlave += _corpDivWhoreAssetsSlave, + $corpDivWhoreSlaves = $corpDivWhoreDev>> + <<elseif $corpDivWhoreFromMarket == 1 && _corpDivWhoreSlavesRoom > 0>> + It replenished its slave stock and bought <<print _corpDivWhoreSlavesRoom>> trained whores from the market. + <<set _corpDivWhoreAssetsSlave -= _corpDivWhoreSlavesRoom * 26 * menialSlaveCost(_corpDivWhoreSlavesRoom), + $corpCash -= _corpDivWhoreAssetsSlave, + $corpAssetsSlave += _corpDivWhoreAssetsSlave, + $corpDivWhoreSlaves = $corpDivWhoreDev>> <</if>> - <<link "Refocus">><<set $trainingUpgradeEducation = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> <</if>> -<<if $trainingAssets >= 10000>> - <<if $trainingUpgradeSexEd == "unselected">> - <br>The corporation has enough training expertise to specialize. Train slaves' sexual knowledge to - <<link "Competence">><<set $trainingUpgradeSexEd = "competence">><<replace "#direction">><br><<print "You directed the corporation to ensure slaves know basic sexual skills.">><</replace>><</link>> - | <<link "Highly Skilled">><<set $trainingUpgradeSexEd = "highly skilled">><<replace "#direction">><br><<print "You directed the corporation to ensure slaves are sexually proficient.">><</replace>><</link>> - | <<link "No training">><<set $trainingUpgradeSexEd = "none">><<replace "#direction">><br><<print "You directed the corporation to focus on getting slaves trained rather than skilled.">><</replace>><</link>> - <</if>> + +/*Aggregate Corporation Results*/ +<br><br>''Aggregate Results'' +<<set _corpOverhead = 0>> +<<if $corpDiv > 1>> + <<set _corpAcquisition = Math.pow(($corpDivExtra + $corpDivLegal), 2) * 25000 + Math.pow(Math.max(($corpDivExtraDev + $corpDivLegalDev - 100),0), 2) * 2, + _corpProcessing = Math.pow(($corpDivBreak + $corpDivSurgery + $corpDivTrain), 2) * 25000 + Math.pow(Math.max(($corpDivBreakDev + $corpDivSurgeryDev + $corpDivTrainDev - 200),0), 2), + _corpExploitation = Math.pow(Math.max(($corpDivArcade + $corpDivMenial + $corpDivDairy + $corpDivWhore - 1), 0), 2) * 15000 + Math.trunc(Math.pow(Math.max(($corpDivArcadeDev + $corpDivMenialDev + $corpDivDairyDev + $corpDivWhoreDev - 800),0), 2) * 0.1), + _corpOverhead = _corpAcquisition + _corpProcessing + _corpExploitation + Math.pow(Math.max($corpDiv - 2, 0), 2) * 10000>> + <<if $corpEasy == 1>> + <<set _corpOverhead = Math.trunc(_corpOverhead / 2)>> + <</if>> +<</if>> +<<set $corpCash -= _corpOverhead, +_corpProfitProvisional = $corpRev - $corpAssetsDev - $corpAssetsSlave - _corpOpCost>> +<<if _corpProfitProvisional > 0>> + <<set _corpEcon = Math.trunc(_corpProfitProvisional / (100 / $localEcon) - _corpProfitProvisional), + $corpCash += _corpEcon, + $corpProfitOld = _corpProfitProvisional + _corpEcon>> /*this is probably the best place for the economy to show itself, the rest is finnicky enough as is*/ +<<else>> + <<set $corpProfitOld = _corpProfitProvisional>> <</if>> -<<if $trainingUpgradeSexEd != "unselected">> - <br> - <<if $trainingUpgradeSexEd == "competence">>Slaves are taught basic sexual skills. - <<elseif $trainingUpgradeSexEd == "highly skilled">>The corporation makes sure the slaves are sexually skilled. - <<else>>The corporation does not spend any effort in teaching the slaves sexual skills. - <</if>> - <<link "Refocus">><<set $trainingUpgradeSexEd = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> +<br>Revenue: @@.yellowgreen;<<print cashFormat($corpRev)>>@@ +<br>Operating Expenses: @@.red;<<print cashFormat(_corpOpCost)>>@@ +<<if $corpAssetsSlave > 0>> + <br>Slave Expenses: @@.red;<<print $corpAssetsSlave>>@@ +<<else>> + <br>Slave Expenses: @@.yellowgreen;<<print $corpAssetsSlave>>@@ <</if>> -<<if $surgicalAssets >= 2000>> - <<if $surgicalUpgradeCosmetics == "unselected">> - <br>The corporation has enough surgical expertise to specialize. Straightforward cosmetic procedures should be - <<link "Applied">><<set $surgicalUpgradeCosmetics = "applied">><<replace "#direction">><br><<print "You directed the corporation to give slaves straightforward cosmetic surgeries.">><</replace>><</link>> - | <<link "Not applied">><<set $surgicalUpgradeCosmetics = "none">><<replace "#direction">><br><<print "You directed the corporation to leave slaves surgically unaltered.">><</replace>><</link>> - <</if>> +<<if $corpAssetsDev > 0>> + <br>Asset Expenses: @@.red;<<print $corpAssetsDev>>@@ +<<else>> + <br>Asset Expenses: @@.yellowgreen;<<print $corpAssetsDev>>@@ <</if>> -<<if $surgicalUpgradeCosmetics != "unselected">> - <br> - <<if $surgicalUpgradeCosmetics == "applied">>Slaves are given straightforward cosmetic surgeries before being marketed. - <<else>>The corporation does not bother with straightforward cosmetic surgery for slaves. - <</if>> - <<link "Refocus">><<set $surgicalUpgradeCosmetics = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> +<<if _corpOverhead != 0>><br>Overhead: @@.red;<<print cashFormat(_corpOverhead)>>@@<</if>> +<br>Profit: <<if $corpProfitOld > 0>>@@.yellowgreen;<<print cashFormat($corpProfitOld)>>@@<<else>>@@.red;<<print cashFormat($corpProfitOld)>>@@<</if>> +<<if $localEcon > 100>> + <br>Your profits benefit from a strong economy. +<<elseif $localEcon < 60>> + <br>Your profits are severely depressed by the failing economy. +<<elseif $localEcon < 100>> + <br>Your profits are lowered by the weak economy. <</if>> -<<if $surgicalAssets >= 5000>> - <<if $surgicalUpgradeImplants == "unselected">> - <br>The corporation has enough surgical expertise to specialize. Implants should be - <<link "Applied">><<set $surgicalUpgradeImplants = "applied">><<replace "#direction">><br><<print "You directed the corporation to give slaves basic implants.">><</replace>><</link>> - | <<link "Absurd">><<set $surgicalUpgradeImplants = "absurd">><<replace "#direction">><br><<print "You directed the corporation to give slaves absurd implants.">><</replace>><</link>> - | <<link "Not applied">><<set $surgicalUpgradeImplants = "none">><<replace "#direction">><br><<print "You directed the corporation to leave slaves without implants.">><</replace>><</link>> - <</if>> + +/*Division Expansion Tokens*/ +<<if corpValue() > 2000000 && $corpExpand < 1>> + <<set $corpExpandToken += 1, + $corpExpand = 1>> + <br><br>Your corporation is ready to start an additional division! +<<elseif corpValue() > 5000000 && $corpExpand < 2>> + <<set $corpExpandToken += 1, + $corpExpand = 2>> + <br><br>Your corporation is ready to start an additional division! +<<elseif corpValue() > 9000000 && $corpExpand < 3>> + <<set $corpExpandToken += 1, + $corpExpand = 3>> + <br><br>Your corporation is ready to start an additional division! +<<elseif corpValue() > 13000000 && $corpExpand < 4>> + <<set $corpExpandToken += 1, + $corpExpand = 4>> + <br><br>Your corporation is ready to start an additional division! +<<elseif corpValue() > 17000000 && $corpExpand < 5>> + <<set $corpExpandToken += 1, + $corpExpand = 5>> + <br><br>Your corporation is ready to start an additional division! +<<elseif corpValue() > 22000000 && $corpExpand < 6>> + <<set $corpExpandToken += 1, + $corpExpand = 6>> + <br><br>Your corporation is ready to start an additional division! +<<elseif corpValue() > 27000000 && $corpExpand < 7>> + <<set $corpExpandToken += 1, + $corpExpand = 7>> + <br><br>Your corporation is ready to start an additional division! +<<elseif corpValue() > 33000000 && $corpExpand < 8>> + <<set $corpExpandToken += 1, + $corpExpand = 8>> + <br><br>Your corporation is ready to start an additional division! <</if>> -<<if $surgicalUpgradeImplants != "unselected">> - <br> - <<if $surgicalUpgradeImplants == "applied">>Slaves are given basic implants before being marketed. - <<elseif $surgicalUpgradeImplants == "applied">>Slaves are given absurd-sized implants before being marketed. - <<else>>The corporation does not bother with installing implants in slaves. - <</if>> - <<link "Refocus">><<set $surgicalUpgradeImplants = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> + +/*Specializations tokens*/ +<<if corpValue() > 1600000 * Math.pow(1.25, $corpSpec) - 1200000>> + /*the spendable currency*/ <<set $corpSpecToken += 1, + $corpSpec += 1>> /*the amount unlocked*/ + <br><br>Your corporation is ready to specialize its slaves further! <</if>> -<<if $surgicalAssets >= 10000>> - <<if $seeDicks != 0>> - <<if $surgicalUpgradeGenitalia == "unselected">> - <br>The corporation has enough surgical expertise to specialize. Slaves' genitals should be reconfigured to - <<link "Futanari">><<set $surgicalUpgradeGenitalia = "futanari">><<replace "#direction">><br><<print "You directed the corporation to create futanari.">><</replace>><</link>> - <<if $seeExtreme != 0>> - | <<link "Remove balls">><<set $surgicalUpgradeGenitalia = "gelded">><<replace "#direction">><br><<print "You directed the corporation to remove slaves' balls.">><</replace>><</link>> - | <<link "Mindbreak and remove limbs">><<set $surgicalUpgradeGenitalia = "fucknugget", $generalUpgradeBreaking = "none", $entrapmentUpgradeDevotionOne = "none", $entrapmentUpgradeDevotionTwo = "none", $trainingUpgradeAccent = "none", $trainingUpgradeEducation = "none", $trainingUpgradeSexEd = "none">><<replace "#direction">><br><<print "You directed the corporation to produce limbless, mindless slaves.">><</replace>><</link>> - <</if>> - | <<link "None">><<set $surgicalUpgradeGenitalia = "none">><<replace "#direction">><br><<print "You directed the corporation to leave slaves without major genital reconfiguration.">><</replace>><</link>> - <</if>> - <</if>> + +/*Specialization Cooldown*/ +<<if $corpSpecTimer > 0>> + <<set $corpSpecTimer-->> <</if>> -<<if $surgicalUpgradeGenitalia != "unselected">> - <br> - <<if $surgicalUpgradeGenitalia == "futanari">>Slaves are turned into futanari prior to market. - <<elseif $surgicalUpgradeGenitalia == "gelded">>Slaves are gelded prior to market. - <<elseif $surgicalUpgradeGenitalia == "fucknugget">>The corporation sells only mindbroken Fuckdolls. - <<else>>The corporation leaves the slaves' genitals alone. - <</if>> - <<link "Refocus">><<set $surgicalUpgradeGenitalia = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> + +/*Calculating cash set aside for dividend*/ +<br><br>''Dividend'' +<<if $dividendRatio > 0.5>> + <br>The corporation is currently reserving 75% of its profit to be paid out as dividends. +<<elseif $dividendRatio > 0.25>> + <br>The corporation is currently reserving 50% of its profit to be paid out as dividends. +<<elseif $dividendRatio > 0.1>> + <br>The corporation is currently reserving 25% of its profit to be paid out as dividends. +<<elseif $dividendRatio > 0.05>> + <br>The corporation is currently reserving 10% of its profit to be paid out as dividends. +<<elseif $dividendRatio > 0>> + <br>The corporation is currently reserving 5% of its profit to be paid out as dividends. +<<else>> + <br>The corporation is currently not reserving a portion of its profit to be paid out as dividends. <</if>> -<<if $drugAssets >= 2000>> - <<if $drugUpgradeHormones == "unselected">> - <br>The corporation has surplus pharmaceutical fabrication to specialize. Hormones should be applied to - <<link "Feminize">><<set $drugUpgradeHormones = "XX">><<replace "#direction">><br><<print "You directed the corporation to treat slaves with female hormones.">><</replace>><</link>> - | <<link "Masculinize">><<set $drugUpgradeHormones = "XY">><<replace "#direction">><br><<print "You directed the corporation to treat slaves with male hormones.">><</replace>><</link>> - | <<link "Not applied">><<set $drugUpgradeHormones = "none">><<replace "#direction">><br><<print "You directed the corporation not to apply hormones.">><</replace>><</link>> - <</if>> +<<if $corpCashDividend == 1>> + It is putting aside unused cash reserves to be paid out as dividends. <</if>> -<<if $drugUpgradeHormones != "unselected">> - <br> - <<if $drugUpgradeHormones == "XX">>Slaves are given female hormones. - <<elseif $drugUpgradeHormones == "XY">>Slaves are given male hormones. - <<else>>The corporation does not apply any hormones to the slaves. - <</if>> - <<link "Refocus">><<set $drugUpgradeHormones = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> +<<set _dividendCashReserved = 0, +_dividendReserved = 0>> +<<if $corpProfitOld > 0 && $dividendRatio > 0 && $corpCash > $corpProfitOld * $dividendRatio>> + <<set _dividendReserved = Math.trunc($corpProfitOld * $dividendRatio), + $corpDividend += _dividendReserved, + $corpCash -= _dividendReserved>> <</if>> -<<if $drugAssets >= 5000>> - <<if $drugUpgradeInjectionOne == "unselected">> - <br>The corporation has surplus pharmaceutical fabrication to specialize. Growth injections should be applied until T&A are grown to a - <<link "Tasteful size">><<set $drugUpgradeInjectionOne = "tasteful">><<replace "#direction">><br><<print "You directed the corporation to grow slaves' assets to a moderate size.">><</replace>><</link>> - | <<link "Huge size">><<set $drugUpgradeInjectionOne = "huge">><<replace "#direction">><br><<print "You directed the corporation to grow slaves' assets to a huge size.">><</replace>><</link>> - | <<link "Not applied">><<set $drugUpgradeInjectionOne = "none">><<replace "#direction">><br><<print "You directed the corporation not to apply growth injections.">><</replace>><</link>> +<<if $corpCashDividend == 1>> + <<if $corpCash > 1000000 && $corpCash > Math.trunc(0.05 * corpValue())>> + <<set _dividendCashReserved = $corpCash - Math.trunc(0.05 * corpValue()), + $corpDividend += _dividendCashReserved, + $corpCash -= _dividendCashReserved>> + <<elseif $corpCash > 1000000>> + <<set _dividendCashReserved = $corpCash - 1000000, + $corpDividend += _dividendCashReserved, + $corpCash -= _dividendCashReserved>> <</if>> <</if>> -<<if $drugUpgradeInjectionOne != "unselected">> - <br> - <<if $drugUpgradeInjectionOne == "tasteful">>Growth injections are applied until slaves' assets are moderate-sized.. - <<elseif $drugUpgradeInjectionOne == "huge">>Growth injections are applied until slaves' assets are huge. - <<else>>The corporation does not give the slaves any growth injections. +<<if $corpDividend > 0 || $dividendRatio > 0 || _dividendCashReserved > 0>> + <<if _dividendReserved > 0 || _dividendCashReserved > 0>> + It reserved @@.yellowgreen;<<print cashFormat(_dividendReserved + _dividendCashReserved)>>@@ this week. <</if>> - <<link "Refocus">><<set $drugUpgradeInjectionOne = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> + A total of @@.yellowgreen;<<print cashFormat($corpDividend)>>@@ has been put aside for its shareholders. <</if>> -<<if $drugAssets >= 10000>> - <<if $drugUpgradeInjectionTwo == "unselected">> - <br>The corporation has surplus pharmaceutical fabrication to specialize. Advanced growth injections should be - <<link "Supermassive">><<set $drugUpgradeInjectionTwo = "supermassive">><<replace "#direction">><br><<print "You directed the corporation to apply supermassive growth injections.">><</replace>><</link>> - | <<link "Pastoral">><<set $drugUpgradeInjectionTwo = "pastoral">><<replace "#direction">><br><<print "You directed the corporation to apply growth injections focused on milk<<if $seeDicks > 0>> and cum<</if>> production.">><</replace>><</link>> - | <<link "Not applied">><<set $drugUpgradeInjectionTwo = "none">><<replace "#direction">><br><<print "You directed the corporation not to apply advanced growth injections.">><</replace>><</link>> - <</if>> + +/*The corporation pays out every quarter (13 weeks)*/ +<<if $dividendTimer == 1>> + <<set _dividendPayout = Math.trunc($corpDividend * $personalShares / ($personalShares + $publicShares)), + $corpDividend = 0, + $dividendTimer = 13, + cashX(_dividendPayout, "stocks")>> + <<if _dividendPayout > 0>> + <br>This week the dividends were paid out, you received @@.yellowgreen;<<print cashFormat(_dividendPayout)>>.@@ + <</if>> +<<elseif $corpIncorporated == 1>> + <<set $dividendTimer -= 1>> <</if>> -<<if $drugUpgradeInjectionTwo != "unselected">> - <br> - <<if $drugUpgradeInjectionTwo == "supermassive">>The corporation uses advanced growth injections to make the slaves' assets supermassive. - <<elseif $drugUpgradeInjectionTwo == "pastoral">>The corporation uses advanced growth injections to make the slaves' assets very productive. - <<else>>The corporation does not give the slaves advanced growth injections. - <</if>> - <<link "Refocus">><<set $drugUpgradeInjectionTwo = "unselected">><<replace "#direction">><br><<print "You direct the corporation to halt the current focus and prepare for a change in direction.">><</replace>><</link>> + +/*Bankrupted the Corporation*/ +<<if corpValue() < 0>> + <<set $corpIncorporated = 0, + $corpDiv = 0, + $corpDivExtra = 0, + $corpDivLegal = 0, + $corpDivBreak = 0, + $corpDivSurgery = 0, + $corpDivTrain = 0, + $corpDivArcade = 0, + $corpDivMenial = 0, + $corpDivDairy = 0, + $corpDivWhore = 0, + $corpDivExtraDev = 0, + $corpDivLegalDev = 0, + $corpDivBreakDev = 0, + $corpDivSurgeryDev = 0, + $corpDivTrainDev = 0, + $corpDivDairyDev = 0, + $corpDivArcadeDev = 0, + $corpDivMenialDev = 0, + $corpDivWhoreDev = 0, + $corpExpand = 0, + $corpExpandToken = 0, + $corpSpec = 0, + $corpSpecToken = 0, + $corpSpecRaces = []>> + <<unset $corpCash, + $personalShares, + $publicShares, + $corpDividend, + $dividendTimer, + $corpDivExtraSlaves, + $corpDivLegalSlaves, + $corpDivBreakSlaves, + $corpDivBreakSlaves2, + $corpDivSurgerySlaves, + $corpDivSurgerySlaves2, + $corpDivTrainSlaves, + $corpDivTrainSlaves2, + $corpDivArcadeSlaves, + $corpDivMenialSlaves, + $corpDivDairySlaves, + $corpDivWhoreSlaves, + $corpRev, + $corpRevOld, + $corpAssetsDev, + $corpAssetsDevOld, + $corpAssetsSlave, + $corpAssetsSlaveOld, + $corpOverheadOld, + $corpOpCostOld, + $corpProfitOld, + $corpSpecAccent, + $corpSpecAge, + $corpSpecAmputee, + $corpSpecBalls, + $corpSpecDevotion, + $corpSpecDick, + $corpSpecEducation, + $corpSpecGender, + $corpSpecGenitalia, + $corpSpecWeight, + $corpSpecHeight, + $corpSpecHormones, + $corpSpecImplants, + $corpSpecInjection, + $corpSpecIntelligence, + $corpSpecMilk, + $corpSpecMuscle, + $corpSpecPussy, + $corpSpecSexEd, + $corpSpecTrust, + $corpSpecVirgin>> + <<if $corpMarket == 1>> + <<for _i = 0; _i < $sectors.length; _i++>> + <<if $sectors[_i].type == "CorporateMarket">><<set $sectors[_i].type = "Markets">><<break>><</if>> + <</for>> + <<set $corpMarket = 0>> + <</if>> + <br>@@.red;Your corporation went bankrupt.@@ <</if>> -</span> +<<set $corpRevOld = $corpRev, +$corpRev = 0, +$corpOpCostOld = _corpOpCost, +$corpAssetsDevOld = $corpAssetsDev, +$corpAssetsDev = 0, +$corpAssetsSlaveOld = $corpAssetsSlave, +$corpAssetsSlave = 0, +$corpOverheadOld = _corpOverhead>> /*This needs to be at the very end of the financials*/ diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index 079dd9a3c442032579b57977c903530e284a3f25..421b217c729d8aaf5fa4c84bbf257386a2203711 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -1828,9 +1828,9 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ </td> </tr> - <<if $lastWeeksCashIncome.stocks || $personalShares > 0>> + <<if $lastWeeksCashIncome.stocks>> <tr> - <td>Stock dividends on ($personalShares/<<print ($publicShares + $personalShares)>> shares), paying <<print ($lastWeeksCashIncome.stocks/$personalShares*100)>>% per share.</td> + <td>Stock dividends on ($personalShares/<<print ($publicShares + $personalShares)>> shares).</td> <td> <<if Math.trunc($lastWeeksCashIncome.stocks) > 0>> @@.yellowgreen;+<<print cashFormat(Math.trunc($lastWeeksCashIncome.stocks))>>@@ diff --git a/src/uncategorized/economics.tw b/src/uncategorized/economics.tw index 5f7f02c2c866661512f372334f805655c6bfe035..d1180127fd9a5c94b2affe56bc34190cd563f942 100644 --- a/src/uncategorized/economics.tw +++ b/src/uncategorized/economics.tw @@ -26,16 +26,10 @@ <br><br> <<include "FS Developments">> <</if>> - -<<if $corpAnnounced == 1>> + +<<if $corpIncorporated == 1>> <br><br> - <<if $corpIncorporated == 0>> - <span id="incorporate"> - You have not yet committed funds to create a publicly traded slave trading corporation. <<link "Lay the groundwork for incorporation">><<set $corpIncorporated = 1>><<set $sharePrice = 10>><<set $oldSharePrice = $sharePrice>><<set $personalShares = 2000>><<run cashX(-30000, "stocksTraded")>><<set $publicShares = 1000>><<set $corpCash = 20000>><<set $generalAssets = 500>><<set $slaveAssets = 1000>><<set $entrapmentAssets = 500>><<set $captureAssets = 500>><<set $trainingAssets = 500>><<set $surgicalAssets = 500>><<set $drugAssets = 500>><<replace "#incorporate">><<print "The groundwork has been laid for the incorporation of a publicly traded slave trading corporation. The IPO will involve 1000 shares at <<print cashFormat(10)>>/share.">><</replace>><</link>> //Costs <<print cashFormat(30000)>>// - </span> - <<else>> - <<include "Corporation Developments">> - <</if>> + <<include "Corporation Developments">> <</if>> <<if $secExp == 1>> @@ -68,8 +62,8 @@ <<if $FSAnnounced > 0>> <button class="tablinks" onclick="opentab(event, 'Societies')">Society Development</button> <</if>> - <<if $corpAnnounced == 1>> - <button class="tablinks" onclick="opentab(event, 'Corporation')">Corporation</button> + <<if $corpIncorporated == 1>> + <button class="tablinks" onclick="opentab(event, 'Corporation')">Corporation Developments</button> <</if>> <<if $secExp == 1>> <button class="tablinks" onclick="opentab(event, 'Authority')">Authority</button> @@ -102,16 +96,10 @@ </div> <</if>> -<<if $corpAnnounced == 1>> +<<if $corpIncorporated == 1>> <div id="Corporation" class="tabcontent"> <div class="content"> - <<if $corpIncorporated == 0>> - <span id="incorporate"> - You have not yet committed funds to create a publicly traded slave trading corporation. <<link "Lay the groundwork for incorporation">><<set $corpIncorporated = 1>><<set $sharePrice = 10>><<set $oldSharePrice = $sharePrice>><<set $personalShares = 2000>><<run cashX(-30000, "stocksTraded")>><<set $publicShares = 1000>><<set $corpCash = 20000>><<set $generalAssets = 500>><<set $slaveAssets = 1000>><<set $entrapmentAssets = 500>><<set $captureAssets = 500>><<set $trainingAssets = 500>><<set $surgicalAssets = 500>><<set $drugAssets = 500>><<replace "#incorporate">><<print "The groundwork has been laid for the incorporation of a publicly traded slave trading corporation. The IPO will involve 1000 shares at <<print cashFormat(10)>>/share.">><</replace>><</link>> //Costs <<print cashFormat(30000)>>// - </span> - <<else>> - <<include "Corporation Developments">> - <</if>> + <<include "Corporation Developments">> </div> </div> <</if>> diff --git a/src/uncategorized/main.tw b/src/uncategorized/main.tw index 15a86ebf74830ad4b2324fb295e80af8178a4c4e..0f8a78e26df06f187a4299e786f8eda846a4212f 100644 --- a/src/uncategorized/main.tw +++ b/src/uncategorized/main.tw @@ -69,7 +69,6 @@ <<set $nextButton = "END WEEK", $nextLink = "End Week", $showEncyclopedia = 1, $encyclopedia = "How to Play">> <<set $costs = Math.trunc(predictCost($slaves))>> -<<run FacilityNameCleanup()>> <<if ($PC.customTitle == "")>> <<set $PC.customTitle = undefined, $PC.customTitleLisp = undefined>> <</if>> diff --git a/src/uncategorized/manageArcology.tw b/src/uncategorized/manageArcology.tw index 609b48dbd64ed88ae216f9ea07e1bedefe18a4ea..3fdaa92ed17513377780ab0bdbac1029c756a064 100644 --- a/src/uncategorized/manageArcology.tw +++ b/src/uncategorized/manageArcology.tw @@ -126,108 +126,6 @@ __Construction__ <br><br> -<<if $corpIncorporated == 1 || $corpMarket == 1>> - __Corporation__ -<<if $corpIncorporated == 1 && $corpMarket == 0>> - <<link "Dissolve the corporation">> - <<set $corpIncorporated = 0>> - <<set $corpPeopleEnslaved = 0>> - <<set $slaveAssets = 0>> - <<set $slaveAssetPrice = Math.trunc(10*$slaveCostFactor)>> - <<set $corpProfit = 0>> - <<set $corpCash = 0>> - <<set $mercenariesHelpCorp = 0>> - <<set $corpValue = 0>> - <<set $sharePrice = 0>> - <<set $oldSharePrice = 0>> - <<set $personalShares = 0>> - <<set $publicShares = 0>> - <<set $generalAssetPrice = 10>> - <<set $generalAssets = 0>> - <<set $entrapmentAssets = 0>> - <<set $entrapmentAssetPrice = 10>> - <<set $captureAssets = 0>> - <<set $captureAssetPrice = 10>> - <<set $trainingAssets = 0>> - <<set $trainingAssetPrice = 10>> - <<set $surgicalAssets = 0>> - <<set $surgicalAssetPrice = 10>> - <<set $drugAssets = 0>> - <<set $drugAssetPrice = 10>> - <<set $generalUpgradeBreaking = "unselected">> - <<set $generalUpgradeWeight = "unselected">> - <<set $generalUpgradeMuscle = "unselected">> - <<set $entrapmentUpgradeDevotionOne = "unselected">> - <<set $entrapmentUpgradeDevotionTwo = "unselected">> - <<set $entrapmentUpgradeIntelligence = "unselected">> - <<set $captureUpgradeGender = "unselected">> - <<set $surgicalUpgradeGenitalia = "unselected">> - <<set $captureUpgradeAge = "unselected">> - <<set $captureUpgradeRace = "unselected">> - <<set $trainingUpgradeAccent = "unselected">> - <<set $trainingUpgradeEducation = "unselected">> - <<set $trainingUpgradeSexEd = "unselected">> - <<set $surgicalUpgradeCosmetics = "unselected">> - <<set $surgicalUpgradeImplants = "unselected">> - <<set $drugUpgradeHormones = "unselected">> - <<set $drugUpgradeInjectionOne = "unselected">> - <<set $drugUpgradeInjectionTwo = "unselected">> - <<goto "Manage Arcology">> - <</link>> -<<elseif $corpIncorporated == 1 && $corpMarket == 1>> - <br><<link "Dissolve both corporation and the market">> - <<set $corpIncorporated = 0>> - <<set $corpPeopleEnslaved = 0>> - <<set $slaveAssets = 0>> - <<set $slaveAssetPrice = Math.trunc(10*$slaveCostFactor)>> - <<set $corpProfit = 0>> - <<set $corpCash = 0>> - <<set $mercenariesHelpCorp = 0>> - <<set $corpValue = 0>> - <<set $sharePrice = 0>> - <<set $oldSharePrice = 0>> - <<set $personalShares = 0>> - <<set $publicShares = 0>> - <<set $generalAssetPrice = 10>> - <<set $generalAssets = 0>> - <<set $entrapmentAssets = 0>> - <<set $entrapmentAssetPrice = 10>> - <<set $captureAssets = 0>> - <<set $captureAssetPrice = 10>> - <<set $trainingAssets = 0>> - <<set $trainingAssetPrice = 10>> - <<set $surgicalAssets = 0>> - <<set $surgicalAssetPrice = 10>> - <<set $drugAssets = 0>> - <<set $drugAssetPrice = 10>> - <<set $generalUpgradeBreaking = "unselected">> - <<set $generalUpgradeWeight = "unselected">> - <<set $generalUpgradeMuscle = "unselected">> - <<set $entrapmentUpgradeDevotionOne = "unselected">> - <<set $entrapmentUpgradeDevotionTwo = "unselected">> - <<set $entrapmentUpgradeIntelligence = "unselected">> - <<set $captureUpgradeGender = "unselected">> - <<set $surgicalUpgradeGenitalia = "unselected">> - <<set $captureUpgradeAge = "unselected">> - <<set $captureUpgradeRace = "unselected">> - <<set $trainingUpgradeAccent = "unselected">> - <<set $trainingUpgradeEducation = "unselected">> - <<set $trainingUpgradeSexEd = "unselected">> - <<set $surgicalUpgradeCosmetics = "unselected">> - <<set $surgicalUpgradeImplants = "unselected">> - <<set $drugUpgradeHormones = "unselected">> - <<set $drugUpgradeInjectionOne = "unselected">> - <<set $drugUpgradeInjectionTwo = "unselected">> - <<set $corpMarket = 0>> - <<for _i = 0; _i < $sectors.length; _i++>> - <<if $sectors[_i].type == "CorporateMarket">><<set $sectors[_i].type = "Markets">><<break>><</if>> - <</for>> - <<goto "Manage Arcology">> - <</link>> -<</if>> -<br><br> -<</if>> - __Language__ <br>The lingua franca of the arcology is ''$language''. <<link "Language options">><<set $seed = $language>><<goto "Change Language">><</link>> diff --git a/src/uncategorized/marketsReport.tw b/src/uncategorized/marketsReport.tw index 9133b1261e7501f0a93166f730022e8ea6ba1e14..ce4c2582000e923efebf44fcc99916e8fa9afe1c 100644 --- a/src/uncategorized/marketsReport.tw +++ b/src/uncategorized/marketsReport.tw @@ -12,14 +12,12 @@ <<else>> ...conflict-driven increases in transportation costs increase @@.yellowgreen;price indices@@... <</if>> - <<set $generalAssetPrice += 2>> <<else>> <<if random(1,100) > 50>> ...increasing Free Cities slave labor effects @@.gold;general prices@@... <<else>> ...Antarctic oil shale pushing down energy prices, driving down major @@.gold;price indices@@... <</if>> - <<set $generalAssetPrice -= 2>> <</if>> <<elseif _assetAffected == "slaves">> <<if _assetDirection == "up">> @@ -28,14 +26,12 @@ <<else>> ...study suggested the sexual revolution would continue to drive up @@.yellowgreen;slave prices@@... <</if>> - <<set $slaveAssetPrice += 2>> <<else>> <<if random(1,100) > 50>> ...increased supply due to bush wars drove down @@.gold;slave prices@@... <<else>> ...@@.gold;slave prices@@ continue to fall due to major improvements in training... <</if>> - <<set $slaveAssetPrice -= 2>> <</if>> <<elseif _assetAffected == "entrapment">> <<if _assetDirection == "up">> @@ -44,14 +40,12 @@ <<else>> ...law would legalize enslavement, driving @@.yellowgreen;high prices@@ for associated... <</if>> - <<set $entrapmentAssetPrice += 2>> <<else>> <<if random(1,100) > 50>> ...reactionism produced lower demand and @@.gold;lower prices@@ for legal enslavement... <<else>> ...report on low success rates @@.gold;drove down@@ value of legal enslavement methods... <</if>> - <<set $entrapmentAssetPrice -= 2>> <</if>> <<elseif _assetAffected == "capture">> <<if _assetDirection == "up">> @@ -60,14 +54,12 @@ <<else>> ...advancing technology to blame for @@.yellowgreen;rising costs@@ of assets for wet work... <</if>> - <<set $captureAssetPrice += 2>> <<else>> <<if random(1,100) > 50>> ...rumored peace treaty @@.gold;pushed down@@ mercenary contract clearing rate... <<else>> ...demobilization of the cash-strapped army expected to produce mercenary @@.gold;glut@@... <</if>> - <<set $captureAssetPrice -= 2>> <</if>> <<elseif _assetAffected == "training">> <<if _assetDirection == "up">> @@ -76,14 +68,12 @@ <<else>> ...public demand for ever-better slave training inevitably @@.yellowgreen;increase@@ training costs... <</if>> - <<set $trainingAssetPrice += 2>> <<else>> <<if random(1,100) > 50>> ...competition from low-cost slave breaking firms @@.gold;reducing@@ asking price for... <<else>> ...increased automation of slave training @@.gold;negatively impacting@@ training contracts... <</if>> - <<set $trainingAssetPrice -= 2>> <</if>> <<elseif _assetAffected == "surgical">> <<if _assetDirection == "up">> @@ -92,14 +82,12 @@ <<else>> ...near-universal breast implants producing corresponding @@.yellowgreen;price inflation@@ of surgery... <</if>> - <<set $surgicalAssetPrice += 2>> <<else>> <<if random(1,100) > 50>> ...vastly reduced overhead with remote surgery @@.gold;hitting prices@@ of surgery hard... <<else>> ...oversupply after major manufacturers converted lines to @@.gold;low-cost@@ implant production... <</if>> - <<set $surgicalAssetPrice -= 2>> <</if>> <<elseif _assetAffected == "drugs">> <<if _assetDirection == "up">> @@ -108,13 +96,11 @@ <<else>> ...setbacks in growth hormone human testing expected to @@.yellowgreen;increase prices@@ of traditional formula... <</if>> - <<set $drugAssetPrice += 2>> <<else>> <<if random(1,100) > 50>> ...new formula @@.gold;cut costs@@ of common curatives by an unprecedented... <<else>> ...glut caused by big pharma reorienting towards @@.gold;cheap,@@ mass-produced aphros... <</if>> - <<set $drugAssetPrice -= 2>> <</if>> <</if>> diff --git a/src/uncategorized/neighborsDevelopment.tw b/src/uncategorized/neighborsDevelopment.tw index 53010fd895333095408810a2d951ce8294769b9d..28e88254bd3570bf6c23b3bdcc6003a0090eb9cb 100644 --- a/src/uncategorized/neighborsDevelopment.tw +++ b/src/uncategorized/neighborsDevelopment.tw @@ -9,7 +9,7 @@ <</for>> <<set $averageProsperity = $averageProsperity/$arcologies.length>> -<<set _corpBonus = Math.trunc($corpProfit*0.05)>> +<<set _corpBonus = Math.trunc(1000 * Math.pow(corpValue(), 0.2))>> <<if $useTabs == 0>>__Arcologies in the Free City__<</if>> @@ -683,14 +683,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSSupremacist != "unset">> <<if $corpIncorporated == 1>> - <<if $captureUpgradeRace != "unselected">> - <<if $captureUpgradeRace != "none">> - <<if $captureUpgradeRace != $arcologies[$i].FSSupremacistRace>> + <<if !$corpSpecRaces.includes($arcologies[$i].FSSupremacistRace)>> It's a @@.lightgreen;good market@@ for your corporation's racially inferior slaves, improving sales and helping social progress. <<set $arcologies[$i].FSSupremacist += 1>> - <<set $corpCash += _corpBonus>> - <</if>> - <</if>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -754,10 +751,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSSubjugationist != "unset">> <<if $corpIncorporated == 1>> - <<if $captureUpgradeRace == $arcologies[$i].FSSubjugationistRace>> + <<if $corpSpecRaces.includes($arcologies[$i].FSSubjugationistRace)>> It's a @@.lightgreen;good market@@ for your corporation's $arcologies[$i].FSSubjugationistRace slaves, improving sales and helping social progress. <<set $arcologies[$i].FSSubjugationist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -796,14 +794,21 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSRepopulationFocus != "unset">> <<if $corpIncorporated == 1>> - <<if $drugUpgradeInjectionTwo == "pastoral">> + <<if $corpSpecMilk > 0>> It's a @@.lightgreen;good market@@ for your corporation's milky cows, improving sales and helping social progress. <<set $arcologies[$i].FSRepopulationFocus += 1>> - <<set $corpCash += _corpBonus>> - <<elseif $captureUpgradeAge == "young">> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecAge == 1>> It's a @@.lightgreen;good market@@ for your corporation's youthful captures, improving sales and helping social progress. <<set $arcologies[$i].FSRepopulationFocus += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecInjection == 5>> + It's a @@.lightgreen;good market@@ for your corporation's milky cows, improving sales and helping social progress. + <<set $arcologies[$i].FSRepopulationFocus += 1>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -841,18 +846,21 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSRestart != "unset">> <<if $corpIncorporated == 1>> - <<if $surgicalUpgradeGenitalia == "gelded">> + <<if $corpSpecBalls == -1>> It's an @@.lightgreen;excellent market@@ for your corporation's neutered slavegirls, improving sales and helping social progress. <<set $arcologies[$i].FSRestart += 2>> - <<set $corpCash += _corpBonus*2>> - <<elseif $trainingUpgradeSexEd == "highly skilled">> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecSexEd == 2>> It's a @@.lightgreen;good market@@ for your corporation's well trained toys, improving sales and helping social progress. <<set $arcologies[$i].FSRestart += 1>> - <<set $corpCash += _corpBonus>> - <<elseif $entrapmentUpgradeIntelligence == "intelligent">> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecIntelligence == 3>> It's a @@.lightgreen;good market@@ for your corporation's smarter captures, improving sales and helping social progress. <<set $arcologies[$i].FSRestart += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -892,27 +900,29 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSGenderRadicalist != "unset">> <<if $corpIncorporated == 1>> - <<if $drugUpgradeHormones != "unselected">> - <<if $drugUpgradeHormones != "none">> + <<if $corpSpecHormones > 0>> It's a @@.lightgreen;good market@@ for your corporation's hormonally treated slaves, improving sales and helping social progress. <<set $arcologies[$i].FSGenderRadicalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> - <<if $surgicalUpgradeGenitalia == "futanari">> + <<if $corpSpecPussy == 1 && $corpSpecDick == 1>> It's a @@.lightgreen;good market@@ for your corporation's beautiful futanari, improving sales and helping social progress. <<set $arcologies[$i].FSGenderRadicalist += 1>> - <<set $corpCash += _corpBonus>> - <<elseif $surgicalUpgradeGenitalia == "gelded">> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecBalls == -1>> It's a @@.lightgreen;good market@@ for your corporation's clipped buttsluts, improving sales and helping social progress. <<set $arcologies[$i].FSGenderRadicalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> - <<if ($captureUpgradeGender == "XY") || ($seeDicks == 100)>> + <<if ($corpSpecGender == 2) || ($seeDicks == 100)>> It's a @@.lightgreen;good market@@ for your corporation's feminized slaves, improving sales and helping social progress. <<set $arcologies[$i].FSGenderRadicalist += 1>> - <<set $corpCash += _corpBonus>> - <</if>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <<elseif $arcologies[$i].FSGenderFundamentalist != "unset">> @@ -948,10 +958,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSGenderFundamentalist != "unset">> <<if $corpIncorporated == 1>> - <<if ($captureUpgradeGender == "XX") || ($seeDicks == 0)>> + <<if ($corpSpecGender == 1) || ($seeDicks == 0)>> It's a @@.lightgreen;good market@@ for your corporation's enslaved females, improving sales and helping social progress. <<set $arcologies[$i].FSGenderFundamentalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -990,15 +1001,22 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSPaternalist != "unset">> <<if $corpIncorporated == 1>> - <<if $generalUpgradeBreaking == "care">> + <<if $corpSpecTrust > 3>> It's a @@.lightgreen;good market@@ for your corporation's well-treated companions, improving sales and helping social progress. <<set $arcologies[$i].FSPaternalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> - <<if $surgicalUpgradeCosmetics == "applied">> + <<if $corpSpecCosmetics == 1>> It's a @@.lightgreen;good market@@ for your corporation's meticulously beautified ladies, improving sales and helping social progress. <<set $arcologies[$i].FSPaternalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecEducation > 0>> + It's a @@.lightgreen;good market@@ for your corporation's educated ladies, improving sales and helping social progress. + <<set $arcologies[$i].FSPaternalist += 1>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1035,19 +1053,22 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSDegradationist != "unset">> <<if $corpIncorporated == 1>> - <<if $generalUpgradeBreaking == "brutality">> + <<if $corpSpecTrust < 3>> It's a @@.lightgreen;good market@@ for your corporation's thoroughly terrified slaves, improving sales and helping social progress. <<set $arcologies[$i].FSDegradationist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> - <<if $entrapmentUpgradeIntelligence == "stupid">> + <<if $corpSpecIntelligence == 1>> It's a @@.lightgreen;good market@@ for your corporation's idiotic sluts, improving sales and helping social progress. <<set $arcologies[$i].FSDegradationist += 1>> - <<set $corpCash += _corpBonus>> - <<elseif $surgicalUpgradeGenitalia == "fucknugget">> - It's a @@.lightgreen;good market@@ for your corporation's ex-human sex toys, improving sales and helping social progress. + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecAmputee == 1>> + It's a @@.lightgreen;good market@@ for your corporation's human sex toys, improving sales and helping social progress. <<set $arcologies[$i].FSDegradationist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1086,11 +1107,12 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSBodyPurist != "unset">> <<if $corpIncorporated == 1>> - <<if ($surgicalUpgradeImplants == "unselected") || ($surgicalUpgradeImplants == "none")>> - <<if $surgicalUpgradeGenitalia != "fucknugget">> + <<if def $corpSpecImplants>> + <<if $corpSpecAmputee != 1>> It's a @@.lightgreen;good market@@ for your corporation's implant-free slaves, improving sales and helping social progress. <<set $arcologies[$i].FSBodyPurist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1129,14 +1151,16 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSTransformationFetishist != "unset">> <<if $corpIncorporated == 1>> - <<if $surgicalUpgradeImplants == "applied">> + <<if $corpSpecImplants == 1>> It's a @@.lightgreen;good market@@ for your corporation's implanted slaves, improving sales and helping social progress. <<set $arcologies[$i].FSTransformationFetishist += 1>> - <<set $corpCash += _corpBonus>> - <<elseif $surgicalUpgradeImplants == "absurd">> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecImplants == 2>> It's an @@.lightgreen;excellent market@@ for your corporation's absurdly implanted slaves, improving sales and helping social progress. <<set $arcologies[$i].FSTransformationFetishist += 2>> - <<set $corpCash += _corpBonus*2>> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> <</if>> <</if>> <</if>> @@ -1176,10 +1200,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSYouthPreferentialist != "unset">> <<if $corpIncorporated == 1>> - <<if $captureUpgradeAge == "young">> + <<if $corpSpecAge == 1>> It's a @@.lightgreen;good market@@ for your corporation's young slaves, improving sales and helping social progress. <<set $arcologies[$i].FSYouthPreferentialist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1216,10 +1241,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSMaturityPreferentialist != "unset">> <<if $corpIncorporated == 1>> - <<if $captureUpgradeAge == "old">> + <<if $corpSpecAge == 3>> It's a @@.lightgreen;good market@@ for your corporation's enslaved MILFs, improving sales and helping social progress. <<set $arcologies[$i].FSMaturityPreferentialist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1259,17 +1285,12 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSSlimnessEnthusiast != "unset">> <<if $corpIncorporated == 1>> - <<if $drugUpgradeInjectionOne != "huge">> - <<if $drugUpgradeInjectionOne != "tasteful">> - <<if $drugUpgradeInjectionTwo != "supermassive">> - <<if $drugUpgradeInjectionTwo != "pastoral">> - <<if $generalUpgradeWeight == "attractive">> + <<if $corpSpecInjection < 2>> + <<if $corpSpecWeight < 3>> It's a @@.lightgreen;good market@@ for your corporation's trim slaves, improving sales and helping social progress. <<set $arcologies[$i].FSSlimnessEnthusiast += 1>> - <<set $corpCash += _corpBonus>> - <</if>> - <</if>> - <</if>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1308,18 +1329,21 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSAssetExpansionist != "unset">> <<if $corpIncorporated == 1>> - <<if $drugUpgradeInjectionTwo == "supermassive">> + <<if $corpSPecInjection == 4>> It's an @@.lightgreen;excellent market@@ for your corporation's world-class tits and ass, improving sales and helping social progress. <<set $arcologies[$i].FSAssetExpansionist += 2>> - <<set $corpCash += _corpBonus*2>> - <<elseif $drugUpgradeInjectionTwo == "pastoral">> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecInjection == 5>> It's a @@.lightgreen;good market@@ for your corporation's hugely endowed cows, improving sales and helping social progress. <<set $arcologies[$i].FSAssetExpansionist += 1>> - <<set $corpCash += _corpBonus>> - <<elseif $drugUpgradeInjectionOne == "huge">> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSPecInjection == 3>> It's a @@.lightgreen;good market@@ for your corporation's stacked slaves, improving sales and helping social progress. <<set $arcologies[$i].FSAssetExpansionist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1355,10 +1379,16 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSPastoralist != "unset">> <<if $corpIncorporated == 1>> - <<if $drugUpgradeInjectionTwo == "pastoral">> + <<if $corpSpecInjection == 5>> + It's an @@.lightgreen;excellent market@@ for your corporation's world-class milk producers, improving sales and helping social progress. + <<set $arcologies[$i].FSPastoralist += 2>> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecMilk > 0>> It's an @@.lightgreen;excellent market@@ for your corporation's world-class milk producers, improving sales and helping social progress. <<set $arcologies[$i].FSPastoralist += 2>> - <<set $corpCash += _corpBonus*2>> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> <</if>> <</if>> <</if>> @@ -1395,14 +1425,21 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSCummunism != "unset">> <<if $corpIncorporated == 1>> - <<if $drugUpgradeInjectionTwo == "pastoral">> + <<if $corpSpecInjection == 5>> It's an @@.lightgreen;excellent market@@ for your corporation's world-class cum producers, improving sales and helping social progress. <<set $arcologies[$i].FSCummunism += 2>> - <<set $corpCash += _corpBonus*2>> - <<elseif $drugUpgradeHormones == "XY">> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecHormones == 2>> It's a @@.lightgreen;good market@@ for your corporation's masculinized slaves, improving sales and helping social progress. <<set $arcologies[$i].FSCummunism += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecDick == 1 && $corpSpecBalls == 1>> + It's a @@.lightgreen;good market@@ for your corporation's slaves standard dicks and balls, improving sales and helping social progress. + <<set $arcologies[$i].FSCummunism += 1>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1441,14 +1478,21 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSPhysicalIdealist != "unset">> <<if $corpIncorporated == 1>> - <<if $generalUpgradeMuscle == "ripped">> + <<if $corpSpecMuscle == 5 >> It's an @@.lightgreen;excellent market@@ for your corporation's ripped chicks, improving sales and helping social progress. <<set $arcologies[$i].FSPhysicalIdealist += 2>> - <<set $corpCash += _corpBonus*2>> - <<elseif $generalUpgradeMuscle == "toned">> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecMuscle == 4>> It's a @@.lightgreen;good market@@ for your corporation's toned ladies, improving sales and helping social progress. <<set $arcologies[$i].FSPhysicalIdealist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> + <<elseif $corpSpecHeight > 3>> + It's a @@.lightgreen;good market@@ for your corporation's tall ladies, improving sales and helping social progress. + <<set $arcologies[$i].FSPhysicalIdealist += 1>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1486,14 +1530,16 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSHedonisticDecadence != "unset">> <<if $corpIncorporated == 1>> - <<if $generalUpgradeBreaking == "care">> + <<if $corpSpecTrust > 3>> It's an @@.lightgreen;excellent market@@ for your corporation's well kept, happy slaves, improving sales and helping social progress. <<set $arcologies[$i].FSHedonisticDecadence += 2>> - <<set $corpCash += _corpBonus*2>> - <<elseif $trainingUpgradeSexEd == "highly skilled">> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecSexEd == 2>> It's a @@.lightgreen;good market@@ for your corporation's skilled slaves, improving sales and helping social progress. <<set $arcologies[$i].FSHedonisticDecadence += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1529,10 +1575,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSIncestFetishist != "unset">> <<if $corpIncorporated == 1>> - <<if $captureUpgradeAge == "old">> + <<if $corpSpecAge == 3>> It's a @@.lightgreen;good market@@ for your corporation's motherly slaves, especially those that look like peoples mothers, improving sales and helping social progress. <<set $arcologies[$i].FSIncestFetishist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1568,14 +1615,16 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSChattelReligionist != "unset">> <<if $corpIncorporated == 1>> - <<if $trainingUpgradeSexEd == "highly skilled">> + <<if $corpSpecSexEd == 2>> It's an @@.lightgreen;excellent market@@ for your corporation's holy sex slaves, improving sales and helping social progress. <<set $arcologies[$i].FSChattelReligionist += 2>> - <<set $corpCash += _corpBonus*2>> - <<elseif $trainingUpgradeSexEd == "competence">> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecSexEd == 1>> It's a @@.lightgreen;good market@@ for your corporation's aspiring sexual acolytes, improving sales and helping social progress. <<set $arcologies[$i].FSChattelReligionist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1626,10 +1675,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSRomanRevivalist != "unset">> <<if $corpIncorporated == 1>> - <<if $trainingUpgradeEducation == "basic">> + <<if $corpSpecEducation > 0>> It's a @@.lightgreen;good market@@ for your corporation's properly educated slaves, improving sales and helping social progress. <<set $arcologies[$i].FSRomanRevivalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1678,10 +1728,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSAztecRevivalist != "unset">> <<if $corpIncorporated == 1>> - <<if $trainingUpgradeAccent == "accents">> + <<if $corpSpecAccent == 1>> It's a @@.lightgreen;good market@@ for your corporation's lovely mix of slave accents, improving sales and helping social progress. <<set $arcologies[$i].FSAztecRevivalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1730,10 +1781,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSEgyptianRevivalist != "unset">> <<if $corpIncorporated == 1>> - <<if $trainingUpgradeAccent == "accents">> + <<if $corpSpecAccent == 1>> It's a @@.lightgreen;good market@@ for your corporation's lovely mix of slave accents, improving sales and helping social progress. <<set $arcologies[$i].FSEgyptianRevivalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1782,10 +1834,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSEdoRevivalist != "unset">> <<if $corpIncorporated == 1>> - <<if $trainingUpgradeAccent == "eliminate">> + <<if $corpSpecAccent == 2>> It's a @@.lightgreen;good market@@ for your corporation's linguistically perfect slaves, improving sales and helping social progress. <<set $arcologies[$i].FSEdoRevivalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1834,14 +1887,16 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSArabianRevivalist != "unset">> <<if $corpIncorporated == 1>> - <<if $entrapmentUpgradeDevotionTwo == "devotion">> + <<if $corpSpecDevotion == 5>> It's an @@.lightgreen;excellent market@@ for your corporation's harem-ready devotees, improving sales and helping social progress. <<set $arcologies[$i].FSArabianRevivalist += 2>> - <<set $corpCash += _corpBonus*2>> - <<elseif $entrapmentUpgradeDevotionOne == "obedience">> + <<set $corpCash += _corpBonus*2, + $corpRev += _corpBonus*2>> + <<elseif $corpSpecDevotion == 4>> It's a @@.lightgreen;good market@@ for your corporation's properly broken girls, improving sales and helping social progress. <<set $arcologies[$i].FSArabianRevivalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> @@ -1890,10 +1945,11 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <<if $arcologies[$i].FSChineseRevivalist != "unset">> <<if $corpIncorporated == 1>> - <<if $entrapmentUpgradeIntelligence == "intelligent">> + <<if $corpSpecIntelligence == 3>> It's a @@.lightgreen;good market@@ for your corporation's intelligent Head Girl prospects, improving sales and helping social progress. <<set $arcologies[$i].FSChineseRevivalist += 1>> - <<set $corpCash += _corpBonus>> + <<set $corpCash += _corpBonus, + $corpRev += _corpBonus>> <</if>> <</if>> <</if>> diff --git a/src/uncategorized/nonRandomEvent.tw b/src/uncategorized/nonRandomEvent.tw index 08170bdec55d68a01cc69f5dbf354ac10d8ac0bb..7b78eb18d7294e431f2d689c278856f32f9e59de 100644 --- a/src/uncategorized/nonRandomEvent.tw +++ b/src/uncategorized/nonRandomEvent.tw @@ -131,13 +131,13 @@ <<elseif ($marketAssistantAnnounced == 0) && ($assistantPower > 1)>> <<set $Event = "market assistant">> <<goto "Assistant Events">> -<<elseif (_effectiveWeek > 70) && ($corpIncorporated > 0) && ($rivalOwnerEnslaved > 0) && ($mercenaries >= 3) && ($mercenariesHelpCorp == 0)>> +<<elseif (_effectiveWeek > 70) && ($corpIncorporated > 0) && ($rivalOwnerEnslaved > 0) && ($mercenaries >= 3) && ($mercenariesHelpCorp == 0) && ($corpDivExtra > 0)>> <<goto "P Mercs Help Corp">> <<elseif _effectiveWeek > 75 && def $peacekeepers && $peacekeepers.strength < 50 && $rivalOwner == 0 && $peacekeepersFate != 1>> <<goto "P peacekeepers independence">> <<elseif def $peacekeepers && $peacekeepers.strength >= 50 && $peacekeepers.influenceAnnounced == 0>> <<goto "P peacekeepers influence">> -<<elseif ($cash > 30000) && ($rep > 4000) && ($corpAnnounced == 0)>> +<<elseif ($cash > 120000) && ($rep > 4000) && ($corpAnnounced == 0)>> <<goto "P Corp Announcement">> <<elseif ($rivalOwner > 0)>> <<if $hostageAnnounced == -1 && $rivalSet != 0>> diff --git a/src/uncategorized/options.tw b/src/uncategorized/options.tw index 3c092aea12eb08d4a3b455ea5f7905ecc952fd47..b234f8b92512fafeb0eb18368b4fae9084de838e 100644 --- a/src/uncategorized/options.tw +++ b/src/uncategorized/options.tw @@ -245,15 +245,6 @@ Master Suite report details such as slave changes are @@.red;DISABLED.@@ [[Enable|Options][$verboseDescriptions = 1]] <</if>> -<br> - -Detailed corporation controls are -<<if ($detailedCorpControls == 1)>> - @@.cyan;ENABLED.@@ [[Disable|Options][$detailedCorpControls = 0]] -<<else>> - @@.red;DISABLED.@@ [[Enable|Options][$detailedCorpControls = 1]] -<</if>> - /* Accordion 000-250-006 */ <br /> Accordion effects on weekly reports are diff --git a/src/uncategorized/pCorpAnnouncement.tw b/src/uncategorized/pCorpAnnouncement.tw index a1bf424182450331166ecbfc633b103b41f592f8..8d3783f2818965e5a89b4a62c4c61c85a6cbbe50 100644 --- a/src/uncategorized/pCorpAnnouncement.tw +++ b/src/uncategorized/pCorpAnnouncement.tw @@ -10,3 +10,5 @@ You never understood the power of money until accumulating so much of it yoursel Good investment opportunities are hard to come by in the uncertain world of today. The days of government bonds providing steady yields are ending. Markets are volatile, and under attack by forces they cannot begin to control or anticipate. In places, the very consensus on modern capitalism that has held for nearly fifty years is under siege. There's one reliable growth market in the Free Cities: slaves. And there's too much capital chasing too few investment opportunities in that market. Reviewing the situation from your desk, the nerve center of your growing empire, you think to yourself: why not? You have the reputation and the capital to become a major player in the slave market, just for the asking. If you announced the incorporation of a publicly traded company dedicated to the industry of slavery, Free Cities investors would be lining up, cash in hand, ready to buy stock. + +<br><br>@@.orange;//Corporation controls are under the Manage Economy tab//@@ diff --git a/src/uncategorized/persBusiness.tw b/src/uncategorized/persBusiness.tw index dd833aaaaabfe3311382c5c297d06cf9fea4c37e..6b81cb056d561af486af4e649b4712737c968242 100644 --- a/src/uncategorized/persBusiness.tw +++ b/src/uncategorized/persBusiness.tw @@ -203,50 +203,50 @@ <<set _caught = 1>> <<case "supremacist">> <<set _income += random(2000,3000)>> - When it comes to smuggling in your arcology, there is no better target than $arcologies[0].FSSupremacistRace slaves, and there is a high demand for them, making you a nice @@.yellowgreen;<<print cashFormat(_income)>>.@@ Participating in this slave trade means you can control who is set. Your people do not see things in the same light though, and @@.red;your reputation takes a big hit@@. + When it comes to smuggling in your arcology, there is no better target than $arcologies[0].FSSupremacistRace slaves, and there is a high demand for them, making you a nice @@.yellowgreen;<<print cashFormat(_income)>>.@@ Participating in this slave trade means you can control who is set. Your people do not see things in the same light though, and @@.red;your reputation takes a big hit.@@ <<set _caught = 1>> <<case "degradationist">> <<set _income += random(2000,3000)>> During your free time, you make business with a few low-standards slavers and manage to buy stolen slaves and sell them at a profit. Even if people recognized you, such treatment of slaves is normal, and only a few people would really complain about it. Your dealings have made you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "repopulation">> <<set _income += random(1500,2500)>> - You manage to discreetly rent out your remote surgery services for abortions. You make sure the people do not recognize your penthouse, having them come blindfolded or unconscious, should the abortion request does not come from themselves. With this, you make @@.yellowgreen;<<print cashFormat(_income)>>@@. + You manage to discreetly rent out your remote surgery services for abortions. You make sure the people do not recognize your penthouse, having them come blindfolded or unconscious, should the abortion request does not come from themselves. With this, you make @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "fundamentalist">> <<set _income += random(1500,2500)>> - You manage to arrange a few sex-changes and geldings in your own remote surgery for some powerful people to accommodate your arcology's sense of power, but also for people who want to transform others into females so that they lose all the power they have. This makes you @@.yellowgreen;<<print cashFormat(_income)>>@@. + You manage to arrange a few sex-changes and geldings in your own remote surgery for some powerful people to accommodate your arcology's sense of power, but also for people who want to transform others into females so that they lose all the power they have. This makes you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "hedonistic">> <<set _income += random(1500,2500)>> - Since most of what the Old World considered to be illegal is legal in your arcology, "smuggling" is quite common, and you easily find people ready to pay for your help with dealing with their competition. With this, you manage to make @@.yellowgreen;<<print cashFormat(_income)>>@@. + Since most of what the Old World considered to be illegal is legal in your arcology, "smuggling" is quite common, and you easily find people ready to pay for your help with dealing with their competition. With this, you manage to make @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "pastoralist">> <<set _income += random (1500,2500)>> - You take advantage of your own laws, making sure that animal products still come into your arcology. But you also make sure to make them as disgusting as possible so that people would rather turn to slave-produced ones instead. This allows you to make @@.yellowgreen;<<print cashFormat(_income)>>. + You take advantage of your own laws, making sure that animal products still come into your arcology. But you also make sure to make them as disgusting as possible so that people would rather turn to slave-produced ones instead. This allows you to make @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "body purist">> <<set _income += random(1500,2500)>> - In your arcology, people are expected to be all natural, but this doesn't mean the same thing applies outside. By buying slaves, giving them implants and quickly selling them before anyone notices, you manage to make @@.yellowgreen;<<print cashFormat(_income)>>. + In your arcology, people are expected to be all natural, but this doesn't mean the same thing applies outside. By buying slaves, giving them implants and quickly selling them before anyone notices, you manage to make @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "subjugationist">> <<set _income += random(1500,2500)>> You manage to work with some slavers that deal exclusively in $arcologies[0].FSSubjugationistRace slaves, and you export them from the arcology at a cost, bringing in @@.yellowgreen;<<print cashFormat(_income)>>.@@ Considering most people do not care about the fate of the slaves, they are simply mildly annoyed at the short-term raise of prices due to the exportation. <<case "radicalist">> <<set _income += random(2500,4000)>> - Anal pregnancy may be accepted in your arcology, but seeing how it goes against the laws of nature makes it a gold mine for dirty businesses; you have rich slaveowners and well-known slavers come to you with their best sissies so that you can implant them with artificial uteri. This flourishing business made you @@.yellowgreen;<<print cashFormat(_income)>>@@. + Anal pregnancy may be accepted in your arcology, but seeing how it goes against the laws of nature makes it a gold mine for dirty businesses; you have rich slaveowners and well-known slavers come to you with their best sissies so that you can implant them with artificial uteri. This flourishing business made you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "transformation">> <<set _income += random(2500,4000)>> - Your arcology is well known for its implants, and usually, one would have to pay a fortune simply to have a clinic implant them with normal implants. You take advantage of this trend to rent your remote surgery and your knowledge of gigantic implants to slavers for a cut of their profit. This gets you @@.yellowgreen;<<print cashFormat(_income)>>@@. + Your arcology is well known for its implants, and usually, one would have to pay a fortune simply to have a clinic implant them with normal implants. You take advantage of this trend to rent your remote surgery and your knowledge of gigantic implants to slavers for a cut of their profit. This gets you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "youth">> <<set _income += random(1500,2500)>> Youth is more important than anything in your arcology, yet some people who are not really in their prime are rich and powerful, enough that renting your remote surgery to them for age lifts and total body rework is quite worth it, both for them and for you. You get paid @@.yellowgreen;<<print cashFormat(_income)>>@@ for these services. <<case "maturity">> <<set _income += random(1500,2500)>> - In your arcology, the older the slave, the better. This also means that your arcology deals a lot in curatives and preventatives, as well as less-than-legal drugs that are supposed to extend one's lifespan. You manage to ship in a few of these drugs and sell them at a high price, making you @@.yellowgreen;<<print cashFormat(_income)>>@@. + In your arcology, the older the slave, the better. This also means that your arcology deals a lot in curatives and preventatives, as well as less-than-legal drugs that are supposed to extend one's lifespan. You manage to ship in a few of these drugs and sell them at a high price, making you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "slimness">> <<set _income += random(1500,2500)>> - Your arcology treats chubby people quite poorly, so they are ready to spend a lot of money on surgeries and supposed "miracle" solutions. When they can't afford legal and efficient methods, they have to turn to other drugs. The sales bring you @@.yellowgreen;<<print cashFormat(_income)>>@@. + Your arcology treats chubby people quite poorly, so they are ready to spend a lot of money on surgeries and supposed "miracle" solutions. When they can't afford legal and efficient methods, they have to turn to other drugs. The sales bring you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "expansionist">> <<set _income += random(2500,4000)>> Your arcology likes its slaves nice and stacked and you have exactly the drugs for it. But you always make sure to produce just a bit more, enough to not alarm anybody who might be watching, but also enough to sell to other prominent slaveowners outside your arcology, who pay you @@.yellowgreen;<<print cashFormat(_income)>>@@ for them. <<case "idealist">> <<set _income += random(1500,2500)>> - Your society's obsession with fit and muscular slaves has developed a particular interest in steroids and all kinds of drugs to tone one's body. As an arcology owner, you always have access to the most potent of them, but this is not the case for lower class citizens; some of them just aren't willing to pay a lot for them, so they buy experimental drugs off the black market. Participating in these activities made you @@.yellowgreen;<<print cashFormat(_income)>>@@. + Your society's obsession with fit and muscular slaves has developed a particular interest in steroids and all kinds of drugs to tone one's body. As an arcology owner, you always have access to the most potent of them, but this is not the case for lower class citizens; some of them just aren't willing to pay a lot for them, so they buy experimental drugs off the black market. Participating in these activities made you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "religion">> <<set _income += random(2000,3000)>> The best smugglers know how to use the law to its advantage, and not only are you a really good smuggler, you're also the law itself. You have word spread that some company has done something blasphemous, and have them pray and pay for forgiveness. Panicked at the word of their Prophet, the higher-ups of the company give you @@.yellowgreen;<<print cashFormat(_income)>>@@ for salvation. @@ -255,22 +255,22 @@ Every citizen of your arcology is trained in the art of war and supposed to defend its arcology when the time comes. This, of course, also means that people are supposed to be able to defend themselves. By arranging with the best fighters around, you manage to make some citizens face outrageous losses; so bad, in fact, that they are forced to pay @@.yellowgreen;<<print cashFormat(_income)>>@@ for you to forget the shame they've put on your arcology. <<case "roman">> <<set _income += random(1500,2500)>> - Slaveowners from all around your arcology are rushing to the pit, eager to show their most recent training. Some of them, having more cunning than experience, are ready to sway the fight in their direction, no matter what it takes. You make sure to catch such people, and only agree to let them do their dirty tricks if they pay you. By the times the bribes and betting are done, you have made @@.yellowgreen;<<print cashFormat(_income)>>@@. + Slaveowners from all around your arcology are rushing to the pit, eager to show their most recent training. Some of them, having more cunning than experience, are ready to sway the fight in their direction, no matter what it takes. You make sure to catch such people, and only agree to let them do their dirty tricks if they pay you. By the times the bribes and betting are done, you have made @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "egyptian">> <<set _income += random(1500,2500)>> - Having a society that likes incest often means that people are ready to go to great lengths to get their hands on people related to their slaves. In the smuggling business, this means that kidnapped relatives are common, and as an arcology owner with access to data on most of the slaves, you are able to control this trade a bit in exchange for @@.yellowgreen;<<print cashFormat(_income)>>@@. + Having a society that likes incest often means that people are ready to go to great lengths to get their hands on people related to their slaves. In the smuggling business, this means that kidnapped relatives are common, and as an arcology owner with access to data on most of the slaves, you are able to control this trade a bit in exchange for @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "aztec law">> <<set _income += random(2000,3000)>> - People that inherit trades are sometimes too lazy to take classes in an academy, but at the same time, they fear what might happen were they to go against you. To solve both problems, you arrange a trade of fake diplomas, making sure that there is always a small detail to recognize them, so that they will get exposed in due time. This has made you @@.yellowgreen;<<print cashFormat(_income)>>. + People that inherit trades are sometimes too lazy to take classes in an academy, but at the same time, they fear what might happen were they to go against you. To solve both problems, you arrange a trade of fake diplomas, making sure that there is always a small detail to recognize them, so that they will get exposed in due time. This has made you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "aztec">> <<set _income += random(1500,2500)>> - There are a lot of slaveowners in your arcology that tend to grow quickly attached to the slaves they planned on sacrificing to sate the blood thirst of other important citizens, and such owners often come to you, begging you to swap two of their slaves' appearance. You accept, but not for free. After the surgery, this has made you @@.yellowgreen;<<print cashFormat(_income)>>. + There are a lot of slaveowners in your arcology that tend to grow quickly attached to the slaves they planned on sacrificing to sate the blood thirst of other important citizens, and such owners often come to you, begging you to swap two of their slaves' appearance. You accept, but not for free. After the surgery, this has made you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "arabian law">> <<set _income += random(2000,3000)>> You have a lot of persons scared of the consequences of not being a part of your society; even if they pay the Jizya, other citizens are not forced to accept them. So if they were to get mugged in some dark alley, people would not get outraged, and there probably wouldn't be any investigations. After buying everyone's silence, you still had @@.yellowgreen;<<print cashFormat(_income)>>@@ to put in your pockets. <<case "arabian">> <<set _income += random(1500,2500)>> - People in your arcology are supposed to keep a myriad of slaves as their personal harem, and failure to do so is considered to be highly dishonorable. This opens up some opportunities for smuggling, as people are ready to go to great length to get an edge against their competitors. Becoming a part for this business has made you @@.yellowgreen;<<print cashFormat(_income)>>@@. + People in your arcology are supposed to keep a myriad of slaves as their personal harem, and failure to do so is considered to be highly dishonorable. This opens up some opportunities for smuggling, as people are ready to go to great length to get an edge against their competitors. Becoming a part for this business has made you @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<case "edo law">> <<set _income += random(2000,3000)>> Outside culture is banned in your arcology. Your citizens do not need anything other than what you have inside. But this doesn't help with their curiosity — they always want to discover what the outside world is like. So you let some news and a few books from other cultures slip in, but not before you made sure they would disgust your citizens and reinforce their love for the Edo culture. The sales brought you @@.yellowgreen;<<print cashFormat(_income)>>@@. @@ -282,7 +282,7 @@ This time, you have a good idea that will also make use of your Head Girl. You coax her into thinking she should accept bribes for the time being, making up a good reason on the spot, and she ends up bringing back @@.yellowgreen;<<print cashFormat(_income)>>@@ from all the bribes people gave for her to turn the other way. <<case "chinese">> <<set _income += random(1500,2500)>> - Being under what people call the Mandate of Heaven means you have a crucial importance in society, and some desperate people are willing to pay just for you to throw a word or small gesture in their direction, such as simply acknowledging a child or a slave, thinking that such things will make sure the Heavens smile upon them. For these services, you get @@.yellowgreen;<<print cashFormat(_income)>>@@. + Being under what people call the Mandate of Heaven means you have a crucial importance in society, and some desperate people are willing to pay just for you to throw a word or small gesture in their direction, such as simply acknowledging a child or a slave, thinking that such things will make sure the Heavens smile upon them. For these services, you get @@.yellowgreen;<<print cashFormat(_income)>>.@@ <<default>> <<set _income += random(500,2000)>> You use former contacts to get you some opportunities in your arcology and deal with them. You make little money, only @@.yellowgreen;<<print cashFormat(_income)>>.@@ diff --git a/src/uncategorized/remMerger.tw b/src/uncategorized/remMerger.tw index 72bb30809a68b14a0eac15b208ce9d0e4943e259..ab0ea71996704d0027aa51ad86ff77a3361f3c49 100644 --- a/src/uncategorized/remMerger.tw +++ b/src/uncategorized/remMerger.tw @@ -3,77 +3,212 @@ <<set $nextButton = "Continue">> <<set $nextLink = "RIE Eligibility Check">> -<<set $slaveCompany = either("capture", "entrapment", "slaves")>> -<<set $trainingCompany = either("drug", "surgical", "training")>> +<<set _slaveCompany = []>> +<<if $corpDivExtra == 1>> + <<set _slaveCompany.push("capture")>> +<</if>> +<<if $corpDivLegal == 1>> + <<set _slaveCompany.push("entrapment")>> +<</if>> +<<if $corpDivBreak == 1>> + <<set _slaveCompany.push("break")>> +<</if>> +<<if $corpDivSurgery == 1>> + <<set _slaveCompany.push("surgery")>> +<</if>> +<<if $corpDivTrain == 1>> + <<set _slaveCompany.push("training")>> +<</if>> +<<if $corpDivArcade == 1>> + <<set _slaveCompany.push("arcade")>> +<</if>> +<<if $corpDivMenial == 1>> + <<set _slaveCompany.push("slaves")>> +<</if>> +<<if $corpDivDairy == 1>> + <<set _slaveCompany.push("dairy")>> +<</if>> +<<if $corpDivWhore == 1>> + <<set _slaveCompany.push("whore")>> +<</if>> + +<<set _company1 = _slaveCompany.pluck()>> +<<if $corpDiv > 1>> + <<set _company2 = _slaveCompany.random()>> +<</if>> -<<if $marketAssistantAnnounced>>Your market assistant<<elseif $assistantName == "your personal assistant">>Your personal assistant<<else>>$assistantName<</if>> constantly combs business records, tax receipts and the media for leads on opportunities for your corporation to take advantage of. Small businesses go under all the time, and with a large amount of cash on hand, your corporation can afford to step in and acquire them. This week, there are not one but two troubled organizations you could easily fold into your corporation. +<<if $marketAssistantAnnounced>>Your market assistant<<elseif $assistantName == "your personal assistant">>Your personal assistant<<else>>$assistantName<</if>> constantly combs business records, tax receipts and the media for leads on opportunities for your corporation to take advantage of. Small businesses go under all the time, and with a large amount of cash on hand, your corporation can afford to step in and acquire them.<<if $corpDiv > 1>> This week, there are not one but two troubled organizations you could easily fold into your corporation.<</if>> <br><br> -<<if $slaveCompany == "slaves">> - The first is a minor slaveholding company. A major deal with a troubled government just fell through, and they had depended on it going through to an unwise degree. They need to merge with a larger slaving concern immediately, but there's nothing at all wrong with their significant inventory of slaves. -<<elseif $slaveCompany == "entrapment">> - The first is an old world telemarketing firm. In an attempt to survive in the changing economy, it turned its focus towards convincing desperate, ignorant or stupid people from the old world to accept voluntary enslavement, through a variety of entrapment procedures. It failed to make the transition successfully, but you could certainly continue its operations under your aegis. +<<if $corpDiv > 1>>The first is <<else>>This week you come across <</if>> +<<if _company1 == "slaves">> + a minor slaveholding company. A major deal with a troubled government just fell through, and they had depended on it going through to an unwise degree. They need to merge with a larger slaving concern immediately, but there's nothing at all wrong with their significant inventory of slaves. +<<elseif _company1 == "entrapment">> + an old world telemarketing firm. In an attempt to survive in the changing economy, it turned its focus towards convincing desperate, ignorant or stupid people from the old world to accept voluntary enslavement, through a variety of entrapment procedures. It failed to make the transition successfully, but you could certainly continue its operations under your aegis. +<<elseif _company1 == "training">> + a small slave training firm. Slave training is a notoriously difficult business, since the maturation times on the merchandise can be extremely long, and the improvement in price can be marginal if the training does not prove highly successful. There's nothing inherently wrong with the business, they've simply hit a cash flow bottleneck and need to merge with a cash-rich organization like yours. +<<elseif _company1 == "break">> + a small slave breaking firm. Despite a great need for obedient slaves the owner of this little establishment was unable to turn a profit. The facility has everything a respecting slave breaking could ever need, it seems the owner simply lacked the right character to apply effective breaking techniques. Your corporation knows perfectly well what it takes to achieve obedience and the assets can be put to great use. +<<elseif _company1 == "capture">> + a troubled mercenary company. After a spate of failed operations, the rank and file deposed their management and are now looking to merge with a better-run organization. The old leadership did not engage in enslavement activities, but the mercenaries have decided to turn their talents towards slaving for profit in conflict zones. +<<elseif _company1 == "arcade">> + a quaint maid café. The prime location together with a popular concept should make for a bustling business and yet the owner is looking to get out of the business hoping to salvage some of his savings. Sadly there was a lack of capital to employ attractive servant slave maids. While someone might very well be more than willing to come in and invest in some better slaves, the place is so cheap you could easily replace the furniture and use the current assets to create a new arcade location for your corporation instead. +<<elseif _company1 == "dairy">> + a dairy farm. Why a conventional dairy farm popped up as target confused you for a moment, but it quickly became clear the entire family was so deep in debt it would be a no brainer to buy the farm and start milking the large uddered farmer's daughters as a great addition to your corporate dairy. +<<elseif _company1 == "whore">> + a little brothel. With slave whores becoming the dominant force in sexual services the current madam lost her passion for the business. She's getting up there in age and has run a tight ship for many years so she deemed it the right time to bow out. All you need to do to add a new brothel location for your corporation is sign at the dotted line before anyone else has a chance to bite. <<else>> - The first is a troubled mercenary company. After a spate of failed operations, the rank and file deposed their management and are now looking to merge with a better-run organization. The old leadership did not engage in enslavement activities, but the mercenaries have decided to turn their talents towards slaving for profit in conflict zones. + a small medical clinic. Medical malpractice continues to be a major source of trouble for surgeons in the old world. A plastic surgeon has just suffered defeat in a major legal case over implant ruptures. He's looking to make the transition to a more enlightened area, along with his inventory and staff. <</if>> <br><br> -<<if $trainingCompany == "training">> - The second is a small slave training firm. Slave training is a notoriously difficult business, since the maturation times on the merchandise can be extremely long, and the improvement in price can be marginal if the training does not prove highly successful. There's nothing inherently wrong with the business, they've simply hit a cash flow bottleneck and need to merge with a cash-rich organization like yours. -<<elseif $trainingCompany == "drug">> - The second is a minor drug manufacturing concern. Their lab is highly mobile so as to be able to rapidly move across old world borders, one step ahead of drug control agencies. Their owner is looking to get out of the business after a profitable year, and is willing to sell his equipment and stock at very competitive prices. +<<if $corpDiv > 1>> +The second is +<<if _company2 == "slaves">> + a minor slaveholding company. A major deal with a troubled government just fell through, and they had depended on it going through to an unwise degree. They need to merge with a larger slaving concern immediately, but there's nothing at all wrong with their significant inventory of slaves. +<<elseif _company2 == "entrapment">> + an old world telemarketing firm. In an attempt to survive in the changing economy, it turned its focus towards convincing desperate, ignorant or stupid people from the old world to accept voluntary enslavement, through a variety of entrapment procedures. It failed to make the transition successfully, but you could certainly continue its operations under your aegis. +<<elseif _company2 == "training">> + a small slave training firm. Slave training is a notoriously difficult business, since the maturation times on the merchandise can be extremely long, and the improvement in price can be marginal if the training does not prove highly successful. There's nothing inherently wrong with the business, they've simply hit a cash flow bottleneck and need to merge with a cash-rich organization like yours. +<<elseif _company2 == "break">> + a small slave breaking firm. Despite a great need for obedient slaves the owner of this little establishment was unable to turn a profit. The facility has everything a respecting slave breaking could ever need, it seems the owner simply lacked the right character to apply effective breaking techniques. Your corporation knows perfectly well what it takes to achieve obedience and the assets can be put to great use. +<<elseif _company2 == "capture">> + a troubled mercenary company. After a spate of failed operations, the rank and file deposed their management and are now looking to merge with a better-run organization. The old leadership did not engage in enslavement activities, but the mercenaries have decided to turn their talents towards slaving for profit in conflict zones. +<<elseif _company2 == "arcade">> + a quaint maid café. The prime location together with a popular concept should make for a bustling business and yet the owner is looking to get out of the business hoping to salvage some of his savings. Sadly there was a lack of capital to employ attractive servant slave maids. While someone might very well be more than willing to come in and invest in some better slaves, the place is so cheap you could easily replace the furniture and use the current assets to create a new arcade location for your corporation instead. +<<elseif _company2 == "dairy">> + a dairy farm. Why a conventional dairy farm popped up as target confused you for a moment, but it quickly became clear the entire family was so deep in debt it would be a no brainer to buy the farm and start milking the large uddered farmer's daughters as a great addition to your corporate dairy. +<<elseif _company2 == "whore">> + a little brothel. With slave whores becoming the dominant force in sexual services the current madam lost her passion for the business. She's getting up there in age and has run a tight ship for many years so she deemed it the right time to bow out. All you need to do to add a new brothel location for your corporation is sign at the dotted line before anyone else has a chance to bite. <<else>> - Medical malpractice continues to be a major source of trouble for surgeons in the old world. A plastic surgeon has just suffered defeat in a major legal case over implant ruptures. He's looking to make the transition to a more enlightened area, along with his inventory and staff. + a small medical clinic. Medical malpractice continues to be a major source of trouble for surgeons in the old world. A plastic surgeon has just suffered defeat in a major legal case over implant ruptures. He's looking to make the transition to a more enlightened area, along with his inventory and staff. +<</if>> <</if>> <br><br> <span id="result"> -<<link "Absorb the first, slave-focused business">> +<<if $corpDiv > 1>> +<<link "Absorb the first business">> <<replace "#result">> - <<if $slaveCompany == "slaves">> - You immediately acquire the slaveholding firm, cash out its hapless staff, and absorb its stock into your corporation. Most of the bewildered merchandise doesn't even understand that they have a new owner. Your corporation gained a small amount of general assets and quite a few slaves. - <<set $generalAssets += 1000>> - <<set $slaveAssets += 5000>> - <<set $corpPeopleEnslaved += 10>> - <<elseif $slaveCompany == "entrapment">> - You immediately acquire the telemarketing firm and clean out the deadwood, getting the business in Free Cities shape. Your corporation gained a small amount of general assets, a few slaves, and a large quantity of slave entrapment assets. - <<set $generalAssets += 1000>> - <<set $slaveAssets += 1000>> - <<set $corpPeopleEnslaved += 2>> - <<set $entrapmentAssets += 4000>> + <<if _company1 == "slaves">> + You immediately acquire the slaveholding firm, cash out its hapless staff, and absorb its stock into your corporation. + <<set $corpDivMenialDev += 5, + $corpDivMenialSlaves += 5>> + <<elseif _company1 == "entrapment">> + You immediately acquire the telemarketing firm and clean out the deadwood, getting the business in Free Cities shape. + <<set $corpDivLegalDev += 5>> + <<elseif _company1 == "capture">> + You immediately acquire the mercenary company and ease their transition to conflict zone slaving. + <<set $corpDivExtraDev += 5>> + <<elseif _company1 == "training">> + The owners of the slave training firm are happy to hear that they'll be able to continue operations under the aegis of a better-run, richer corporation. + <<set $corpDivTrainDev += 3, + $corpDivTrainSlaves += 3>> + <<elseif _company1 == "breaking">> + You quickly staff the slave breaking facility with qualified personnel to make use of the new assets. + <<set $corpDivBreakDev += 5, + $corpDivBreakSlaves += 5>> + <<elseif _company1 == "arcade">> + The old owner wishes his slaves luck under the new management, not knowing your plans for the place. A new sex arcade under your corporate umbrella will open shortly. + <<set $corpDivArcadeDev += 5, + $corpDivArcadeSlaves += 5>> + <<elseif _company1 == "dairy">> + You acquire the farm and your new slaves for the corporation. The family is not happy with your plans, but their approval is not required, you care only for their fluids. + <<set $corpDivDairyDev += 3, + $corpDivDairySlaves += 3>> + <<elseif _company1 == "whore">> + Without delay you contact the madam and seal the deal before anyone else can make an offer. She's surprised by your speed, but happily signs over the brothel. + <<set $corpDivWhoreDev += 3, + $corpDivWhoreSlaves += 3>> <<else>> - You immediately acquire the mercenary company and ease their transition to conflict zone slaving. Your corporation gained a small quantity of general assets, a few slaves, and some powerful slave capture assets. - <<set $generalAssets += 1000>> - <<set $slaveAssets += 1000>> - <<set $corpPeopleEnslaved += 2>> - <<set $captureAssets += 4000>> + The surgeon decides to retire on the proceeds of the sale, wishing your corporation well. It was a smart decision; he can retire to the Free Cities on that sum of money, and remote surgery is killing surgeons' wages. + <<set $corpDivSurgeryDev += 3, + $corpDivSurgerySlaves += 3>> <</if>> <<set $corpCash -= 50000>> <</replace>> <</link>> <br> -<<link "Absorb the second, improvement-focused business">> +<<link "Absorb the second business">> + <<replace "#result">> + <<if _company2 == "slaves">> + You immediately acquire the slaveholding firm, cash out its hapless staff, and absorb its stock into your corporation. + <<set $corpDivMenialDev += 5, + $corpDivMenialSlaves += 5>> + <<elseif _company2 == "entrapment">> + You immediately acquire the telemarketing firm and clean out the deadwood, getting the business in Free Cities shape. + <<set $corpDivLegalDev += 5>> + <<elseif _company2 == "capture">> + You immediately acquire the mercenary company and ease their transition to conflict zone slaving. + <<set $corpDivExtraDev += 5>> + <<elseif _company2 == "training">> + The owners of the slave training firm are happy to hear that they'll be able to continue operations under the aegis of a better-run, richer corporation. + <<set $corpDivTrainDev += 3, + $corpDivTrainSlaves += 3>> + <<elseif _company2 == "breaking">> + You quickly staff the slave breaking facility with qualified personnel to make use of the new assets. + <<set $corpDivBreakDev += 5, + $corpDivBreakSlaves += 5>> + <<elseif _company2 == "arcade">> + The old owner wishes his slaves luck under the new management, not knowing your plans for the place. A new sex arcade under your corporate umbrella will open shortly. + <<set $corpDivArcadeDev += 5, + $corpDivArcadeSlaves += 5>> + <<elseif _company2 == "dairy">> + You acquire the farm and your new slaves for the corporation. The family is not happy with your plans, but their approval is not required, you care only for their fluids. + <<set $corpDivDairyDev += 3, + $corpDivDairySlaves += 3>> + <<elseif _company2 == "whore">> + Without delay you contact the madam and seal the deal before anyone else can make an offer. She's surprised by your speed, but happily signs over the brothel. + <<set $corpDivWhoreDev += 3, + $corpDivWhoreSlaves += 3>> + <<else>> + The surgeon decides to retire on the proceeds of the sale, wishing your corporation well. It was a smart decision; he can retire to the Free Cities on that sum of money, and remote surgery is killing surgeons' wages. + <<set $corpDivSurgeryDev += 3, + $corpDivSurgerySlaves += 3>> + <</if>> + <<set $corpCash -= 50000>> + <</replace>> +<</link>> +<<else>> +<<link "Absorb the business">> <<replace "#result">> - <<if $trainingCompany == "training">> - The owners of the slave training firm are happy to hear that they'll be able to continue operations under the aegis of a better-run, richer corporation. Your corporation gained a small amount of general assets, a few slaves, and a large quantity of slave training assets. - <<set $generalAssets += 1000>> - <<set $slaveAssets += 1000>> - <<set $corpPeopleEnslaved += 2>> - <<set $trainingAssets += 4000>> - <<elseif $trainingCompany == "drug">> - The advanced mobile labs are across and into the Free Cities before anyone is the wiser, and not long after that they're turning out curatives and growth hormones. Your corporation gained a small amount of general assets, a few slaves, and a large quantity of drug-associated assets. - <<set $generalAssets += 1000>> - <<set $slaveAssets += 1000>> - <<set $corpPeopleEnslaved += 2>> - <<set $drugAssets += 4000>> + <<if _company1 == "slaves">> + You immediately acquire the slaveholding firm, cash out its hapless staff, and absorb its stock into your corporation. + <<set $corpDivMenialDev += 5, + $corpDivMenialSlaves += 5>> + <<elseif _company1 == "entrapment">> + You immediately acquire the telemarketing firm and clean out the deadwood, getting the business in Free Cities shape. + <<set $corpDivLegalDev += 5>> + <<elseif _company1 == "capture">> + You immediately acquire the mercenary company and ease their transition to conflict zone slaving. + <<set $corpDivExtraDev += 5>> + <<elseif _company1 == "training">> + The owners of the slave training firm are happy to hear that they'll be able to continue operations under the aegis of a better-run, richer corporation. + <<set $corpDivTrainDev += 3, + $corpDivTrainSlaves += 3>> + <<elseif _company1 == "breaking">> + You quickly staff the slave breaking facility with qualified personnel to make use of the new assets. + <<set $corpDivBreakDev += 5, + $corpDivBreakSlaves += 5>> + <<elseif _company1 == "arcade">> + The old owner wishes his slaves luck under the new management, not knowing your plans for the place. A new sex arcade under your corporate umbrella will open shortly. + <<set $corpDivArcadeDev += 5, + $corpDivArcadeSlaves += 5>> + <<elseif _company1 == "dairy">> + You acquire the farm and your new slaves for the corporation. The family is not happy with your plans, but their approval is not required, you care only for their fluids. + <<set $corpDivDairyDev += 3, + $corpDivDairySlaves += 3>> + <<elseif _company1 == "whore">> + Without delay you contact the madam and seal the deal before anyone else can make an offer. She's surprised by your speed, but happily signs over the brothel. + <<set $corpDivWhoreDev += 3, + $corpDivWhoreSlaves += 3>> <<else>> - The surgeon decides to retire on the proceeds of the sale, wishing your corporation well. It was a smart decision; he can retire to the Free Cities on that sum of money, and remote surgery is killing surgeons' wages. Your corporation gained a small amount of general assets, a few slaves, and a large quantity of surgical assets. - <<set $generalAssets += 1000>> - <<set $slaveAssets += 1000>> - <<set $corpPeopleEnslaved += 2>> - <<set $surgicalAssets += 4000>> + The surgeon decides to retire on the proceeds of the sale, wishing your corporation well. It was a smart decision; he can retire to the Free Cities on that sum of money, and remote surgery is killing surgeons' wages. + <<set $corpDivSurgeryDev += 3, + $corpDivSurgerySlaves += 3>> <</if>> <<set $corpCash -= 50000>> <</replace>> <</link>> +<</if>> </span> diff --git a/src/uncategorized/storyCaption.tw b/src/uncategorized/storyCaption.tw index 8b4be6925612e9c260153c3e074b37172b57a517..a9032a07a4a196fe5190c25fb10013540a825e87 100644 --- a/src/uncategorized/storyCaption.tw +++ b/src/uncategorized/storyCaption.tw @@ -685,6 +685,46 @@ <br><span id="manageArcology"><<link "Manage Arcology">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Arcology">><</link>></span> @@.cyan;[C]@@ <br><span id="managePenthouse"><<link "Manage Penthouse">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Penthouse">><</link>></span> @@.cyan;[P]@@ <br><span id="managePerson"><<link "Manage Personal Affairs">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Personal Affairs">><</link>></span> @@.cyan;[X]@@ + <<if $corpAnnounced == 1>><br><span id="manageCorporation"><<link "Manage Corporation">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Corporation">><</link>></span><</if>> + <<if $secExp == 1>> + <<if $propHub == 1>> + <br><span id="propHub"><<link "Manage PR">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "propagandaHub">><</link>></span> @@.cyan;[Shift+H]@@ + <</if>> + <<if $secHQ == 1>> + <br><span id="securityHQ"><<link "Manage Security">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "securityHQ">><</link>></span> @@.cyan;[Shift+S]@@ + <</if>> + <<if $secBarracks == 1>> + <br><span id="secBarracks"><<link "Manage Military">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "secBarracks">><</link>></span> @@.cyan;[Shift+A]@@ + <</if>> + <<if $riotCenter == 1>> + <br><span id="riotCenter"><<link "Manage Rebels">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "riotControlCenter">><</link>></span> @@.cyan;[Shift+R]@@ + <</if>> + <</if>> + <<if $cyberMod != 0 && $researchLab.built == "true">> + <br>[[Manage Research Lab|Research Lab][$temp = 0]] + <</if>> + <<if $SF.Toggle && $SF.Active >= 1>> + <br><span id="SFMButton"> <<link "$SF.Caps's firebase""Firebase">><</link>> </span> @@.cyan;[Z]@@ + <</if>> + + <br> + <br><span id="PAOButton"><<link [[Personal Assistant|Personal assistant options]]>><</link>></span> @@.cyan;[T]@@ + <br><span id="policyButton"><<link [[Policies]]>><</link>></span> @@.cyan;[Y]@@ + <<if $secExp == 1>> + <br><span id="edictButton"><<link [[Edicts|edicts]]>><</link>></span> @@.cyan;[D]@@ + <</if>> + <<if $FSAnnounced>> + <br><span id="FSButton"><<link [[Future Societies|Future Society]]>><</link>></span> @@.cyan;[F]@@ + <</if>> + <br><span id="URButton"><<link [[Universal Rules]]>><</link>></span> @@.cyan;[V]@@ + <br> + <br><span id="optionsButton"><<link "Game Options">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Options">><</link>></span> @@.cyan;[O]@@ +<<elseif _Pass == "Manage Corporation">> + <br> + <br><span id="manageArcology"><<link "Manage Arcology">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Arcology">><</link>></span> @@.cyan;[C]@@ + <br><span id="managePenthouse"><<link "Manage Penthouse">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Penthouse">><</link>></span> @@.cyan;[P]@@ + <br><span id="manageEconomy"><<link "Manage Economy">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Economy">><</link>></span> @@.cyan;[N]@@ + <br><span id="managePerson"><<link "Manage Personal Affairs">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Personal Affairs">><</link>></span> @@.cyan;[X]@@ <<if $secExp == 1>> <<if $propHub == 1>> <br><span id="propHub"><<link "Manage PR">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "propagandaHub">><</link>></span> @@.cyan;[Shift+H]@@ diff --git a/src/utility/slaveCreationWidgets.tw b/src/utility/slaveCreationWidgets.tw index 7156f161205b07a333306be0237f0ce82fbd0bcd..ff9547df7b9ea89cb2ed257ad0d0a4794e0228c2 100644 --- a/src/utility/slaveCreationWidgets.tw +++ b/src/utility/slaveCreationWidgets.tw @@ -1864,10 +1864,10 @@ <<switch _market>> <<case "corporate">> - <<if $captureUpgradeAge == "young">> + <<if $corpSpecAge == 1>> <<set $activeSlaveOneTimeMinAge = $minimumSlaveAge>> <<set $activeSlaveOneTimeMaxAge = 19>> - <<elseif $captureUpgradeAge == "old">> + <<elseif $corpSpecAge == 3>> <<if $pedo_mode == 1>> <<set $activeSlaveOneTimeMinAge = 24>> <<set $activeSlaveOneTimeMaxAge = $retirementAge>> @@ -1877,13 +1877,13 @@ <</if>> <</if>> <<set $one_time_age_overrides_pedo_mode = 1>> - <<if $captureUpgradeRace != "none" && $captureUpgradeRace != "unselected">> - <<set $fixedRace = $captureUpgradeRace>> + <<if $corpSpecRaces.length > 0>> + <<set $fixedRace = $corpSpecRaces.random()>> <</if>> - <<if $captureUpgradeGender == "XX">> + <<if $corpSpecGender == 1>> Slaves without pussies are not trained. <<include "Generate XX Slave">> - <<elseif $captureUpgradeGender == "XY">> + <<elseif $corpSpecGender == 2>> Slaves without dicks are not trained. <<include "Generate XY Slave">> <<else>> @@ -1891,114 +1891,158 @@ <<include "Generate New Slave">> <</if>> <<set $activeSlave.origin = "She was enslaved and trained by your corporation.">> - <<set $activeSlave.devotion = random(-15,15)>> + <<set $activeSlave.devotion = random(-30,0)>> <<set $activeSlave.trust = random(-45,-25)>> <<set $activeSlave.health = random(25,50)>> - <<if $surgicalUpgradeGenitalia != "fucknugget">> - - <<if $entrapmentUpgradeDevotionTwo == "devotion">> - It focuses on selecting trainees predisposed towards devotion to their new owners. - <<set $activeSlave.devotion = random(55,75)>> - <<elseif $entrapmentUpgradeDevotionOne == "obedience">> - It focuses on selecting trainees predisposed towards obedience. - <<set $activeSlave.devotion = random(25,45)>> + <<if $corpSpecDevotion > 0>> + <<set $activeSlave.devotion = random(-120,-90) * $corpSpecDevotion * 30>> + <<if $corpSpecDevotion == 1>> + It does everything it can to make trainees furious. + <<elseif $corpSpecDevotion == 2>> + It makes no effort to tame trainees. + <<elseif $corpSpecDevotion == 4>> + It focuses on selecting trainees predisposed towards obedience. + <<elseif $corpSpecDevotion == 5>> + It focuses on selecting trainees predisposed towards devotion to their owner. + <</if>> <<else>> It does not select trainees based on their initial feelings about slavery. <</if>> - <<if $entrapmentUpgradeIntelligence == "intelligent">> + <<if $corpSpecIntelligence == 3>> Intelligent slaves have a high priority for training. <<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [30,100]})>> - <<elseif $entrapmentUpgradeIntelligence == "stupid">> + <<elseif $corpSpecIntelligence == 1>> Stupid slaves have a high priority for training. <<set $activeSlave.intelligence = Intelligence.random({limitIntelligence: [-100,-30]})>> <<else>> Slaves' intelligence is not given special consideration. <</if>> - <<if $captureUpgradeAge == "young">> + <<if $corpSpecAge == 1>> Teenage slaves are strongly favored for training. /*<<set $activeSlave.age = random(18,19)>>*/ - <<elseif $captureUpgradeAge == "old">> + <<elseif $corpSpecAge == 3>> Newly enslaved MILFs are strongly favored for training. /*<<set $activeSlave.age = random(36,$retirementAge)>>*/ <<else>> Promising slaves are trained without special sorting based on age. <</if>> - <<if ($captureUpgradeRace == "unselected") || ($captureUpgradeRace == "none")>> + <<if $corpSpecRaces.length == 12>> There is no racial element to trainee selection. + <<elseif $corpSpecRaces.length == 1>> + <<set _corpSpecRace = $corpSpecRaces.random()>> + The corporation specializes in <<print _corpSpecRace>> slaves. <<else>> - The corporation prefers to train <<print $captureUpgradeRace>> slaves. - <</if>> - <<if $generalUpgradeBreaking == "brutality">> - The corporation applies brutal slave breaking techniques, with new captures assigned rape quotas. - <<set $activeSlave.trust = random(-75,-55)>> - <<elseif $generalUpgradeBreaking == "care">> - The corporation applies surprisingly caring slave breaking techniques that sometimes convince refugees and similar downtrodden people that slavery is a step up for them. - <<set $activeSlave.trust = random(-15,15)>> + The corporation selects slaves based on race. /*getting into the specifics of which races exactly is a hellhole I'd rather not jump into*/ + <</if>> + <<if $corpSpecTrust > 0>> + <<set $activeSlave.trust = random(-105,-85) + $corpSpecTrust * 20>> + <<if $corpSpecTrust == 1>> + The corporation applies extremely brutal slave breaking techniques, uncontrollable sobbing and bloodcurdling screams are heard around the clock. + <<elseif $corpSpecTrust == 2>> + The corporation applies brutal slave breaking techniques. + <<elseif $corpSpecTrust == 4>> + The corporation applies caring slave breaking techniques. + <<else>> + The corporation applies surprisingly caring slave breaking techniques that sometimes convince refugees and similar downtrodden people that slavery is a step up for them. + <</if>> <<else>> The corporation applies standard slave breaking techniques. <</if>> - <<if $generalUpgradeWeight == "attractive">> - Thin trainees are fattened up; fat trainees are slimmed down. - <<set $activeSlave.weight = Math.clamp($activeSlave.weight, -25, 25)>> + <<if $corpSpecHeight > 0>> + <<set $activeSlave.height = Math.trunc(Height.random($activeSlave, {limitMult: [$corpSpecHeight - 4, $corpSpecHeight - 2]}))>> + <<if $corpSpecHeight == 1>> + The corporation specifically targets very short slaves. + <<elseif $corpSpecHeight == 2>> + The corporation targets short slaves. + <<elseif $corpSpecHeight == 4>> + The corporation targets tall slaves. + <<elseif $corpSpecHeight == 5>> + The corporation specifically targets incredibly tall slaves. + <</if>> + <</if>> + <<if $corpSpecVirgin == 1>> + The corporation ensures its slaves are virgins. + <<set $activeSlave.anus = 0>> + <<if $activeSlave.vagina > 0>> + <<set $activeSlave.vagina = 0>> + <</if>> + <</if>> + <<if $corpSpecWeight > 0>> + <<set $activeSlave.weight = random(-85 + $corpSpecWeight * 20, -65 + $corpSpecWeight * 30)>> + <<if $corpSpecWeight == 1>> + Trainees are practically starved through a rigorous diet. + <<elseif $corpSpecWeight == 2>> + Trainees are put on a diet to get them nice and thin. + <<elseif $corpSpecWeight == 3>> + Thin trainees are fattened up; fat trainees are slimmed down. + <<elseif $corpSpecWeight == 5>> + Trainees are fattened until they're nice and curvy. + <<else>> + Trainees are fed as much as they can stomach. + <</if>> <<else>> Only the unhealthiest trainees are fed special diets. <</if>> - <<if $generalUpgradeMuscle == "toned">> - Trainees are brought up to a good state of physical fitness. - <<set $activeSlave.weight = Math.clamp($activeSlave.weight, -25, 25)>> - <<set $activeSlave.muscles = 20>> - <<elseif $generalUpgradeMuscle == "ripped">> - Trainees are subjected to punishing workout routines and only sold when ripped. - <<set $activeSlave.weight = Math.clamp($activeSlave.weight, -25, 5)>> - <<set $activeSlave.muscles = 50>> + <<if $corpSpecMuscle > 0>> + <<set $activeSlave.muscles = random(-85,-65) + $corpSpecMuscle * 25>> + <<if $corpSpecMuscle == 1>> + Trainees are kept physically inactive and frail. + <<elseif $corpSpecMuscle == 2>> + Trainees are kept physically weak. + <<elseif $corpSpecMuscle == 3>> + Trainees' muscles are kept soft. + <<elseif $corpSpecMuscle == 4>> + Trainees are brought up to a good state of physical fitness. + <<elseif $corpSpecMuscle == 5>> + Trainees are subjected to punishing workout routines and only sold when ripped. + <</if>> <<else>> Trainees are not subjected to any special workout routine. <</if>> - <<if $trainingUpgradeAccent == "accents">> + <<if $corpSpecAccent == 1>> The corporation teaches its trainees the lingua franca but allows them to retain distinctive accents. <<set $activeSlave.accent = Math.clamp($activeSlave.accent, 0, 1)>> - <<elseif $trainingUpgradeAccent == "eliminate">> + <<elseif $corpSpecAccent == 2>> The corporation teaches its trainees to speak the lingua franca without accent. <<set $activeSlave.accent = 0>> <<else>> The corporation does not expend any special effort teaching language. <</if>> - <<if $trainingUpgradeEducation == "basic">> - Its slave students receive basic slave educations. - <<set $activeSlave.intelligenceImplant = 15>> - <<set $activeSlave.whoreSkill = Math.clamp($activeSlave.whoreSkill, 15, 100)>> - <<set $activeSlave.entertainSkill = Math.clamp($activeSlave.entertainSkill, 15, 100)>> + <<if $corpSpecEducation > 0>> + <<set $activeSlave.intelligenceImplant = 15 * $corpSpecEducation, + $activeSlave.whoreSkill = Math.clamp($activeSlave.whoreSkill, 15 * $corpSpecEducation, 100), + $activeSlave.entertainSkill = Math.clamp($activeSlave.entertainSkill, 15 * $corpSpecEducation, 100)>> + <<if $corpSpecEducation == 1>> + Its slave students receive basic slave educations. + <<elseif $corpSpecEducation == 2>> + Its slave students receive advanced slave educations. + <</if>> <<else>> Its slaves are not given special educational attention. <</if>> - <<if $trainingUpgradeSexEd == "competence">> - Trainees spend weeks learning sexual competence. - <<set $activeSlave.oralSkill = Math.clamp($activeSlave.oralSkill, 15, 100)>> - <<if $activeSlave.vagina >= 0>> - <<set $activeSlave.vaginalSkill = Math.clamp($activeSlave.vaginalSkill, 15, 100)>> + <<if $corpSpecSexEd > 0>> + <<set $activeSlave.oralSkill = Math.clamp($activeSlave.oralSkill, 15 * $corpSpecSexEd, 100)>> + <<if $activeSlave.anus > 0>> + <<set $activeSlave.analSkill = Math.clamp($activeSlave.analSkill, 15 * $corpSpecSexEd, 100)>> + <<elseif $activeSlave.anus == 0>> + <<set $activeSlave.analSkill = Math.clamp($activeSlave.analSkill, 15, 100)>> <</if>> - <<set $activeSlave.analSkill = Math.clamp($activeSlave.analSkill, 15, 100)>> - <<elseif $trainingUpgradeSexEd == "highly skilled">> - Trainees spend months learning sexual skills. - <<set $activeSlave.oralSkill = Math.clamp($activeSlave.oralSkill, 35, 100)>> <<if $activeSlave.vagina > 0>> - <<set $activeSlave.vaginalSkill = Math.clamp($activeSlave.vaginalSkill, 35, 100)>> + <<set $activeSlave.vaginalSkill = Math.clamp($activeSlave.vaginalSkill, 15 * $corpSpecSexEd, 100)>> <<elseif $activeSlave.vagina == 0>> <<set $activeSlave.vaginalSkill = Math.clamp($activeSlave.vaginalSkill, 15, 100)>> <</if>> - <<if $activeSlave.anus > 0>> - <<set $activeSlave.analSkill = Math.clamp($activeSlave.analSkill, 35, 100)>> - <<else>> - <<set $activeSlave.analSkill = Math.clamp($activeSlave.analSkill, 15, 100)>> + <<if $corpSpecSexEd == 1>> + Trainees spend many hours learning sexual competence. + <<elseif $corpSpecSexEd == 2>> + Trainees spend days learning sexual skills. <</if>> <<else>> No special sexual training is applied. <</if>> - <</if>> /* CLOSES FUCKNUGGET EXEMPTION */ - - <<if $surgicalUpgradeCosmetics == "applied">> + <<if $corpSpecCosmetics == 1>> The corporation uses subtle cosmetic surgery to improve its slaves for sale. <<if ($activeSlave.anus > 3)>> <<set $activeSlave.anus = 3>> @@ -2031,7 +2075,7 @@ <<else>> The corporation does not use cosmetic surgery to improve its slaves for sale. <</if>> - <<if $surgicalUpgradeImplants == "applied">> + <<if $corpSpecImplants == 1>> Slaves are given tasteful breast, butt, and lip implants. <<set $activeSlave.buttImplant = 1>> <<set $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant, 0, 10)>> @@ -2039,7 +2083,7 @@ <<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+$activeSlave.boobsImplant, 0, 10000)>> <<set $activeSlave.lipsImplant = 20>> <<set $activeSlave.lips = Math.clamp($activeSlave.lips+$activeSlave.lipsImplant, 0, 55)>> - <<elseif $surgicalUpgradeImplants == "absurd">> + <<elseif $corpSpecImplants == 2>> Slaves are given absurd breast, butt, and lip implants. <<set $activeSlave.buttImplant = 4>> <<set $activeSlave.butt = Math.clamp($activeSlave.butt+$activeSlave.buttImplant, 0, 10, $activeSlave.butt+$activeSlave.buttImplant)>> @@ -2050,37 +2094,36 @@ <<else>> Slaves are not given breast, butt, or lip implants. <</if>> - <<if $surgicalUpgradeGenitalia == "futanari">> - Advanced surgical techniques are applied to turn the corporation's slaves into futanari. - <<if ($activeSlave.dick == 0)>><<set $activeSlave.dick = 2>><</if>> - <<if ($activeSlave.balls == 0)>><<set $activeSlave.balls = 2>><</if>> - <<if ($activeSlave.vagina == 0)>><<set $activeSlave.vagina = 1>><</if>> - <<if ($activeSlave.prostate == 0)>><<set $activeSlave.prostate = 1>><</if>> - <<set $activeSlave.ovaries = 1>> - <<elseif $surgicalUpgradeGenitalia == "gelded">> - Slaves with balls have them removed, rendering them feminine and obedient. - <<if ($activeSlave.balls != 0)>> - <<set $activeSlave.balls = 0>> - <<set $activeSlave.scrotum = 0>> - <<set $activeSlave.dick = Math.clamp($activeSlave.dick-1, 1, 6)>> - <<set $activeSlave.boobs += 100*random(2,4)>> - <<set $activeSlave.butt += random(1,2)>> - <<set $activeSlave.muscles = 0>> - <<if ($activeSlave.faceShape == "masculine")>> - <<set $activeSlave.faceShape = "androgynous">> - <<elseif ($activeSlave.faceShape == "androgynous")>> - <<set $activeSlave.faceShape = "normal">> - <</if>> - <<set $activeSlave.devotion += random(5,10)>> - <<set $activeSlave.trust += random(5,10)>> - <<set $activeSlave.attrXY = Math.clamp($activeSlave.attrXY+random(5,10), 0, 100)>> - <</if>> - <<elseif $surgicalUpgradeGenitalia == "fucknugget">> - It removes slaves' limbs and mental abilities, making any training pointless. - <<else>> - No other surgery is applied. - <</if>> - <<if $drugUpgradeHormones == "XX">> + <<if $corpSpecPussy == 1>> + The corporation adds pussies where needed. + <<set $activeSlave.vagina = 0, + $activeSlave.ovaries = 1>> + <<elseif $corpSpecPussy == -1>> + The corporation removes pussies where possible. + <<set $activeSlave.vagina = -1, + $activeSlave.ovaries = 0>> + <</if>> + <<if $corpSpecDick == 1>> + The corporation adds dicks where needed. + <<set $activeSlave.dick = 2, + $activeSlave.prostate = 1>> + <<elseif $corpSpecDick == -1>> + The corporation removes dicks where possible. + <<set $activeSlave.dick = 0, + $activeSlave.prostate = 0>> + <</if>> + <<if $corpSpecBalls == 1 && $activeSlave.dick > 0>> + The corporation adds balls where needed. + <<set $activeSlave.balls = 2>> + <<elseif $corpSpecBalls == -1>> + The corporation removes balls where possible. + <<set $activeSlave.balls = 0, + $activeSlave.scrotum = 0>> + <</if>> + <<if ndef $corpSpecPussy && ndef $corpSpecDick && ndef $corpSpecBalls>> + The corporation does not reconfigure slave genitalia. + <</if>> + <<if $corpSpecHormones == 1>> It applies almost universal female hormone therapy. <<if ($activeSlave.dick > 0)>> <<set $activeSlave.dick = Math.clamp($activeSlave.dick-1, 1, 6)>> @@ -2127,7 +2170,7 @@ <<set $activeSlave.devotion += random(5,10)>> <<set $activeSlave.trust += random(5,10)>> <<set $activeSlave.attrXY = Math.clamp($activeSlave.attrXY+random(5,10), 0, 100)>> - <<elseif $drugUpgradeHormones == "XY">> + <<elseif $corpSpecHormones == 2>> It applies almost universal male hormone therapy. <<if ($activeSlave.dick > 0)>> <<set $activeSlave.dick = Math.clamp($activeSlave.dick+1, 1, 6)>> @@ -2173,60 +2216,84 @@ <<else>> It does not use hormones on a systematic level. <</if>> - <<if $drugUpgradeInjectionTwo == "supermassive">> - Advanced growth hormones are applied on a grand scale. - <<set $activeSlave.lips = Math.clamp($activeSlave.lips+50, 0, 85)>> - <<set $activeSlave.butt = Math.clamp($activeSlave.butt+random(4,6), 0, 10)>> - <<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+(100*random(40,60)), 0, 10000)>> - <<set $activeSlave.nipples = either("huge", "inverted")>> - <<if $activeSlave.dick > 0>> - <<set $activeSlave.dick = Math.clamp($activeSlave.dick+random(3,5), 0, 6)>> - <</if>> - <<if $activeSlave.balls > 0>> - <<set $activeSlave.balls = Math.clamp($activeSlave.balls+random(3,5), 0, 6)>> - <</if>> - <<elseif $drugUpgradeInjectionTwo == "pastoral">> - Advanced growth hormones are applied with total focus on increasing slaves' productiveness. - <<set $activeSlave.lips = Math.clamp($activeSlave.lips+20, 0, 85)>> - <<set $activeSlave.butt = Math.clamp($activeSlave.butt+random(2,3), 0, 10)>> - <<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+(100*random(60,80)), 0, 10000)>> - <<set $activeSlave.nipples = either("huge", "inverted")>> - <<set $activeSlave.lactation = 2, $activeSlave.lactationDuration = 2>> - <<if $activeSlave.dick > 0>> - <<set $activeSlave.dick = Math.clamp($activeSlave.dick+random(6,8), 0, 10)>> - <</if>> - <<if $activeSlave.balls > 0>> - <<set $activeSlave.balls = Math.clamp($activeSlave.balls+random(4,6), 0, 6)>> - <</if>> - <<elseif $drugUpgradeInjectionOne == "tasteful">> - Growth hormones are used to correct flat chests and butts. - <<set $activeSlave.lips = Math.clamp($activeSlave.lips+10, 15, 55)>> - <<if $activeSlave.butt < 3>> - <<set $activeSlave.butt = Math.clamp($activeSlave.butt+1, 3, 10)>> - <</if>> - <<if $activeSlave.boobs < 800>> - <<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+200, 800, 10000)>> - <</if>> - <<elseif $drugUpgradeInjectionOne == "huge">> - Growth hormones are used throughout slave training to ensure expansion. - <<set $activeSlave.lips = Math.clamp($activeSlave.lips+20, 0, 55)>> - <<set $activeSlave.butt = Math.clamp($activeSlave.butt+random(2,3), 0, 10)>> - <<set $activeSlave.boobs = Math.clamp($activeSlave.boobs+(100*random(10,20)), 0, 10000)>> - <<set $activeSlave.nipples = either("cute", "partially inverted")>> - <<if $activeSlave.dick > 0>> - <<set $activeSlave.dick = Math.clamp($activeSlave.dick+random(2,3), 0, 5)>> - <</if>> - <<if $activeSlave.balls > 0>> - <<set $activeSlave.balls = Math.clamp($activeSlave.balls+random(2,3), 0, 5)>> + <<if $corpSpecInjection > 0>> + <<if $corpSpecInjection == 1>> + If anything, hormones are used to reduce assets sizes. + <<set $activeSlave.lips = random(0, 20), + $activeSlave.butt = random(1, 2), + $activeSlave.boobs = 10 * random(30, 60), + $activeSlave.nipples = either("cute", "tiny")>> + <<if $activeSlave.dick > 0>> + <<set $activeSlave.dick = random(1, 2)>> + <</if>> + <<if $activeSlave.balls > 0>> + <<set $activeSlave.balls = random(1, 2)>> + <</if>> + <<elseif $corpSpecInjection == 2>> + Growth hormones are used to correct flat chests and butts. + <<set $activeSlave.lips = random(25, 45), + $activeSlave.butt = random(3, 4), + $activeSlave.boobs = 10 * random(70, 100), + $activeSlave.nipples = either("cute", "partially inverted")>> + <<if $activeSlave.dick > 0>> + <<set $activeSlave.dick = random(3, 4)>> + <</if>> + <<if $activeSlave.balls > 0>> + <<set $activeSlave.balls = random(3, 4)>> + <</if>> + <<elseif $corpSpecInjection == 3>> + Growth hormones are used throughout slave training to ensure expansion. + <<set $activeSlave.lips = random(35, 55), + $activeSlave.butt = random(4, 5), + $activeSlave.boobs = 10 * random(120, 180), + $activeSlave.nipples = either("cute", "partially inverted")>> + <<if $activeSlave.dick > 0>> + <<set $activeSlave.dick = random(4, 5)>> + <</if>> + <<if $activeSlave.balls > 0>> + <<set $activeSlave.balls = random(4, 5)>> + <</if>> + <<elseif $corpSpecInjection == 4>> + Advanced growth hormones are applied on a grand scale. + <<set $activeSlave.lips = random(55, 85), + $activeSlave.butt = random(6, 8), + $activeSlave.boobs = 100 * random(40, 60), + $activeSlave.nipples = either("huge", "inverted")>> + <<if $activeSlave.dick > 0>> + <<set $activeSlave.dick = random(5, 6)>> + <</if>> + <<if $activeSlave.balls > 0>> + <<set $activeSlave.balls = random(5, 6)>> + <</if>> + <<elseif $corpSpecInjection == 5>> + Advanced growth hormones are applied with total focus on increasing slaves' productiveness. + <<set $activeSlave.lips = random(35, 65), + $activeSlave.butt = random(4, 6), + $activeSlave.boobs = 100 * random(60, 80), + $activeSlave.nipples = either("huge", "inverted")>> + <<if $activeSlave.dick > 0>> + <<set $activeSlave.dick = random(6, 8)>> + <</if>> + <<if $activeSlave.balls > 0>> + <<set $activeSlave.balls = random(5, 7)>> + <</if>> <</if>> <<else>> Growth hormones are not applied. <</if>> - - <<if $surgicalUpgradeGenitalia == "fucknugget">> - <<set $activeSlave.fetish = "mindbroken">> + <<if $corpSpecAmputee == 1>> + The corporation removes all limbs from its slaves. <<set $activeSlave.amp = 1>> - <<set $activeSlave.fetishStrength = 10, $activeSlave.attrXY = 50, $activeSlave.attrXX = 50, $activeSlave.attrKnown = 1, $activeSlave.devotion = 40, $activeSlave.trust = -40, $activeSlave.vaginalSkill = 0, $activeSlave.oralSkill = 0, $activeSlave.analSkill = 0, $activeSlave.combatSkill = 0, $activeSlave.whoreSkill = 0, $activeSlave.entertainSkill = 0, $activeSlave.intelligence = -60, $activeSlave.intelligenceImplant = 0, $activeSlave.sexualFlaw = "none", $activeSlave.sexualQuirk = "none", $activeSlave.behavioralFlaw = "none", $activeSlave.behavioralQuirk = "none">> + <</if>> + <<if $corpSpecMilk == 1>> + The corporation provides naturally lactating slaves + <<set $activeSlave.lactation = 1, + $activeSlave.lactationDuration = 2, + $activeSlave.lactationAdaptation = 15>> + <<elseif $corpSpecMilk == 2>> + The corporation provides slaves with chemically induced lactation. + <<set $activeSlave.lactation = 2, + $activeSlave.lactationDuration = 2>> <</if>>