From d375302cd5e7c59ee9d862b1ea9a9106ab009053 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 26 Oct 2020 22:19:50 -0400
Subject: [PATCH] case

---
 src/endWeek/persBusiness.js | 122 ++++++++++++++++++++++++------------
 1 file changed, 81 insertions(+), 41 deletions(-)

diff --git a/src/endWeek/persBusiness.js b/src/endWeek/persBusiness.js
index 0ff17cbe473..68ae947c868 100644
--- a/src/endWeek/persBusiness.js
+++ b/src/endWeek/persBusiness.js
@@ -244,7 +244,7 @@ App.EndWeek.personalBusiness = function() {
 			_income = random(1500, 2000);
 		}
 		switch (_qualifiedFS.random()) {
-			case "eugenics":
+			case"eugenics":
 				_income += random(2500, 4000);
 				if (V.eugenicsFullControl !== 1) {
 					r.push(`You are smuggling `);
@@ -265,109 +265,143 @@ App.EndWeek.personalBusiness = function() {
 					r.push(` semen to allow some desperate girls to be pregnant. Anonymity is really hard to attain, and it is easy to find out what you've been doing. Even if you did manage to make <span class="yellowgreen">${cashFormat(_income)},</span> the Societal Elite are <span class="red">quite displeased</span> by your actions, even though they know how little they can do about it now.`);
 					_caught = 1;
 				}
-			case "paternalist":
+				break;
+			case"paternalist":
 				_income += random(1000, 1500);
 				r.push(`You manage to find a few low-standards slavers without any problem, but when you actually try to do business, you are quickly recognized. You only manage to make <span class="yellowgreen">${cashFormat(_income)}</span> before you are sent away. The people of your arcology are <span class="red">outraged by your lack of respect</span> for slave rights.`);
 				_caught = 1;
-			case "supremacist":
+				break;
+			case"supremacist":
 				_income += random(2000, 3000);
 				r.push(`When it comes to smuggling in your arcology, there is no better target than ${V.arcologies[0].FSSupremacistRace} slaves, and there is a high demand for them, making you a nice <span class="yellowgreen">${cashFormat(_income)}.</span> Participating in this slave trade means you can control who is set. Your people do not see things in the same light though, and <span class="red">your reputation takes a big hit.</span>`);
 				_caught = 1;
-			case "degradationist":
+				break;
+			case"degradationist":
 				_income += random(2000, 3000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "repopulation":
+				break;
+			case"repopulation":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "fundamentalist":
+				break;
+			case"fundamentalist":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "hedonistic":
+				break;
+			case"hedonistic":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "pastoralist":
+				break;
+			case"pastoralist":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "body purist":
+				break;
+			case"body purist":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "subjugationist":
+				break;
+			case"subjugationist":
 				_income += random(1500, 2500);
 				r.push(`You manage to work with some slavers that deal exclusively in ${V.arcologies[0].FSSubjugationistRace} slaves, and you export them from the arcology at a cost, bringing in <span class="yellowgreen">${cashFormat(_income)}.</span> 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":
+				break;
+			case"radicalist":
 				_income += random(2500, 4000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "transformation":
+				break;
+			case"transformation":
 				_income += random(2500, 4000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "youth":
+				break;
+			case"youth":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}</span> for these services.`);
-			case "maturity":
+				break;
+			case"maturity":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "slimness":
+				break;
+			case"slimness":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "expansionist":
+				break;
+			case"expansionist":
 				_income += random(2500, 4000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}</span> for them.`);
-			case "idealist":
+				break;
+			case"idealist":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "professionalism":
+				break;
+			case"professionalism":
 				_income += random(2500, 5500);
 				r.push(`Your arcology has strict laws when it comes to who may be stay within its walls and those that don't cut it are often desperate for a loop hole; one you can easily provide. <span class="yellowgreen">${cashFormat(_income)}</span> for your pocket and another taxable citizen. Win, win.`);
-			case "dependency":
+				break;
+			case"dependency":
 				_income += random(5500, 15000);
 				r.push(`Your arcology has strict laws when it comes to who may be claimed as a dependent and thusly excused from taxation. Of course, there are always those looking to cheat the system for their own benefit and more than willing to slip you a sum of credits to make it happen. While in the long term it may cost you, but for now you rake in a quick <span class="yellowgreen">${cashFormat(_income)}</span> for the forged documents.`);
-			case "statuesque":
+				break;
+			case"statuesque":
 				_income += random(1500, 3500);
 				r.push(`Your arcology likes its slaves tall, but even then there is the occasional outlier. An outlier usually keen on paying a lovely sum to have a tiny embarrassment of a slave slipped discreetly into their possession. All that is seen is a pair of suitcases changing hands and you walk away with <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "petite":
+				break;
+			case"petite":
 				_income += random(1500, 3000);
 				r.push(`Your arcology prefer a couple with a sizable gap between their heights. When they can't quite achieve that goal, they turn to any means they can. A few discreet surgeries and growth inhibitor sales net you <span class="yellowgreen">${cashFormat(_income)}</span> this week.`);
-			case "religion":
+				break;
+			case"religion":
 				_income += random(2000, 3000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}</span> for salvation.`);
-			case "roman law":
+				break;
+			case"roman law":
 				_income += random(2000, 3000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}</span> for you to forget the shame they've put on your arcology.`);
-			case "roman":
+				break;
+			case"roman":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "egyptian":
+				break;
+			case"egyptian":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "aztec law":
+				break;
+			case"aztec law":
 				_income += random(2000, 3000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "aztec":
+				break;
+			case"aztec":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "imperial law":
+				break;
+			case"imperial law":
 				_income += random(2000, 3000);
 				r.push(`With Imperial Knights contantly patrolling the streets and a strict noble hierarchy flowing up from your Barons directly to you, you have a great deal of room to play with legal codes and edifices - which, of course, are constantly being modified to be eternally in your favor. The Barons and Knights who maintain your arcology happily turn a blind eye as you skim trade income directly into your pockets - after all, they're going to benefit from your success too. Sly manipulation of trade codes has earned you <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "imperial":
+				break;
+			case"imperial":
 				_income += random(1500, 2500);
 				r.push(`Your new Imperial culture fosters a particularly large amount of trade, given its fascination with high technology and old world culture. The constant influx of new fashions, materials, and technologies allows for one of the rarest opportunities for an ultra-wealthy plutocrat such as yourself; the chance to earn an honest dollar. By spending time at the bustling marketplace and trading in fashion, you've made <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "arabian law":
+				break;
+			case"arabian law":
 				_income += random(2000, 3000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}</span> to put in your pockets.`);
-			case "arabian":
+				break;
+			case"arabian":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "edo law":
+				break;
+			case"edo law":
 				_income += random(2000, 3000);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
-			case "edo":
+				break;
+			case"edo":
 				_income += random(1500, 2500);
 				r.push(`During important meetings with higher society, it is wise to have a lot of slaves to put at the disposition of others. But some slaveowners grow really attached to their slaves, and so they'd much rather rent out unknown slaves from an anonymous owner's stock than use their own. This is a good opportunity to make some money, as shown by the <span class="yellowgreen">${cashFormat(_income)}</span> you managed to make.`);
-			case "chinese law":
+				break;
+			case"chinese law":
 				_income += random(2000, 3000);
 				({ he, him, his } = getPronouns(S.HeadGirl));
 				r.push(`This time, you have a good idea that will also make use of your Head Girl. You coax ${him} into thinking ${he} should accept bribes for the time being, making up a good reason on the spot, and ${he} ends up bringing back <span class="yellowgreen">${cashFormat(_income)}</span> from all the bribes people gave for ${him} to turn the other way.`);
-			case "chinese":
+				break;
+			case"chinese":
 				_income += random(1500, 2500);
 				r.push(`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 <span class="yellowgreen">${cashFormat(_income)}.</span>`);
 			default:
@@ -548,7 +582,8 @@ App.EndWeek.personalBusiness = function() {
 					}
 				}
 
-			case "warfare":
+				break;
+			case"warfare":
 				_oldSkill = V.PC.skill.warfare;
 				if (_X === 1) {
 					V.PC.skill.warfare += _Cal;
@@ -582,7 +617,8 @@ App.EndWeek.personalBusiness = function() {
 					}
 				}
 
-			case "slaving":
+				break;
+			case"slaving":
 				_oldSkill = V.PC.skill.slaving;
 				if (_X === 1) {
 					V.PC.skill.slaving += _Cal;
@@ -616,7 +652,8 @@ App.EndWeek.personalBusiness = function() {
 					}
 				}
 
-			case "engineering":
+				break;
+			case"engineering":
 				_oldSkill = V.PC.skill.engineering;
 				if (_X === 1) {
 					V.PC.skill.engineering += _Cal;
@@ -650,7 +687,8 @@ App.EndWeek.personalBusiness = function() {
 					}
 				}
 
-			case "medicine":
+				break;
+			case"medicine":
 				_oldSkill = V.PC.skill.medicine;
 				if (_X === 1) {
 					V.PC.skill.medicine += _Cal;
@@ -684,7 +722,8 @@ App.EndWeek.personalBusiness = function() {
 					}
 				}
 
-			case "hacking":
+				break;
+			case"hacking":
 				_oldSkill = V.PC.skill.hacking;
 				if (_X === 1) {
 					V.PC.skill.hacking += _Cal;
@@ -718,7 +757,8 @@ App.EndWeek.personalBusiness = function() {
 					}
 				}
 
-			case "technical accidents":
+				break;
+			case"technical accidents":
 				_windfall = Math.trunc((150 * V.PC.skill.hacking) + random(100, 2500)), _X = 0;
 				if (V.PC.skill.hacking === -100) {
 					_Catchtchance = 10;
-- 
GitLab