Skip to content
Snippets Groups Projects
brothelReport.tw 15.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • :: Brothel Report [nobr]
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    <span id="brothel-stats">
    
    Pregmodder's avatar
    Pregmodder committed
    </span>
    
    
    <<set _slaves = App.Utils.sortedEmployees(App.Entity.facilities.brothel)>>
    <<set _DL = _slaves.length, _SL = $slaves.length, $legendaryWhoreID = 0, _FLsFetish = 0, _profits = 0>>
    
    corncobman21's avatar
    corncobman21 committed
    <<set $legendaryWombID = 0>>
    
    Pregmodder's avatar
    Pregmodder committed
    <!-- Statistics gathering -->
    <<set $facility = $facility || {}, $facility.brothel = initFacilityStatistics($facility.brothel)>>
    
    Blank_Alt's avatar
    Blank_Alt committed
    <<set _brothelNameCaps = capFirstChar($brothelName)>>
    
    Pregmodder's avatar
    Pregmodder committed
    
    
    <<if ($MadamID != 0)>>
    	<<if (_S.Madam.health.condition < -80)>>
    		<<run improveCondition(_S.Madam, 20)>>
    	<<elseif _S.Madam.health.condition < -40>>
    		<<run improveCondition(_S.Madam, 15)>>
    	<<elseif _S.Madam.health.condition < 0>>
    		<<run improveCondition(_S.Madam, 10)>>
    	<<elseif _S.Madam.health.condition < 90>>
    		<<run improveCondition(_S.Madam, 7)>>
    
    	<<if _S.Madam.devotion <= 45>>
    		<<set _S.Madam.devotion += 5>>
    
    	<<if _S.Madam.trust < 45>>
    		<<set _S.Madam.trust += 5>>
    
    	<<if _S.Madam.rules.living != "luxurious">>
    		<<set _S.Madam.rules.living = "luxurious">>
    
    	<<if _S.Madam.rules.rest != "restrictive">>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<set _S.Madam.rules.rest = "restrictive">>
    
    	<<if _S.Madam.fetishStrength <= 95>>
    		<<if _S.Madam.fetish != "dom">>
    			<<if fetishChangeChance(_S.Madam) > random(0,100)>>
    				<<set _FLsFetish = 1, _S.Madam.fetishKnown = 1, _S.Madam.fetish = "dom">>
    
    Pregmodder's avatar
    Pregmodder committed
    			<</if>>
    
    		<<elseif _S.Madam.fetishKnown == 0>>
    			<<set _FLsFetish = 1, _S.Madam.fetishKnown = 1>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<else>>
    
    			<<set _FLsFetish = 2, _S.Madam.fetishStrength += 4>>
    
    Pregmodder's avatar
    Pregmodder committed
    	/% Make sure we have registered living expenses as for any other slave %/
    
    	<<run getSlaveStatisticData(_S.Madam, $facility.brothel)>>
    	<<setLocalPronouns _S.Madam>>
    	&nbsp;&nbsp;&nbsp;&nbsp;<<= SlaveFullName(_S.Madam)>> is serving as the Madam.
    	<<if _S.Madam.relationship == -3 && _S.Madam.devotion > 50>>
    
    klorpa's avatar
    klorpa committed
    		As your loving $wife, $he does $his best to attract attention to your brothel.
    
    	<</if>>
    	<<if (_FLsFetish == 1)>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    		$He isn't above sampling the merchandise $himself; before long it's obvious to $his girls that $he <span class="fetish-gain">really likes fucking them.</span>
    
    	<<elseif (_FLsFetish == 2)>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    		$He's careful that all of the whores under $his supervision are all warmed up and ready to get fucked every morning, and $he <span class="fetish inc">becomes more dominant.</span>
    
    	<<if (_S.Madam.skill.whoring <= 10)>>
    		Though _S.Madam.slaveName does $his best to manage the brothel, with $his lack of skill $he can do little.
    	<<elseif (_S.Madam.skill.whoring <= 30)>>
    		_S.Madam.slaveName's basic skills marginally <span class="cash inc">improve</span> business at $brothelName.
    	<<elseif (_S.Madam.skill.whoring <= 60)>>
    		_S.Madam.slaveName's skills <span class="cash inc">improve</span> business at $brothelName.
    	<<elseif (_S.Madam.skill.whoring < 100)>>
    		_S.Madam.slaveName's skills greatly <span class="cash inc">improve</span> business at $brothelName.
    
    		_S.Madam.slaveName's mastery immensely <span class="cash inc">improves</span> business at $brothelName.
    
    	<<if (_S.Madam.actualAge > 35)>>
    
    		$His age and experience also contribute.
    
    	<<if setup.madamCareers.includes(_S.Madam.career)>>
    
    		$He has experience from $his life before $he was a slave that helps $him in the seedy business of selling other people's bodies for sex.
    
    	<<elseif _S.Madam.skill.madam >= $masteredXP>>
    
    		$He has experience from working for you that helps $him in the seedy business of selling other people's bodies for sex.
    
    	<<if (_S.Madam.intelligence+_S.Madam.intelligenceImplant > 15)>>
    
    	<<if (_S.Madam.dick > 2) && (canPenetrate(_S.Madam))>>
    
    		$His turgid dick helps $him manage the bitches.
    
    	<<for _slave range _slaves>>
    		<<set $i = $slaveIndices[_slave.ID]>> /% for the included passages %/
    
    
    		<<if _S.Madam.rivalryTarget == _slave.ID>>
    			$He forces $his <<print rivalryTerm(_S.Madam)>>, to service all the men in the brothel.
    
    			<<set _slave.devotion -= 2, _slave.trust -= 2>>
    			<<if canDoVaginal(_slave)>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    				<<run seX(_slave, "vaginal", "public", "penetrative", 10)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<</if>>
    
    			<<if canDoAnal(_slave)>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    				<<run seX(_slave, "anal", "public", "penetrative", 12)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<</if>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    			<<run seX(_slave, "anal", "public", "penetrative", 10)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<if random(1,100) > 65>>
    
    				<<set _S.Madam.rivalry++, _slave.rivalry++>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<</if>>
    
    		<<elseif _S.Madam.relationshipTarget == _slave.ID>>
    
    			<<setLocalPronouns _slave 2>>
    
    			$He dotes over $his <<print relationshipTerm(_S.Madam)>>, _slave.slaveName, making sure _he2 is safe, but unfortunately driving potential customers away from _him2.
    
    			<<set _slave.devotion++>>
    
    		<<elseif areRelated(_S.Madam, _slave)>>
    
    			<<setLocalPronouns _slave 2>>
    
    			$He pays special attention to $his <<print relativeTerm(_S.Madam,_slave)>>, _slave.slaveName, making sure _he2 is treated well and showing off _his2 skills.
    
    			<<set _slave.trust++>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    		<<if _slave.prestigeDesc == "$He is a famed Free Cities whore, and commands top prices.">>
    			<<setLocalPronouns _slave 2>>
    			$He makes sure to promote _slave.slaveName, the famed whore, in order to capitalize on _his2 popularity.
    		<<elseif _slave.prestigeDesc == "$He is a famed Free Cities slut, and can please anyone.">>
    			<<setLocalPronouns _slave 2>>
    			$He makes sure to promote _slave.slaveName, the famed entertainer, in order to capitalize on _his2 popularity.
    		<<elseif _slave.prestigeDesc == "$He is remembered for winning best in show as a dairy cow.">>
    			<<setLocalPronouns _slave 2>>
    
    			<<if ($arcologies[0].FSPhysicalIdealist != "unset")>>
    
    				<<if (_slave.muscles > 60) && (_slave.weight < 30) && (_slave.lactation > 0) && ((_slave.boobs-_slave.boobsImplant) > 6000)>>
    					$He shows off how even a cow like _slave.slaveName can achieve physical perfection.
    
    					A<<if (_slave.muscles < 30)>>n unmuscled,<</if>><<if (_slave.weight > 30)>> fat,<</if>> 'prestigious' <<if (_slave.lactation > 0)>>cow<<elseif ((_slave.boobs-_slave.boobsImplant) > 6000)>>mass of titflesh<<else>>slave<</if>> like _slave.slaveName is woefully out of fashion, so _S.Madam.slaveName tries to draw attention away from _him2.
    
    				<</if>>
    			<<else>>
    
    				<<if (_slave.lactation > 0) && ((_slave.boobs-_slave.boobsImplant) > 6000)>>
    					$He makes sure to massage _slave.slaveName's huge breasts to get the milk flowing before enticing clients to suckle and play with _him2.
    
    					$He would like to show off _slave.slaveName's huge udders, but _slave.slaveName <<if (_slave.lactation == 0)>>isn't producing milk anymore<<else>>doesn't exactly have huge udders anymore<</if>>.
    
    				<</if>>
    			<</if>>
    
    		<<elseif _slave.prestigeDesc == "$He is remembered for winning best in show as a cockmilker.">>
    			<<setLocalPronouns _slave 2>>
    
    			<<if $arcologies[0].FSGenderFundamentalist != "unset">> /* this needs review - doesn't fit right. An XY slave would be expected to be masculine. */
    
    				<<if (_slave.balls == 0) && (_slave.dick == 0) && (_slave.vagina > -1)>>
    					$He uses _slave.slaveName as an example of how even a huge-balled freak like _him2 can be restored to proper femininity.
    
    					$He tries to hide _slave.slaveName, 'her' body being notorious for its defiance of conventional femininity.
    
    				<</if>>
    			<<else>>
    
    				<<if ((_slave.balls > 5) && (_slave.dick != 0)) || ((_slave.balls > 4) && (_slave.dick != 0) && (_slave.prostate > 1))>>
    					$He shows off _slave.slaveName's copious loads by putting a condom over _his2 dick and teasing _him2 till _he2 bursts it. The show draws multiple clients that want to play with _his2 oversized junk and messy orgasms.
    
    					$He would love to show off _slave.slaveName's copious loads, but _slave.slaveName<<if _slave.dick == 0>> doesn't have a dick<<elseif _slave.balls == 0>>'s not producing cum<<else>>'s orgasms just aren't messy enough<</if>>.
    
    				<</if>>
    			<</if>>
    
    		<<elseif _slave.prestigeDesc == "$He is remembered for winning best in show as a breeder.">>
    			<<setLocalPronouns _slave 2>>
    			<<if _slave.bellyPreg >= 5000>>
    				$He makes sure _slave.slaveName's growing pregnancy is well taken care of, even if it means driving away potential customers away when the mother-to-be needs a rest.
    			<<elseif canGetPregnant(_slave)>>
    				$He makes sure to play off _slave.slaveName's fame and fertility by enticing potential customers to be the one to claim _his2 womb by filling it with their child.
    
    				$He would love to play off of _slave.slaveName's fame and fertility, but unfortunately _he2 <<if _slave.pregKnown == 1 && _slave.bellyPreg < 1500>>is already pregnant and not far enough along to show it<<elseif _slave.pregKnown == 1 && _slave.bellyPreg < 5000>>already pregnant, but not enough to be exciting<<else>>is unable to get knocked up<</if>>.
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    Pregmodder's avatar
    Pregmodder committed
    	<</for>>
    
    	<<if (_DL+$brothelSlavesGettingHelp < 10) && $MadamNoSex != 1 && !slaveResting(_S.Madam)>>
    
    		<<setLocalPronouns _S.Madam>>
    
    Jones's avatar
    Jones committed
    		<<set _oldCash = $cash>>
    		<<if $showEWD != 0>>
    
    			<br>&nbsp;&nbsp;&nbsp;&nbsp;$He <<= App.SlaveAssignment.whore(_S.Madam)>>
    
    Jones's avatar
    Jones committed
    		<<else>>
    
    			<<run App.SlaveAssignment.whore(_S.Madam)>>
    
    Jones's avatar
    Jones committed
    		<br>&nbsp;&nbsp;&nbsp;&nbsp;
    
    		$He whores $himself because $he doesn't have enough whores to manage to keep $him busy, and makes <span class="cash inc"><<print cashFormat(_S.Madam.lastWeeksCashIncome)>>.</span> $He can charge more for $his time, since many citizens find it erotic to fuck the Madam.
    
    Jones's avatar
    Jones committed
    		<<set _profits += $cash - _oldCash, _oldCash = $cash>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    	<div class="indent" style="font-weight:bold">
    		<<if _DL != 1>>
    			There are _DL slave whores working out of $brothelName.
    		<<else>>
    			There is one slave whore working out of $brothelName.
    		<</if>>
    	</div>
    
    <<if $MadamID != 0>>
    	<<set $i = $slaveIndices[$MadamID]>> /* apply following SA passages to facility leader */
    
    Pregmodder's avatar
    Pregmodder committed
    	<<if $showEWD != 0>>
    		<br><br>
    		/* 000-250-006 */
    
    		<<if $seeImages && $seeReportImages>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<div class="imageRef tinyImg">
    
    			<<= SlaveArt(_S.Madam, 0, 0)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		</div>
    		<</if>>
    		/* 000-250-006 */
    
    Arkerthan's avatar
    Arkerthan committed
    		<<includeDOM App.EndWeek.favoriteIcon(_S.Madam)>>
    
    		<span class="slave-name"><<= SlaveFullName(_S.Madam)>></span> is serving as the Madam.
    
    Pregmodder's avatar
    Pregmodder committed
    		<br>&nbsp;&nbsp;&nbsp;
    
    		<<= App.SlaveAssignment.choosesOwnClothes(_S.Madam)>>
    		<<run tired(_S.Madam)>>
    
    		<<includeDOM App.SlaveAssignment.rules(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<= App.SlaveAssignment.diet(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<includeDOM App.SlaveAssignment.longTermEffects(_S.Madam)>>
    
    		<<= App.SlaveAssignment.drugs(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<= App.SlaveAssignment.relationships(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<= App.SlaveAssignment.rivalries(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<br>&nbsp;&nbsp;&nbsp;&nbsp;<<= App.SlaveAssignment.devotion(_S.Madam)>>
    
    		<<run App.SlaveAssignment.choosesOwnClothes(_S.Madam)>>
    		<<run tired(_S.Madam)>>
    
    		<<run App.SlaveAssignment.rules(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<run App.SlaveAssignment.diet(_S.Madam)>>
    		<<run App.SlaveAssignment.longTermEffects(_S.Madam)>>
    
    		<<run App.SlaveAssignment.drugs(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<run App.SlaveAssignment.relationships(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<run App.SlaveAssignment.rivalries(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<run App.SlaveAssignment.devotion(_S.Madam)>>
    
    Pregmodder's avatar
    Pregmodder committed
    	<<set _healthBonus = 0, _aphrod = 0>>
    
    klorpa's avatar
    klorpa committed
    	<<if ($brothelUpgradeDrugs == 1)>>
    		<<set _healthBonus += 1, _aphrod = 1>>
    	<<elseif ($brothelUpgradeDrugs == 2)>>
    		<<set _healthBonus += 3, _aphrod = 2>>
    	<</if>>
    
    	<<for _slave range _slaves>>
    		<<set $i = $slaveIndices[_slave.ID]>>
    		<<setLocalPronouns _slave>>
    		<<if ($legendaryWombID == 0) && (!isAmputee(_slave)) && (_slave.preg > _slave.pregData.normalBirth/1.33) && (_slave.broodmother == 0) && (_slave.eggType == "human") && (_slave.counter.births > 10) && (_slave.devotion > 50) && (_slave.prestige == 0)>>
    			<<set $legendaryWombID = _slave.ID>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    		<<if ($legendaryWhoreID == 0) && (_slave.skill.whoring >= 100) && (_slave.devotion > 50) && (_slave.prestige == 0)>>
    			<<set $legendaryWhoreID = _slave.ID>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    Pregmodder's avatar
    Pregmodder committed
    
    
    Pregmodder's avatar
    Pregmodder committed
    		/* Perform facility based rule changes */
    
    		<<run improveCondition(_slave, _healthBonus)>>
    		<<set _slave.aphrodisiacs = _aphrod>>
    
    		<<switch $brothelDecoration>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<case "Degradationist" "standard">>
    
    			<<set _slave.rules.living = "spare">>
    
    		<<default>>
    
    			<<set _slave.rules.living = "normal">>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</switch>>
    
    		<<if (_slave.health.condition < -80)>>
    			<<run improveCondition(_slave, 20)>>
    		<<elseif _slave.health.condition < -40>>
    			<<run improveCondition(_slave, 15)>>
    		<<elseif _slave.health.condition < 0>>
    			<<run improveCondition(_slave, 10)>>
    		<<elseif _slave.health.condition < 90>>
    			<<run improveCondition(_slave, 7)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    		<<if (_slave.devotion <= 20) && (_slave.trust >= -20)>>
    			<<set _slave.devotion -= 5, _slave.trust -= 5>>
    		<<elseif (_slave.devotion < 45)>>
    			<<set _slave.devotion += 4>>
    		<<elseif (_slave.devotion > 50)>>
    			<<set _slave.devotion -= 4>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    		<<if (_slave.trust < 30)>>
    			<<set _slave.trust += 5>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    		<<if _slave.energy > 40 && _slave.energy < 95>>
    			<<set _slave.energy++>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    klorpa's avatar
    klorpa committed
    
    
    Pregmodder's avatar
    Pregmodder committed
    		<<if $showEWD != 0>>
    			<br><br>
    			/* 000-250-006 */
    
    			<<if $seeImages && $seeReportImages>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<div class="imageRef tinyImg">
    
    				<<= SlaveArt(_slave, 0, 0)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			</div>
    
    Pregmodder's avatar
    Pregmodder committed
    			<</if>>
    
    Pregmodder's avatar
    Pregmodder committed
    			/* 000-250-006 */
    
    Arkerthan's avatar
    Arkerthan committed
    			<<includeDOM App.EndWeek.favoriteIcon(_slave)>>
    
    			<span class="slave-name"><<= SlaveFullName(_slave)>></span>
    			<<if _slave.choosesOwnAssignment == 2>>
    
    Pregmodder's avatar
    Pregmodder committed
    				<<= App.SlaveAssignment.choosesOwnJob(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<else>>
    				is working out of $brothelName.
    
    Pregmodder's avatar
    Pregmodder committed
    			<</if>>
    
    			<br>&nbsp;&nbsp;&nbsp;&nbsp;$He <<= App.SlaveAssignment.whore(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<br>&nbsp;&nbsp;&nbsp;
    
    			<<= App.SlaveAssignment.choosesOwnClothes(_slave)>>
    
    			<<includeDOM App.SlaveAssignment.rules(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<= App.SlaveAssignment.diet(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<includeDOM App.SlaveAssignment.longTermEffects(_slave)>>
    
    			<<= App.SlaveAssignment.drugs(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<= App.SlaveAssignment.relationships(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<= App.SlaveAssignment.rivalries(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<br>&nbsp;&nbsp;&nbsp;&nbsp;<<= App.SlaveAssignment.devotion(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<<else>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<run App.SlaveAssignment.choosesOwnJob(_slave)>>
    
    			<<run App.SlaveAssignment.whore(_slave)>>
    			<<run App.SlaveAssignment.choosesOwnClothes(_slave)>>
    
    			<<run App.SlaveAssignment.rules(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<run App.SlaveAssignment.diet(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<run App.SlaveAssignment.longTermEffects(_slave)>>
    
    			<<run App.SlaveAssignment.drugs(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<run App.SlaveAssignment.relationships(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<run App.SlaveAssignment.rivalries(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    			<<run App.SlaveAssignment.devotion(_slave)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</if>>
    
    klorpa's avatar
    klorpa committed
    
    
    		<<set _seed = Math.max(App.Ads.getMatchedCategoryCount(_slave, "brothel"), 1)>>
    
    		<<set _adsIncome = _seed * random(50,60) * Math.trunc($brothelAdsSpending/1000)>>
    
    		<<set _cashX = _adsIncome, getSlaveStatisticData(_slave, $facility.brothel).adsIncome += _adsIncome>>
    
    Pregmodder's avatar
    Pregmodder committed
    	<</for>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    	<p>
    		<<= App.Ads.report("brothel")>>
    	</p>
    
    Pregmodder's avatar
    Pregmodder committed
    	<!-- Record statistics gathering -->
    	<<script>>
    		var b = State.variables.facility.brothel;
    		b.whoreIncome = 0;
    		b.customers = 0;
    		b.whoreCosts = 0;
    		b.rep = 0;
    
    brickode's avatar
    brickode committed
    		for (var si of b.income.values()) {
    
    Pregmodder's avatar
    Pregmodder committed
    			b.whoreIncome += si.income + si.adsIncome;
    			b.customers += si.customers;
    			b.whoreCosts += si.cost;
    			b.rep += si.rep;
    		}
    		b.adsCosts = State.variables.brothelAdsSpending;
    		b.maintenance = State.variables.brothel * State.variables.facilityCost * (1.0 + 0.2 * State.variables.brothelUpgradeDrugs);
    		b.totalIncome = b.whoreIncome + b.adsIncome;
    		b.totalExpenses = b.whoreCosts + b.adsCosts + b.maintenance;
    		b.profit = b.totalIncome - b.totalExpenses;
    	<</script>>
    
    klorpa's avatar
    klorpa committed
    
    
    Blank_Alt's avatar
    Blank_Alt committed
    	_brothelNameCaps makes you <span class="cash inc"><<print cashFormat(_profits)>></span> this week.
    
    	<<if $brothelDecoration != "standard">>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    		<p>
    
    Blank_Alt's avatar
    Blank_Alt committed
    			_brothelNameCaps's customers enjoyed <span class="reputation inc">fucking whores in $brothelDecoration surroundings.</span>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    		</p>
    
    Pregmodder's avatar
    Pregmodder committed
    	<!-- Statistics output -->
    
    	<<includeDOM App.Facilities.Brothel.Stats(false)>>
    
    Pregmodder's avatar
    Pregmodder committed
    	<<timed 50ms>>
    
    lowercasedonkey's avatar
    lowercasedonkey committed
    		<<replace #brothel-stats>>
    
    			<<includeDOM App.Facilities.Brothel.Stats(true)>>
    
    Pregmodder's avatar
    Pregmodder committed
    		<</replace>>
    	<</timed>>
    
    <<if _DL > 0 || $MadamID != 0>>