diff --git a/artTools/README.md b/artTools/README.md index 4af98d40a95959a9a3a0d4a5ee2333f48ccdefa2..cf7f84f3a9bc9bf5fcf16d82c6f5068c842ed7d9 100644 --- a/artTools/README.md +++ b/artTools/README.md @@ -7,11 +7,11 @@ Note: This does not actually describe how to be an artist. ## TL;DR - killall inkscape - artTools/vector_layer_split.py artTools/vector_source.svg tw src/art/vector/layers/ - compile - python3 artTools/normalize_svg.py artTools/vector_source.svg - git commit -a + killall inkscape + artTools/vector_layer_split.py artTools/vector_source.svg tw src/art/vector/layers/ + compile + python3 artTools/normalize_svg.py artTools/vector_source.svg + git commit -a ## 1. Be an artist @@ -24,12 +24,12 @@ Adobe Illustrator might work decently, too. While editing, keep the Layers in mind. * In Inkscape, Layers are special "Inkscape groups". -* In Illustrator, Layers are groups with user-definded IDs. +* In Illustrator, Layers are groups with user-defined IDs. * All Layers should have an ID that is globally unique (not just within their subtree). * Please use anonymous groups only for the ease of editing. Remove all "helper" groups before finally saving the file. -* Anonymous groups can be used for continous scaling (of e.g. boobs). +* Anonymous groups can be used for continuous scaling (of e.g. boobs). * Every asset that should go into a separate file needs to be in a labelled group (even if that is a group with only one shape). @@ -37,14 +37,14 @@ While editing, keep the Layers in mind. Use them if your asset should be changed upon display. Do not set the style directly in the object. -## 3. Normalise the document (before committing) +## 3. Normalize the document (before committing) **THIS IS IMPORTANT** The various editors out there (Inkscape, Illustrator) may use different variants of formatting the SVG XML. Use - python3 normalize_svg.py vector_source.svg + python3 normalize_svg.py vector_source.svg before committing to normalise the format so git will not freak out about the changed indentation. @@ -56,19 +56,19 @@ What it does: * Adobe Illustrator uses group IDs as layer labels. Inkscape however uses layer labels and a separate, auto-generated group ID. normalize_svg.py overwrites the group ID with the Inkscape layer label - so they are synchronised with Inkscape layer labels. + so they are synchronized with Inkscape layer labels. * Inkscape copies the global style definition into the object *every time* the object is edited. If an object references a CSS class AND at the same time has a local style, the local style is removed so global dynamic styling is possible later on. -Note: Behaviour of Adobe Illustrator is untested. +Note: Behavior of Adobe Illustrator is untested. ## 4. Split the layers -For NoX original, deepurk extensions, execute +For NoX original, deepmurk extensions, execute - python3 vector_layer_split.py vector_deepmurk_primary.svg tw ../src/art/vector/layers/ + python3 vector_layer_split.py vector_deepmurk_primary.svg tw ../src/art/vector/layers/ For faraen revamped art (based on NoX original) diff --git a/compile.bat b/compile.bat index 1491de7b9f2be131954ce9a15ef855cd286e2a3a..535d53bf3428e56d93b18778ba837697b1e6cb3f 100644 --- a/compile.bat +++ b/compile.bat @@ -6,9 +6,9 @@ pushd %~dp0 :: Run the appropriate compiler for the user's CPU architecture. if %PROCESSOR_ARCHITECTURE% == AMD64 ( - CALL "%~dp0devTools\tweeGo\tweego_win64.exe" -o "%~dp0bin/FC_pregmod.html" "%~dp0src" + CALL "%~dp0devTools\tweeGo\tweego_win64.exe" -o "%~dp0bin/FC_pregmod.html" "%~dp0src" ) else ( - CALL "%~dp0devTools\tweeGo\tweego_win86.exe" -o "%~dp0bin/FC_pregmod.html" "%~dp0src" + CALL "%~dp0devTools\tweeGo\tweego_win86.exe" -o "%~dp0bin/FC_pregmod.html" "%~dp0src" ) popd diff --git a/compile_debug+sanityCheck.bat b/compile_debug+sanityCheck.bat index 7e73de714b767c764d92de761b7cc9008e51f8d0..d9d4bbffca2a5383a4ba22b29c1e8f154043ce7c 100644 --- a/compile_debug+sanityCheck.bat +++ b/compile_debug+sanityCheck.bat @@ -8,15 +8,15 @@ pushd %~dp0 setlocal enabledelayedexpansion for %%k in (HKCU HKLM) do ( - for %%w in (\ \Wow6432Node\) do ( - for /f "skip=2 delims=: tokens=1*" %%a in ('reg query "%%k\SOFTWARE%%wMicrosoft\Windows\CurrentVersion\Uninstall\Git_is1" /v InstallLocation 2^> nul') do ( - for /f "tokens=3" %%z in ("%%a") do ( - set GIT=%%z:%%b + for %%w in (\ \Wow6432Node\) do ( + for /f "skip=2 delims=: tokens=1*" %%a in ('reg query "%%k\SOFTWARE%%wMicrosoft\Windows\CurrentVersion\Uninstall\Git_is1" /v InstallLocation 2^> nul') do ( + for /f "tokens=3" %%z in ("%%a") do ( + set GIT=%%z:%%b set GITFOUND=yes - goto FOUND - ) - ) - ) + goto FOUND + ) + ) + ) ) :FOUND if %GITFOUND% == yes ( diff --git a/devNotes/Useful JS Function Documentation.txt b/devNotes/Useful JS Function Documentation.txt index e5831d12bfe007d1167c106756f9632d876cb8aa..98e7c10df6a14f87ca524515a19007b57eeda6e4 100644 --- a/devNotes/Useful JS Function Documentation.txt +++ b/devNotes/Useful JS Function Documentation.txt @@ -118,6 +118,8 @@ tooBigButt(slave) - Returns if the slave's butt is too big for her to move. milkAmount(slave) - Returns the slave's expected milk output in liters. +foodAmount(slave) - Returns the slave's expected food output in kilograms. + cumAmount(slave) - Returns the slave's expected cum output in deciliters. isVegetable(slave) - Returns if the slave is mindbroken. diff --git a/devNotes/VersionChangeLog-Premod+LoliMod.txt b/devNotes/VersionChangeLog-Premod+LoliMod.txt index 42b01e1077844d1abdd13405156a258cddc9557e..827e30c142475095ca30c482731d2adec25030e7 100644 --- a/devNotes/VersionChangeLog-Premod+LoliMod.txt +++ b/devNotes/VersionChangeLog-Premod+LoliMod.txt @@ -1,7 +1,22 @@ Pregmod +0.10.7.1-1.7.x + +01/26/2019 + + 0 + -corporation overhauled + -more farmyard development + -food resource and management (optional) + -fixes + 0.10.7.1-1.6.x +01/23/2019 + + 4 + -fixes + 01/21/2019 3 diff --git a/devNotes/twine CSS b/devNotes/twine CSS index 2793efa643e70fe63fa99c6045407fb0187d247e..32b636e1f1bb5c4a2936201e7614954c53368a2f 100644 --- a/devNotes/twine CSS +++ b/devNotes/twine CSS @@ -183,7 +183,10 @@ span.zeroButton > a:hover { text-decoration: none; } .darkred { color: darkred } .darkviolet { color: darkviolet } .deeppink { color: deeppink } +.steelblue { color: steelblue } .deepskyblue { color: deepskyblue } +.dodgerblue { color: dodgerblue } +.blue { color: blue } .gold { color: gold } .goldenrod { color: goldenrod } .gray { color: gray } @@ -209,6 +212,8 @@ span.zeroButton > a:hover { text-decoration: none; } .seagreen { color: seagreen } .springgreen { color: springgreen } .tan { color: tan } +.chocolate { color: chocolate } +.saddlebrown { color: saddlebrown } .teal { color: teal } .yellow { color: yellow } .yellowgreen { color: yellowgreen } @@ -221,7 +226,10 @@ span.zeroButton > a:hover { text-decoration: none; } .darkred a { color: darkred } .darkviolet a { color: darkviolet } .deeppink a { color: deeppink } +.steelblue a { color: steelblue } .deepskyblue a { color: deepskyblue } +.dodgerblue a { color: dodgerblue } +.blue a { color: blue } .gold a { color: gold } .goldenrod a { color: goldenrod } .gray a { color: gray } @@ -247,6 +255,8 @@ span.zeroButton > a:hover { text-decoration: none; } .seagreen a { color: seagreen } .springgreen a { color: springgreen } .tan a { color: tan } +.chocolate a { color: chocolate } +.saddlebrown { color: saddlebrown } .teal a { color: teal } .yellow a { color: yellow } .yellowgreen a { color: yellowgreen } diff --git a/devTools/makeTwineJSPassage.sh b/devTools/makeTwineJSPassage.sh index 408018e4a158471e200fa5211e1c417c955edf71..af0db0d42124242c89d66c0c4e13b2b7115f8fc0 100755 --- a/devTools/makeTwineJSPassage.sh +++ b/devTools/makeTwineJSPassage.sh @@ -6,8 +6,13 @@ # $1: root repo dir # $2: output file name collectJSForTwine() { + local files=$(find . -path ./art/assistantArt.js -prune -o -name '*.js' -print) + files=$(echo "$files" | sort) echo "" > "$2" - find . -path ./art/assistantArt.js -prune -o -name '*.js' -exec echo -e "\n/* {} */\n" \; -a -exec sed -nf "$1"/devTools/stripComments.sed {} \; >> "$2" + for f in $files; do + echo -e "\n/* ${f} */\n" >> "$2" + sed -nf "$1"/devTools/stripComments.sed "$f" >> "$2" + done } ROOT_REPO_DIR="$(git rev-parse --show-toplevel)" diff --git a/devTools/stripComments.sed b/devTools/stripComments.sed index a289e43b1de5feecd0d46d5b21257cd906f38fac..d6bd7cabd20fb5812dd78f80f14c358e6ae3d432 100755 --- a/devTools/stripComments.sed +++ b/devTools/stripComments.sed @@ -26,11 +26,11 @@ /^"/{ :double /^$/{ - x - p - n - /^"/b break - b double + x + p + n + /^"/b break + b double } H @@ -41,11 +41,11 @@ /^"/b break /^\\/{ - H - x - s,\n\(.\).*,\1, - x - s/.// + H + x + s,\n\(.\).*,\1, + x + s/.// } b double } @@ -53,11 +53,11 @@ /^'/{ :single /^$/{ - x - p - n - /^'/b break - b single + x + p + n + /^'/b break + b single } H x @@ -67,11 +67,11 @@ /^'/b break /^\\/{ - H - x - s,\n\(.\).*,\1, - x - s/.// + H + x + s,\n\(.\).*,\1, + x + s/.// } b single } @@ -82,8 +82,8 @@ s,^.[^*]*,, /^$/ n /^\*\//{ - s/..// - b loop + s/..// + b loop } b ccom } diff --git a/fixSpellingMistakes b/fixSpellingMistakes index 01893e9145d233751e217f36e4f62d62ba27f36d..b45351ab08abc0b6f8ed3313f1b1500516e6e533 100755 --- a/fixSpellingMistakes +++ b/fixSpellingMistakes @@ -6,4 +6,3 @@ if [ ! -d ".git" ]; then fi git ls-files -z src/*.tw | grep -z -v .min.tw | grep -z -v setupVars.tw | xargs -0 sed -i -f devTools/spell_check.txt - diff --git a/sanityCheck b/sanityCheck index efd3d13c7d5ba865f4ff057b8e7fa6f281ec2281..a9540854dbdfd26adc43ea2907aeb95349758530 100755 --- a/sanityCheck +++ b/sanityCheck @@ -34,7 +34,7 @@ $GREP -e "<<[^\"<>]*\([^\"<>]*\"[^><\"]*\"\| [<>] \)*\"\([^\"<>]*\"[^><\"]*\"\| $GREP -e "@@color:" --and --not -e "@@color:rgb([0-9 ]\+,[0-9 ]\+,[0-9 ]\+)" -- "src/*" | myprint "UseCssColors" # Check for missing $ in activeSlave or PC $GREP "<<[ ]*[^\$><_\[]*\(activeSlave\|PC\)[.]" -- "src/*" | myprint "MissingDollar" -# Check for closing bracket without opening bracket. e.g.: <<if foo)>> (but <<case "foo")>> is valid, so ignore those +# Check for closing bracket without opening bracket. e.g.: <<if foo)>> (but <<case "foo")>> is valid, so ignore those $GREP -e "<<[ a-zA-Z]\+\([^()<>]\|[^()<>][<>][^()<>]\)*)" --and --not -e "<< *case" -- "src/*" | myprint "MissingOpeningBracket" # Check for opening bracket without closing bracket. e.g.: <<if (foo>> $GREP -e "<<[ a-zA-Z]\([^<>]\|[^<>][<>][^<>]\)\+(\([^()<>]\|[^<>()][<>][^<>()]\|([^<>()]*])\)*>>" -- "src/*" | myprint "MissingClosingBracket" @@ -97,7 +97,7 @@ $GREP "<<[a-zA-Z]\([^\"'>]\|[^\"'>]>[^\"'>]\)*[a-zA-Z][.][^a-zA-Z]" | myprint "S # Check for @@. instead of .@@ $GREP -E "@@(\.|,|;|:)\s" -- src/*.tw | myprint "WrongSelectorPunctuation" -# Check that we do not have any variables that we use only once. e.g. $onlyUsedOnce +# Check that we do not have any variables that we use only once. e.g. $onlyUsedOnce # Ignore *Nationalities ( cd src/ diff --git a/slave variables documentation - Pregmod.txt b/slave variables documentation - Pregmod.txt index 301f899b87df6cbb98b493a1bb992a2e34f9ac63..0f93c04b2bd5f23019f47f2efeb342db68b64841 100644 --- a/slave variables documentation - Pregmod.txt +++ b/slave variables documentation - Pregmod.txt @@ -3457,11 +3457,35 @@ geneMods: 0 - no 1 - yes +slaveCost: +Amount of cash paid to acquire the slave +accepts negative numbers, 0, or 1. +1 - unknown price +0 - free +negative - amount paid + +lifetimeCashExpenses: +Amount of cash you have spent because of this slave +accepts negative numbers or 0 + +lifetimeCashIncome: +Total amount of cash you have earned because of this slave +accepts positive numbers or 0 + +lastWeeksCashIncome: +Amount of cash you have earned because of this slave last week +accepts positive numbers or 0 + +lifetimeRepExpenses: +lifetimeRepIncome: +lastWeeksRepIncome: +Not currently used, will work similarly to the cash variables above + How to set up your own hero slave. -The default slave template used: -<<set $activeSlave = {slaveName: "blank", slaveSurname: 0, birthName: "blank", birthSurname: 0, genes: "XX", pronoun: "she", possessive: "her", possessivePronoun: "hers", objectReflexive: "herself", object: "her", noun: "girl", weekAcquired: 0, origin: 0, career: 0, ID: 0, prestige: 0, pornFeed: 0, pornFame: 0, pornFameSpending: 0, pornPrestige: 0, pornPrestigeDesc: 0, pornFameType: "none", pornFocus: "none", pornTypeGeneral: 0, pornTypeFuckdoll: 0, pornTypeRape: 0, pornTypePreggo: 0, pornTypeBBW: 0, pornTypeGainer: 0, pornTypeStud: 0, pornTypeLoli: 0, pornTypeDeepThroat: 0, pornTypeStruggleFuck: 0, pornTypePainal: 0, pornTypeTease: 0, pornTypeRomantic: 0, pornTypePervert: 0, pornTypeCaring: 0, pornTypeUnflinching: 0, pornTypeSizeQueen: 0, pornTypeNeglectful: 0, pornTypeCumAddict: 0, pornTypeAnalAddict: 0, pornTypeAttentionWhore: 0, pornTypeBreastGrowth: 0, pornTypeAbusive: 0, pornTypeMalicious: 0, pornTypeSelfHating: 0, pornTypeBreeder: 0, pornTypeSub: 0, pornTypeCumSlut: 0, pornTypeAnal: 0, pornTypeHumiliation: 0, pornTypeBoobs: 0, pornTypeDom: 0, pornTypeSadist: 0, pornTypeMasochist: 0, pornTypePregnancy: 0, prestigeDesc: 0, recruiter: 0, relation: 0, relationTarget: 0, relationship: 0, relationshipTarget: 0, rivalry: 0, rivalryTarget: 0, subTarget: 0, father: 0, mother: 0, daughters: 0, sisters: 0, canRecruit: 0, choosesOwnAssignment: 0, assignment: "rest", assignmentVisible: 1, sentence: 0, training: 0, toyHole: "all her holes", indenture: -1, indentureRestrictions: 0, birthWeek: random(0,51), actualAge: 18, visualAge: 18, physicalAge: 18, ovaryAge: 18, ageImplant: 0, health: 0, minorInjury: 0, trust: 0, oldTrust: 0, devotion: 0, oldDevotion: 0, weight: 0, muscles: 0, height: 170, heightImplant: 0, nationality: "slave", race: "white", origRace: "white", markings: "none", eyes: 1, eyeColor: "brown", origEye: "brown", pupil: "circular", sclerae: "white", eyewear: "none", hears: 0, earwear: "none", earImplant: 0, origHColor: "brown", hColor: "brown", pubicHColor: "brown", underArmHColor: "brown", eyebrowHColor: "brown", origSkin: "light", skin: "light", hLength: 60, eyebrowFullness: "natural", hStyle: "short", pubicHStyle: "neat", underArmHStyle: "neat", eyebrowHStyle: "natural", waist: 0, corsetPiercing: 0, PLimb: 0, amp: 0, heels:0, voice: 2, voiceImplant: 0, accent: 0, shoulders: 0, shouldersImplant: 0, boobs: 0, boobsImplant: 0, boobsImplantType: 0, boobShape: "normal", nipples: "cute", nipplesPiercing: 0, nipplesAccessory: 0, areolae: 0, areolaePiercing: 0, areolaeShape: "circle", boobsTat: 0, lactation: 0, lactationAdaptation: 0, milk: 0, cum: 0, hips: 0, hipsImplant: 0, butt: 0, buttImplant: 0, buttImplantType: 0, buttTat: 0, face: 0, faceImplant: 0, faceShape: "normal", lips: 15, lipsImplant: 0, lipsPiercing: 0, lipsTat: 0, teeth: "normal", tonguePiercing: 0, vagina: 0, vaginaLube: 0, vaginaPiercing: 0, vaginaTat: 0, preg: -1, pregSource: 0, pregType: 0, pregAdaptation: 50, superfetation: 0, ovaImplant: 0, wombImplant: "none", broodmother: 0, broodmotherFetuses: 0, broodmotherOnHold: 0, broodmotherCountDown: 0, labor: 0, births: 0, cSec: 0, bellyAccessory: "none", labia: 0, clit: 0, clitPiercing: 0, clitSetting: "vanilla", foreskin: 0, anus: 0, dick: 0, analArea: 1, dickPiercing: 0, dickTat: 0, prostate: 0, balls: 0, scrotum: 0, ovaries: 0, anusPiercing: 0, anusTat: 0, makeup: 0, nails: 0, brand: 0, brandLocation: 0, earPiercing: 0, nosePiercing: 0, eyebrowPiercing: 0, navelPiercing: 0, shouldersTat: 0, armsTat: 0, legsTat: 0, backTat: 0, stampTat: 0, vaginalSkill: 0, oralSkill: 0, analSkill: 0, whoreSkill: 0, entertainSkill: 0, combatSkill: 0, livingRules: "spare", speechRules: "restrictive", releaseRules: "restrictive", relationshipRules: "restrictive", standardPunishment: "situational", standardReward: "situational", useRulesAssistant: 1, diet: "healthy", dietCum: 0, dietMilk: 0, tired: 0, hormones: 0, drugs: "no drugs", curatives: 0, chem: 0, aphrodisiacs: 0, addict: 0, fuckdoll: 0, choosesOwnClothes: 0, clothes: "no clothing", collar: "none", shoes: "none", vaginalAccessory: "none", dickAccessory: "none", legAccessory: "none", buttplug: "none", buttplugAttachment: "none", intelligence: 0, intelligenceImplant: 0, energy: 50, need: 0, attrXX: 0, attrXY: 0, attrKnown: 0, fetish: "none", fetishStrength: 70, fetishKnown: 0, behavioralFlaw: "none", behavioralQuirk: "none", sexualFlaw: "none", sexualQuirk: "none", oralCount: 0, vaginalCount: 0, analCount: 0, mammaryCount: 0, penetrativeCount: 0, publicCount: 0, pitKills: 0, customTat: "", customLabel: "", customDesc: "", customTitle: "", customTitleLisp: "", rudeTitle: 0, customImage: 0, currentRules: [], bellyTat: 0, induce: 0, mpreg: 0, inflation: 0, inflationType: "none", inflationMethod: 0, milkSource: 0, cumSource: 0, burst: 0, pregKnown: 0, pregWeek: 0, belly: 0, bellyPreg: 0, bellyFluid: 0, bellyImplant: -1, bellySag: 0, bellySagPreg: 0, bellyPain: 0, cervixImplant: 0, birthsTotal: 0, pubertyAgeXX: 13, pubertyAgeXY: 13, scars: 0, breedingMark: 0, bodySwap: 0, HGExclude: 0, ballType: "human", eggType: "human", reservedChildren: 0, reservedChildrenNursery: 0, choosesOwnChastity: 0, pregControl: "none", readyLimbs: [], ageAdjust: 0, bald: 0, origBodyOwner: "", origBodyOwnerID: 0, death: "", hormoneBalance: 0, onDiet: 0, breastMesh: 0, slavesFathered: 0, PCChildrenFathered: 0, slavesKnockedUp: 0, PCKnockedUp: 0, prematureBirth: 0, premature: 0, origSkin: "white", vasectomy: 0, haircuts: 0, newGamePlus: 0, skillHG: 0, skillRC: 0, skillBG: 0, skillMD: 0, skillDJ: 0, skillNU: 0, skillTE: 0, skillAT: 0, skillMT: 0, skillST: 0, skillMM: 0, skillFA: 0, skillWA: 0, skillS: 0, skillE: 0, skillW: 0, tankBaby: 0, geneMods: {NCS: 0, rapidCellGrowth: 0}, NCSyouthening: 0, override_Race: 0, override_Skin: 0, override_Eye_Color: 0, override_H_Color: 0, override_Pubic_H_Color: 0, override_Arm_H_Color: 0, override_Brow_H_Color: 0, missingEyes: 0, missingArms: 0, missingLegs: 0}>> +<<set $activeSlave = {slaveName: "blank", slaveSurname: 0, birthName: "blank", birthSurname: 0, genes: "XX", pronoun: "she", possessive: "her", possessivePronoun: "hers", objectReflexive: "herself", object: "her", noun: "girl", weekAcquired: 0, origin: 0, career: 0, ID: 0, prestige: 0, pornFeed: 0, pornFame: 0, pornFameSpending: 0, pornPrestige: 0, pornPrestigeDesc: 0, pornFameType: "none", pornFocus: "none", pornTypeGeneral: 0, pornTypeFuckdoll: 0, pornTypeRape: 0, pornTypePreggo: 0, pornTypeBBW: 0, pornTypeGainer: 0, pornTypeStud: 0, pornTypeLoli: 0, pornTypeDeepThroat: 0, pornTypeStruggleFuck: 0, pornTypePainal: 0, pornTypeTease: 0, pornTypeRomantic: 0, pornTypePervert: 0, pornTypeCaring: 0, pornTypeUnflinching: 0, pornTypeSizeQueen: 0, pornTypeNeglectful: 0, pornTypeCumAddict: 0, pornTypeAnalAddict: 0, pornTypeAttentionWhore: 0, pornTypeBreastGrowth: 0, pornTypeAbusive: 0, pornTypeMalicious: 0, pornTypeSelfHating: 0, pornTypeBreeder: 0, pornTypeSub: 0, pornTypeCumSlut: 0, pornTypeAnal: 0, pornTypeHumiliation: 0, pornTypeBoobs: 0, pornTypeDom: 0, pornTypeSadist: 0, pornTypeMasochist: 0, pornTypePregnancy: 0, prestigeDesc: 0, recruiter: 0, relation: 0, relationTarget: 0, relationship: 0, relationshipTarget: 0, rivalry: 0, rivalryTarget: 0, subTarget: 0, father: 0, mother: 0, daughters: 0, sisters: 0, canRecruit: 0, choosesOwnAssignment: 0, assignment: "rest", assignmentVisible: 1, sentence: 0, training: 0, toyHole: "all her holes", indenture: -1, indentureRestrictions: 0, birthWeek: random(0,51), actualAge: 18, visualAge: 18, physicalAge: 18, ovaryAge: 18, ageImplant: 0, health: 0, minorInjury: 0, trust: 0, oldTrust: 0, devotion: 0, oldDevotion: 0, weight: 0, muscles: 0, height: 170, heightImplant: 0, nationality: "slave", race: "white", origRace: "white", markings: "none", eyes: 1, eyeColor: "brown", origEye: "brown", pupil: "circular", sclerae: "white", eyewear: "none", hears: 0, earwear: "none", earImplant: 0, origHColor: "brown", hColor: "brown", pubicHColor: "brown", underArmHColor: "brown", eyebrowHColor: "brown", origSkin: "light", skin: "light", hLength: 60, eyebrowFullness: "natural", hStyle: "short", pubicHStyle: "neat", underArmHStyle: "neat", eyebrowHStyle: "natural", waist: 0, corsetPiercing: 0, PLimb: 0, amp: 0, heels:0, voice: 2, voiceImplant: 0, accent: 0, shoulders: 0, shouldersImplant: 0, boobs: 0, boobsImplant: 0, boobsImplantType: 0, boobShape: "normal", nipples: "cute", nipplesPiercing: 0, nipplesAccessory: 0, areolae: 0, areolaePiercing: 0, areolaeShape: "circle", boobsTat: 0, lactation: 0, lactationAdaptation: 0, milk: 0, cum: 0, hips: 0, hipsImplant: 0, butt: 0, buttImplant: 0, buttImplantType: 0, buttTat: 0, face: 0, faceImplant: 0, faceShape: "normal", lips: 15, lipsImplant: 0, lipsPiercing: 0, lipsTat: 0, teeth: "normal", tonguePiercing: 0, vagina: 0, vaginaLube: 0, vaginaPiercing: 0, vaginaTat: 0, preg: -1, pregSource: 0, pregType: 0, pregAdaptation: 50, superfetation: 0, ovaImplant: 0, wombImplant: "none", broodmother: 0, broodmotherFetuses: 0, broodmotherOnHold: 0, broodmotherCountDown: 0, labor: 0, births: 0, cSec: 0, bellyAccessory: "none", labia: 0, clit: 0, clitPiercing: 0, clitSetting: "vanilla", foreskin: 0, anus: 0, dick: 0, analArea: 1, dickPiercing: 0, dickTat: 0, prostate: 0, balls: 0, scrotum: 0, ovaries: 0, anusPiercing: 0, anusTat: 0, makeup: 0, nails: 0, brand: 0, brandLocation: 0, earPiercing: 0, nosePiercing: 0, eyebrowPiercing: 0, navelPiercing: 0, shouldersTat: 0, armsTat: 0, legsTat: 0, backTat: 0, stampTat: 0, vaginalSkill: 0, oralSkill: 0, analSkill: 0, whoreSkill: 0, entertainSkill: 0, combatSkill: 0, livingRules: "spare", speechRules: "restrictive", releaseRules: "restrictive", relationshipRules: "restrictive", standardPunishment: "situational", standardReward: "situational", useRulesAssistant: 1, diet: "healthy", dietCum: 0, dietMilk: 0, tired: 0, hormones: 0, drugs: "no drugs", curatives: 0, chem: 0, aphrodisiacs: 0, addict: 0, fuckdoll: 0, choosesOwnClothes: 0, clothes: "no clothing", collar: "none", shoes: "none", vaginalAccessory: "none", dickAccessory: "none", legAccessory: "none", buttplug: "none", buttplugAttachment: "none", intelligence: 0, intelligenceImplant: 0, energy: 50, need: 0, attrXX: 0, attrXY: 0, attrKnown: 0, fetish: "none", fetishStrength: 70, fetishKnown: 0, behavioralFlaw: "none", behavioralQuirk: "none", sexualFlaw: "none", sexualQuirk: "none", oralCount: 0, vaginalCount: 0, analCount: 0, mammaryCount: 0, penetrativeCount: 0, publicCount: 0, pitKills: 0, customTat: "", customLabel: "", customDesc: "", customTitle: "", customTitleLisp: "", rudeTitle: 0, customImage: 0, currentRules: [], bellyTat: 0, induce: 0, mpreg: 0, inflation: 0, inflationType: "none", inflationMethod: 0, milkSource: 0, cumSource: 0, burst: 0, pregKnown: 0, pregWeek: 0, belly: 0, bellyPreg: 0, bellyFluid: 0, bellyImplant: -1, bellySag: 0, bellySagPreg: 0, bellyPain: 0, cervixImplant: 0, birthsTotal: 0, pubertyAgeXX: 13, pubertyAgeXY: 13, scars: 0, breedingMark: 0, bodySwap: 0, HGExclude: 0, ballType: "human", eggType: "human", reservedChildren: 0, reservedChildrenNursery: 0, choosesOwnChastity: 0, pregControl: "none", readyLimbs: [], ageAdjust: 0, bald: 0, origBodyOwner: "", origBodyOwnerID: 0, death: "", hormoneBalance: 0, onDiet: 0, breastMesh: 0, slavesFathered: 0, PCChildrenFathered: 0, slavesKnockedUp: 0, PCKnockedUp: 0, prematureBirth: 0, premature: 0, origSkin: "white", vasectomy: 0, haircuts: 0, newGamePlus: 0, skillHG: 0, skillRC: 0, skillBG: 0, skillMD: 0, skillDJ: 0, skillNU: 0, skillTE: 0, skillAT: 0, skillMT: 0, skillST: 0, skillMM: 0, skillFA: 0, skillWA: 0, skillS: 0, skillE: 0, skillW: 0, tankBaby: 0, geneMods: {NCS: 0, rapidCellGrowth: 0}, NCSyouthening: 0, override_Race: 0, override_Skin: 0, override_Eye_Color: 0, override_H_Color: 0, override_Pubic_H_Color: 0, override_Arm_H_Color: 0, override_Brow_H_Color: 0, missingEyes: 0, missingArms: 0, missingLegs: 0, slaveCost: 0, lifetimeCashExpenses: 0, lifetimeCashIncome: 0, lastWeeksCashIncome: 0, lifetimeRepExpenses: 0, lifetimeRepIncome: 0, lastWeeksRepIncome: 0}>> Making your slave; add their name to the following, then go down the documentation adding in your changes. -each variable must be separated from the last by a comma followed by a space diff --git a/src/pregmod/Jquery/CSS.tw b/src/001-lib/Jquery/CSS.tw similarity index 100% rename from src/pregmod/Jquery/CSS.tw rename to src/001-lib/Jquery/CSS.tw diff --git a/src/pregmod/Jquery/Jquery.js b/src/001-lib/Jquery/Jquery.js similarity index 100% rename from src/pregmod/Jquery/Jquery.js rename to src/001-lib/Jquery/Jquery.js diff --git a/src/001-lib/mousetrap/mousetrap.js b/src/001-lib/mousetrap/mousetrap.js new file mode 100644 index 0000000000000000000000000000000000000000..291aff8d5485b44416c4423f8d4339941ae83ba9 --- /dev/null +++ b/src/001-lib/mousetrap/mousetrap.js @@ -0,0 +1,11 @@ +/* mousetrap v1.5.3 craig.is/killing/mice */ +(function(C,r,g){function t(a,b,h){a.addEventListener?a.addEventListener(b,h,!1):a.attachEvent("on"+b,h)}function x(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return l[a.which]?l[a.which]:p[a.which]?p[a.which]:String.fromCharCode(a.which).toLowerCase()}function D(a){var b=[];a.shiftKey&&b.push("shift");a.altKey&&b.push("alt");a.ctrlKey&&b.push("ctrl");a.metaKey&&b.push("meta");return b}function u(a){return"shift"==a||"ctrl"==a||"alt"==a|| +"meta"==a}function y(a,b){var h,c,e,g=[];h=a;"+"===h?h=["+"]:(h=h.replace(/\+{2}/g,"+plus"),h=h.split("+"));for(e=0;e<h.length;++e)c=h[e],z[c]&&(c=z[c]),b&&"keypress"!=b&&A[c]&&(c=A[c],g.push("shift")),u(c)&&g.push(c);h=c;e=b;if(!e){if(!k){k={};for(var m in l)95<m&&112>m||l.hasOwnProperty(m)&&(k[l[m]]=m)}e=k[h]?"keydown":"keypress"}"keypress"==e&&g.length&&(e="keydown");return{key:c,modifiers:g,action:e}}function B(a,b){return null===a||a===r?!1:a===b?!0:B(a.parentNode,b)}function c(a){function b(a){a= +a||{};var b=!1,n;for(n in q)a[n]?b=!0:q[n]=0;b||(v=!1)}function h(a,b,n,f,c,h){var g,e,l=[],m=n.type;if(!d._callbacks[a])return[];"keyup"==m&&u(a)&&(b=[a]);for(g=0;g<d._callbacks[a].length;++g)if(e=d._callbacks[a][g],(f||!e.seq||q[e.seq]==e.level)&&m==e.action){var k;(k="keypress"==m&&!n.metaKey&&!n.ctrlKey)||(k=e.modifiers,k=b.sort().join(",")===k.sort().join(","));k&&(k=f&&e.seq==f&&e.level==h,(!f&&e.combo==c||k)&&d._callbacks[a].splice(g,1),l.push(e))}return l}function g(a,b,n,f){d.stopCallback(b, +b.target||b.srcElement,n,f)||!1!==a(b,n)||(b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0)}function e(a){"number"!==typeof a.which&&(a.which=a.keyCode);var b=x(a);b&&("keyup"==a.type&&w===b?w=!1:d.handleKey(b,D(a),a))}function l(a,c,n,f){function e(c){return function(){v=c;++q[a];clearTimeout(k);k=setTimeout(b,1E3)}}function h(c){g(n,c,a);"keyup"!==f&&(w=x(c));setTimeout(b,10)}for(var d=q[a]=0;d<c.length;++d){var p=d+1===c.length?h:e(f|| +y(c[d+1]).action);m(c[d],p,f,a,d)}}function m(a,b,c,f,e){d._directMap[a+":"+c]=b;a=a.replace(/\s+/g," ");var g=a.split(" ");1<g.length?l(a,g,b,c):(c=y(a,c),d._callbacks[c.key]=d._callbacks[c.key]||[],h(c.key,c.modifiers,{type:c.action},f,a,e),d._callbacks[c.key][f?"unshift":"push"]({callback:b,modifiers:c.modifiers,action:c.action,seq:f,level:e,combo:a}))}var d=this;a=a||r;if(!(d instanceof c))return new c(a);d.target=a;d._callbacks={};d._directMap={};var q={},k,w=!1,p=!1,v=!1;d._handleKey=function(a, +c,e){var f=h(a,c,e),d;c={};var k=0,l=!1;for(d=0;d<f.length;++d)f[d].seq&&(k=Math.max(k,f[d].level));for(d=0;d<f.length;++d)f[d].seq?f[d].level==k&&(l=!0,c[f[d].seq]=1,g(f[d].callback,e,f[d].combo,f[d].seq)):l||g(f[d].callback,e,f[d].combo);f="keypress"==e.type&&p;e.type!=v||u(a)||f||b(c);p=l&&"keydown"==e.type};d._bindMultiple=function(a,b,c){for(var d=0;d<a.length;++d)m(a[d],b,c)};t(a,"keypress",e);t(a,"keydown",e);t(a,"keyup",e)}var l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt", +20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},p={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},A={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},z={option:"alt",command:"meta","return":"enter", +escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k;for(g=1;20>g;++g)l[111+g]="f"+g;for(g=0;9>=g;++g)l[g+96]=g;c.prototype.bind=function(a,b,c){a=a instanceof Array?a:[a];this._bindMultiple.call(this,a,b,c);return this};c.prototype.unbind=function(a,b){return this.bind.call(this,a,function(){},b)};c.prototype.trigger=function(a,b){if(this._directMap[a+":"+b])this._directMap[a+":"+b]({},a);return this};c.prototype.reset=function(){this._callbacks={};this._directMap= +{};return this};c.prototype.stopCallback=function(a,b){return-1<(" "+b.className+" ").indexOf(" mousetrap ")||B(b,this.target)?!1:"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable};c.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};c.init=function(){var a=c(r),b;for(b in a)"_"!==b.charAt(0)&&(c[b]=function(b){return function(){return a[b].apply(a,arguments)}}(b))};c.init();C.Mousetrap=c;"undefined"!==typeof module&&module.exports&&(module.exports= +c);"function"===typeof define&&define.amd&&define(function(){return c})})(window,document); diff --git a/src/002-config/mousetrapConfig.js b/src/002-config/mousetrapConfig.js new file mode 100644 index 0000000000000000000000000000000000000000..b0a1283e7e82833457e4db357be0d4860b30a12c --- /dev/null +++ b/src/002-config/mousetrapConfig.js @@ -0,0 +1,104 @@ +Mousetrap.bind("enter", function () { + $("#story-caption #endWeekButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("space", function () { + $("#story-caption #nextButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("c", function () { + $("#story-caption #manageArcology a.macro-link").trigger("click"); +}); +Mousetrap.bind("p", function () { + $("#story-caption #managePenthouse a.macro-link").trigger("click"); +}); +Mousetrap.bind("n", function () { + $("#story-caption #manageEconomy a.macro-link").trigger("click"); +}); +Mousetrap.bind("left", function () { + $("#prevSlave a.macro-link").trigger("click"); + $("#prevRule a").trigger("click"); + $("#prevChild a.macro-link").trigger("click"); +}); +Mousetrap.bind("q", function () { + $("#prevSlave a.macro-link").trigger("click"); + $("#prevRule a").trigger("click"); + $("#prevChild a.macro-link").trigger("click"); +}); +Mousetrap.bind("shift+left", function () { + $("#firstRule a").trigger("click"); +}); +Mousetrap.bind("shift+q", function () { + $("#firstRule a").trigger("click"); +}); +Mousetrap.bind("right", function () { + $("#nextSlave a.macro-link").trigger("click"); + $("#nextRule a").trigger("click"); + $("#nextChild a.macro-link").trigger("click"); +}); +Mousetrap.bind("shift+right", function () { + $("#lastRule a").trigger("click"); +}); +Mousetrap.bind("e", function () { + $("#nextSlave a.macro-link").trigger("click"); + $("#nextRule a").trigger("click"); + $("#nextChild a.macro-link").trigger("click"); +}); +Mousetrap.bind("shift+e", function () { + $("#lastRule a").trigger("click"); +}); +Mousetrap.bind("f", function () { + $("#walkpast a.macro-link").trigger("click"); +}); +Mousetrap.bind("h", function () { + $("#manageHG a.macro-link").trigger("click"); +}); +Mousetrap.bind("s", function () { + $("#buySlaves a.macro-link").trigger("click"); +}); +Mousetrap.bind("a", function () { + $("#managePA a.macro-link").trigger("click"); +}); +Mousetrap.bind("b", function () { + $("#manageBG a.macro-link").trigger("click"); +}); +Mousetrap.bind("u", function () { + $("#manageRecruiter a.macro-link").trigger("click"); +}); +Mousetrap.bind("o", function () { + $("#story-caption #optionsButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("y", function () { + $("#story-caption #policyButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("f", function () { + $("#story-caption #FSButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("t", function () { + $("#story-caption #PAOButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("v", function () { + $("#story-caption #URButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("r", function () { + $("#RAButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("x", function () { + $("#story-caption #managePerson a.macro-link").trigger("click"); +}); +Mousetrap.bind("z", function () { + $("#story-caption #SFMButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("d", function () { + $("#story-caption #edictButton a.macro-link").trigger("click"); +}); +Mousetrap.bind("shift+s", function () { + $("#story-caption #securityHQ a.macro-link").trigger("click"); +}); +Mousetrap.bind("shift+a", function () { + $("#story-caption #secBarracks a.macro-link").trigger("click"); +}); +Mousetrap.bind("shift+h", function () { + $("#story-caption #propHub a.macro-link").trigger("click"); +}); +Mousetrap.bind("shift+r", function () { + $("#story-caption #riotCenter a.macro-link").trigger("click"); +}); diff --git a/src/config/start.tw b/src/002-config/start.tw similarity index 100% rename from src/config/start.tw rename to src/002-config/start.tw diff --git a/src/config/sugarCubeConfig.js b/src/002-config/sugarCubeConfig.js similarity index 100% rename from src/config/sugarCubeConfig.js rename to src/002-config/sugarCubeConfig.js diff --git a/src/SecExp/attackOptions.tw b/src/SecExp/attackOptions.tw index fd48ad805519c7c49263b65227971d5e96759573..edd20a645f548955873aaaaf732cba9e5dbed042 100644 --- a/src/SecExp/attackOptions.tw +++ b/src/SecExp/attackOptions.tw @@ -416,6 +416,8 @@ Units about to be deployed: <<for _i = 0; _i < $lastSelection.length; _i++>> <<if $lastSelection[_i] == -1>> <<set $secBots.isDeployed = 1>> + <<set $deployableUnits-->> + <<set $deployedUnits++>> <<else>> <<for _j = 0; _j < $militiaUnits.length; _j++>> <<if $lastSelection[_i] == $militiaUnits[_j].ID>> diff --git a/src/SecExp/attackReport.tw b/src/SecExp/attackReport.tw index be01f7ce8e51252f713fe38640b9915f522b6c4d..afe1ce2ee8c5557cdfb250130f5799f5b5a3c829 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/SecExp/secBarracks.tw b/src/SecExp/secBarracks.tw index ed437b171c593a32ea1ed026e5e1511586f0bfec..05ece2be7e1149676d29578318d9f7560cc590c4 100644 --- a/src/SecExp/secBarracks.tw +++ b/src/SecExp/secBarracks.tw @@ -172,16 +172,16 @@ You are free to organize your menial slaves into fighting units. Currently you h <<if $cash > _menialPrice>> <<if _bulkMax > 0>> <br> - [[Buy|secBarracks][$menials+=1,$menialSupplyFactor-=1,$cash-=_menialPrice]] + [[Buy|secBarracks][$menials+=1,$menialSupplyFactor-=1,cashX(forceNeg(_menialPrice), "menialTransfer")]] <<if $cash > (menialSlaveCost(10))*10>> - [[(x10)|secBarracks][$menials+=10,$menialSupplyFactor-=10,$cash-=(menialSlaveCost(10))*10]] + [[(x10)|secBarracks][$menials+=10,$menialSupplyFactor-=10,cashX(forceNeg((menialSlaveCost(10))*10), "menialTransfer")]] <</if>> <<if $cash > (menialSlaveCost(100))*100>> - [[(x100)|secBarracks][$menials+=100,$menialSupplyFactor-=100,$cash-=(menialSlaveCost(100))*100]] + [[(x100)|secBarracks][$menials+=100,$menialSupplyFactor-=100,cashX(forceNeg((menialSlaveCost(100))*100), "menialTransfer")]] <</if>> <<if $cash > (_menialPrice+1)*2>> <<set _menialBulkPremium = Math.trunc(1 + Math.clamp($cash/_menialPrice,0,_bulkMax)/400)>> - [[(max)|secBarracks][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$cash-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)*(_menialPrice+_menialBulkPremium))]] + [[(max)|secBarracks][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),cashX(forceNeg(Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)*(_menialPrice+_menialBulkPremium))), "menialTransfer")]] <</if>> //Bulk transactions may require offering a premium.// <</if>> diff --git a/src/SecExp/securityHQ.tw b/src/SecExp/securityHQ.tw index fb7058053727229e4adc894f923a05fd6d4f7042..dee3622d2a2adab4311a77932b81fd652a553f38 100644 --- a/src/SecExp/securityHQ.tw +++ b/src/SecExp/securityHQ.tw @@ -27,16 +27,16 @@ You have <span id="secHel"> <<print commaNum($secMenials)>> </span> slaves worki <<if $cash > _menialPrice>> <<if _bulkMax > 0 || $menials+$fuckdolls+$menialBioreactors == 0>> <br> - [[Buy|securityHQ][$menials+=1,$menialSupplyFactor-=1,$cash-=_menialPrice]] + [[Buy|securityHQ][$menials+=1,$menialSupplyFactor-=1,cashX(forceNeg(_menialPrice), "menialTransfer")]] <<if $cash > (menialSlaveCost(10))*10>> - [[(x10)|securityHQ][$menials+=10,$menialSupplyFactor-=10,$cash-=(menialSlaveCost(10))*10]] + [[(x10)|securityHQ][$menials+=10,$menialSupplyFactor-=10,cashX(forceNeg((menialSlaveCost(10))*10), "menialTransfer")]] <</if>> <<if $cash > (menialSlaveCost(100))*100>> - [[(x100)|securityHQ][$menials+=100,$menialSupplyFactor-=100,$cash-=(menialSlaveCost(100))*100]] + [[(x100)|securityHQ][$menials+=100,$menialSupplyFactor-=100,cashX(forceNeg((menialSlaveCost(100))*100), "menialTransfer")]] <</if>> <<if $cash > (_menialPrice+1)*2>> <<set _menialBulkPremium = Math.trunc(1 + Math.clamp($cash/_menialPrice,0,_bulkMax)/400)>> - [[(max)|securityHQ][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$cash-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)*(_menialPrice+_menialBulkPremium))]] + [[(max)|securityHQ][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),cashX(forceNeg(Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)*(_menialPrice+_menialBulkPremium))), "menialTransfer")]] <</if>> //Bulk transactions may require offering a premium.// <</if>> diff --git a/src/SecExp/securityReport.tw b/src/SecExp/securityReport.tw index 7b4c7e2c639d3151cf706ef434b53d1f23cc366f..2d1b8ca4e6f956d52b3822fc88c34ceeb66dddd2 100644 --- a/src/SecExp/securityReport.tw +++ b/src/SecExp/securityReport.tw @@ -282,7 +282,7 @@ <<set $crime = Math.clamp(_newCrime,0,100)>> <<if $militiaFounded == 1 || $activeUnits >= 1>> - <br> + <br><br> <strong> Military</strong>: /* militia */ <<if $SF.Toggle && $SF.Active >= 1 && $SF.Size > 10>> Having a powerful special force attracts a lot of citizens, hopeful that they may be able to fight along side it. diff --git a/src/SecExp/weaponsManufacturing.tw b/src/SecExp/weaponsManufacturing.tw index 5f24cf46a26c2bef169e190dd7844973e84d16df..1cf9e2debf2bf40619ebd5df23f61a4fd8e835bc 100644 --- a/src/SecExp/weaponsManufacturing.tw +++ b/src/SecExp/weaponsManufacturing.tw @@ -36,20 +36,18 @@ You own <<print commaNum($menials)>> free menial slaves. This manufacturing comp <<set _menialPrice = menialSlaveCost()>> <<set _bulkMax = $PopCap-$menials-$fuckdolls-$menialBioreactors>> <<if $cash > _menialPrice>> - <<if _bulkMax > 0 || $menials+$fuckdolls+$menialBioreactors == 0>> - <br> - [[Buy|weaponsManufacturing][$menials+=1,$menialSupplyFactor-=1,$cash-=_menialPrice]] - <<if $cash > (menialSlaveCost(10))*10>> - [[(x10)|weaponsManufacturing][$menials+=10,$menialSupplyFactor-=10,$cash-=(menialSlaveCost(10))*10]] - <</if>> - <<if $cash > (menialSlaveCost(100))*100>> - [[(x100)|weaponsManufacturing][$menials+=100,$menialSupplyFactor-=100,$cash-=(menialSlaveCost(100))*100]] - <</if>> - <<if $cash > (_menialPrice+1)*2>> - <<set _menialBulkPremium = Math.trunc(1 + Math.clamp($cash/_menialPrice,0,_bulkMax)/400)>> - [[(max)|weaponsManufacturing][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$cash-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)*(_menialPrice+_menialBulkPremium))]] - <</if>> - //Bulk transactions may require offering a premium.// +<<if _bulkMax > 0 || $menials+$fuckdolls+$menialBioreactors == 0>> + <br> + [[Buy|weaponsManufacturing][$menials+=1,$menialSupplyFactor-=1,cashX(forceNeg(_menialPrice), "menialTransfer")]] + <<if $cash > (menialSlaveCost(10))*10>> + [[(x10)|weaponsManufacturing][$menials+=10,$menialSupplyFactor-=10,cashX(forceNeg((menialSlaveCost(10))*10), "menialTransfer")]] + <</if>> + <<if $cash > (menialSlaveCost(100))*100>> + [[(x100)|weaponsManufacturing][$menials+=100,$menialSupplyFactor-=100,cashX(forceNeg((menialSlaveCost(100))*100), "menialTransfer")]] + <</if>> + <<if $cash > (_menialPrice+1)*2>> + <<set _menialBulkPremium = Math.trunc(1 + Math.clamp($cash/_menialPrice,0,_bulkMax)/400)>> + [[(max)|weaponsManufacturing][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),cashX(forceNeg(Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)*(_menialPrice+_menialBulkPremium))), "menialTransfer")]] <</if>> <</if>> diff --git a/src/art/art.js b/src/art/artJS.js similarity index 99% rename from src/art/art.js rename to src/art/artJS.js index 6cdee743148a7ce7cc9dd3be6b4dd667574651b1..a6e22a6a4a093e9ab5aee3cd178d2bb1b1d8771d 100644 --- a/src/art/art.js +++ b/src/art/artJS.js @@ -1905,7 +1905,7 @@ window.VectorArt = (function (artSlave) { if (penisSize === undefined) { penisDrawtime = -1; /* no penis to draw */ } else { - penisDrawtime = 1; /* default is to draw after boobs/belly */ + penisDrawtime = 0; /* default is to draw before boobs/belly */ switch (slave.clothes) { /* BULGE OUTFITS LONG+MEDIUM OUTFITS */ case "a ball gown": @@ -1986,10 +1986,12 @@ window.VectorArt = (function (artSlave) { case "panties and pasties": case "striped panties": case "striped underwear": - if (slave.dick > 3) - penisArtString = jsInclude("Art_Vector_Bulge_Outfit_3"); - else - penisArtString = jsInclude(`Art_Vector_Bulge_Outfit_${penisSize}`); + if (slave.belly <= 4000) { + if (slave.dick > 3) + penisArtString = jsInclude("Art_Vector_Bulge_Outfit_3"); + else + penisArtString = jsInclude(`Art_Vector_Bulge_Outfit_${penisSize}`); + } break; /* hide everything */ case "a cheerleader outfit": @@ -2000,7 +2002,7 @@ window.VectorArt = (function (artSlave) { /* full frontal */ default: if (canAchieveErection(slave) && slave.dickAccessory !== "chastity" && slave.dickAccessory !== "combined chastity") { - /* draw erect penis over boobs if boobs do not hide the penis' base */ + penisDrawtime = 1; /* draw erect penis over boobs if boobs do not hide the penis' base */ if (artBoobScaleFactor < 3.7) { if (slave.foreskin !== 0) penisArtString = jsInclude(`Art_Vector_Penis_${penisSize}`); @@ -2008,7 +2010,7 @@ window.VectorArt = (function (artSlave) { penisArtString = jsInclude(`Art_Vector_PenisCirc_${penisSize}`); } } else { - penisDrawtime = 0; /* flaccid penises are drawn behind the boobs */ + /* flaccid penises are drawn behind the boobs/belly */ if (slave.foreskin !== 0) penisArtString = jsInclude(`Art_Vector_Flaccid_${penisSize}`); else diff --git a/src/debugging/debug.js b/src/debugging/debugJS.js similarity index 96% rename from src/debugging/debug.js rename to src/debugging/debugJS.js index e58085d898de4c1bfd67c8c06f808772c8ab439e..7f1a9650c8aa8a80997420bc6d522bd6068ad8c4 100644 --- a/src/debugging/debug.js +++ b/src/debugging/debugJS.js @@ -75,7 +75,7 @@ window.findNaN = function findNan() { var result = []; for (var key in flatV) { if (Number.isNaN(flatV[key])) { - result.push('$'+key); + result.push('$$'+key); /* double dollar signs to escape sugarcube markup */ } } return result; diff --git a/src/events/intro/introSummary.tw b/src/events/intro/introSummary.tw index 09bf179f521dd3b0bf554bf01de17f2a65ac1869..53e57eca0a652799ef1ccaa406b9dd779e8e65fe 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 2d74ced5af7f7efce1e28f4ce612fe6bbbc64d13..72a8dbea018c78103418a354f94ea4ab639bacc4 100644 --- a/src/facilities/farmyard/farmyard.tw +++ b/src/facilities/farmyard/farmyard.tw @@ -1,6 +1,7 @@ :: Farmyard [nobr] /* TODO: add "plots" of "crops" */ +/* TODO: allow slaves that can't walk to put on shows */ <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Farmyard", $showEncyclopedia = 1, $encyclopedia = "Farmyard">> @@ -48,7 +49,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <<case "Subjugationist">> It is a clean and orderly operation, stables and cages mucked by a multitude of $arcologies[0].FSSubjugationistRace slaves, while the others are tasked with grooming your animals and harvesting your crops. <<case "Paternalist">> - It's full of healthy animals, crops, and slaves, the former's every need diligently looked after by the latter. The fields flourish to capacity under such care, and the animals give the distinct impression of happiness. <<if $seeBestiality == 1>>Some more than others if the growing bellies of your slaves are anything to go by, the only indication that such rutting takes place.<</if>> + It's full of healthy animals, crops, and slaves, the former's every need diligently looked after by the latter. The fields flourish to capacity under such care, and the animals give the distinct impression of happiness. <<if $seeBestiality == 1>>Some more than others if the growing bellies of your slaves are anything to go by, the only indication that such rutting takes place.<</if>> /* TODO: this sentence seems weird */ <<case "Pastoralist">> //This is a placeholder// <<case "Maturity Preferentialist">> @@ -62,7 +63,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <<case "Hedonistic">> It features wider gates and stalls, for both the humans visiting or tending the occupants, and the animals starting to mimic their handlers <<if $seeBestiality == 1>>and company<</if>>, with plenty of seats along the way. <<default>> - It is very much a converted warehouse still, sectioned off in various 'departments'<<if $farmyardUpgrade.machinery == 1>> with machinery placed where it can be<</if>>. + It is very much a converted warehouse still, sectioned off in various 'departments'<<if $farmyardUpgrade.machinery == 1>> with machinery placed where it can be<<if $farmyardUpgrade.hydroponics > 0>> and plumbing for the hydroponics system running every which way<</if>><</if>>. <</switch>> <<if $farmyardSlaves > 2>> @@ -71,8 +72,12 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and $farmyardNameCaps is working steadily. Farmhands are moving about, looking after the animals and crops. <<elseif $Farmer != 0>> $Farmer.slaveName is alone in $farmyardName, and has nothing to do but look after the animals and crops. -<<else>> /* TODO: is there any way of cleaning up $animalsBought? I can't think of a good way */ - $farmyardNameCaps is empty and quiet. <<link "Decommission the Farmyard" "Main">><<set $farmyardName = "the Farmyard", $farmyard = 0, $farmyardSlaves = 0, $farmyardDecoration = "standard", $farmyardUpgrade = {pump: 0, fertilizer: 0, hydroponics: 0, machinery: 0, seeds: 0, lab: 0}, $farmyardLab = 0, $farmyardLabUpgrades = {animalOvaries: 0, animalTesticles: 0, animalMpreg: 0}, $farmyardCrops = 0, $farmyardKennels = 0, $farmyardStable = 0, $farmyardCages = 0, $activeCanine = 0, $activeHooved = 0, $activeFeline = 0, $animalsBought = {canines: 0, hooved: 0, felines: 0, labradorRetrievers: 0, germanShepherds: 0, goldenRetrievers: 0, frenchBulldogs: 0, bulldogs: 0, beagles: 0, poodles: 0, rottweilers: 0, yorkshireTerriers: 0, siberianHuskies: 0, horses: 0, siameses: 0, persians: 0, maineCoons: 0, ragdolls: 0, bengals: 0, abbysinians: 0, birmans: 0, orientalShorthairs: 0, sphynxes: 0, russianBlues: 0, wolves: 0, foxes: 0, jackals: 0, dingos: 0, zebras: 0, cougars: 0, jaguars: 0, pumas: 0, lynx: 0, leopards: 0, lions: 0, tigers: 0}, $pitAnimal = 0, $pitAnimalType = 0, $canines = [], $hooved = [], $felines = []>> +<<else>> + $farmyardNameCaps is empty and quiet. <<link "Decommission the Farmyard" "Main">> + <<if $farmMenials > 0>> + <<set $menials += $farmMenials>> + <</if>> + <<set $farmyardName = "the Farmyard", $farmyard = 0, $farmyardSlaves = 0, $farmyardDecoration = "standard", $farmMenials = 0, $farmMenialsSpace = 0, $farmyardShows = 0, $farmyardBreeding = 0, $farmyardUpgrade = {pump: 0, fertilizer: 0, hydroponics: 0, machinery: 0, seeds: 0, lab: 0}, $farmyardLab = 0, $farmyardLabUpgrades = {animalOvaries: 0, animalTesticles: 0, animalMpreg: 0}, $farmyardCrops = 0, $farmyardKennels = 0, $farmyardStable = 0, $farmyardCages = 0, $activeCanine = 0, $activeHooved = 0, $activeFeline = 0, $animalsBought = {canines: 0, hooved: 0, felines: 0, labradorRetrievers: 0, germanShepherds: 0, goldenRetrievers: 0, frenchBulldogs: 0, bulldogs: 0, beagles: 0, poodles: 0, rottweilers: 0, yorkshireTerriers: 0, siberianHuskies: 0, horses: 0, bulls: 0, pigs: 0, siameses: 0, persians: 0, maineCoons: 0, ragdolls: 0, bengals: 0, abbysinians: 0, birmans: 0, orientalShorthairs: 0, sphynxes: 0, russianBlues: 0, wolves: 0, foxes: 0, jackals: 0, dingos: 0, zebras: 0, cougars: 0, jaguars: 0, pumas: 0, lynx: 0, leopards: 0, lions: 0, tigers: 0}, $pitAnimal = 0, $pitAnimalType = 0, $canines = [], $hooved = [], $felines = []>> <<set _far = $sectors.findIndex(function(s) { return s.type == "Farmyard"; })>> <<if _far != -1>> <<set $sectors[_far].type = "Manufacturing">> @@ -100,51 +105,128 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <br>It can support $farmyard farmhands. Currently there <<if $farmyardSlaves == 1>>is<<else>>are<</if>> $farmyardSlaves farmhand<<if $farmyardSlaves != 1>>s<</if>> at $farmyardName. [[Expand the farmyard|Farmyard][cashX(forceNeg(_Tmult0), "capEx"), $farmyard += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs// -<br><br> -<<if $Farmer != 0>> - <<set $Flag = 2>> - <<include "Slave Summary">> -<<else>> - You do not have a slave serving as a Farmer. [[Appoint one|Farmer Select]] +<span id="menials" +<br><br><br> +<<if $farmMenials > 0>> + Assigned here are $farmMenials slaves working to produce as much food as possible. <</if>> + <<if $farmMenialsSpace > 0>> + You <<if $menials > 0>> own <<if $menials > 10>><<print commaNum($menials)>><<else>><<= numberToWords($menials)>><</if>><<else>>don't own any<</if>> free menial slaves. $farmyardNameCaps can house <<print $farmMenialsSpace>> menial slaves total, with <<print $farmMenialsSpace - $farmMenials>> free slots. + <</if>> -<br><br> -<<if ($farmyard <= $farmyardSlaves)>> - ''$farmyardNameCaps is full and cannot hold any more slaves'' -<<elseif ($slaves.length > $farmyardSlaves)>> - <<link "''Send a slave to $farmyardName''">> - <<replace #ComingGoing>> - <<resetAssignmentFilter>> - <<set $Flag = 0>> - <<include "Slave Summary">> - <</replace>> +<br> + +<<if ($farmMenials < $farmMenialsSpace) && ($farmMenialsSpace > 0)>> + <<if $menials >= 1>> + <<link "Transfer in a menial slave">> + <<set $menials-->> + <<set $farmMenials++>> + <<goto "Farmyard">> + <</link>> + <</if>> + <<if $menials >= 10 && $farmMenials <= ($farmMenialsSpace - 10)>> + | <<link "Transfer in 10 menial slaves">> + <<set $menials -= 10>> + <<set $farmMenials += 10>> + <<goto "Farmyard">> + <</link>> + <</if>> + <<if $menials > 0>> + | <<link "Transfer in all free menial slaves">> + <<if $menials > $farmMenialsSpace - $farmMenials>> + <<set $menials -= $farmMenialsSpace - $farmMenials>> + <<set $farmMenials = $farmMenialsSpace>> + <<else>> + <<set $farmMenials += $menials>> + <<set $menials = 0>> + <</if>> + <<goto "Farmyard">> + <</link>> + <</if>> + <<if $farmMenials > 0>> + <<if $menials > 0>>|<</if>> + <<link "Transfer out all menial slaves">> + <<set $menials += $farmMenials>> + <<set $farmMenials = 0>> + <<goto "Farmyard">> + <</link>> + <</if>> +<<elseif $farmMenialsSpace <= 0>> + $farmyardNameCaps cannot currently house any menial slaves. +<<else>> + $farmyardNameCaps has all the menial slaves it can currently house assigned to it. + <<link "Transfer out all menial slaves">> + <<set $menials += $farmMenials>> + <<set $farmMenials = 0>> + <<goto "Farmyard">> <</link>> <</if>> -<<if $farmyardSlaves > 0>> - | <<link "''Bring a slave out of $farmyardName''">> - <<replace #ComingGoing>> - <<farmyardAssignmentFilter>> - <<set $Flag = 1>> - <<include "Slave Summary">> - <<resetAssignmentFilter>> - <</replace>> - <</link>> -<<else>> - <br><br>//$farmyardNameCaps is empty for the moment.<br>// +<<if $farmMenialsSpace > 0>> + <<silently>><<= MenialPopCap()>><</silently>> + <<set _menialPrice = menialSlaveCost()>> + <<set _bulkMax = $PopCap-$menials-$fuckdolls-$menialBioreactors>> + <<if $cash > _menialPrice>> + <<if _bulkMax > 0 || $menials+$fuckdolls+$menialBioreactors == 0>> + | [[Buy |Farmyard][$menials+=1,$menialSupplyFactor-=1,cashX(forceNeg(Math.trunc(_menialPrice, "farmyard")))]] + <<if $cash > (menialSlaveCost(10))*10>> + [[(x10)|Farmyard][$menials+=10,$menialSupplyFactor-=10,cashX(forceNeg(Math.trunc(menialSlaveCost(10))*10), "farmyard")]] + <</if>> + <<if $cash > (menialSlaveCost(100))*100>> + [[(x100)|Farmyard][$menials+=100,$menialSupplyFactor-=100,cashX(forceNeg(Math.trunc(menialSlaveCost(100))*100), "farmyard")]] + <</if>> + <<if $cash > (_menialPrice+1)*2>> + [[(max)|Farmyard][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice),0,_bulkMax)),cashX(forceNeg(Math.trunc(Math.clamp($cash/(_menialPrice),0,_bulkMax)*(_menialPrice))), "farmyard")]] + <</if>> + <</if>> + <</if>> <</if>> -<br><br> -<<assignmentFilter>> -<span id="ComingGoing"> - <<farmyardAssignmentFilter>> - <<set $Flag = 1>> - <<include "Slave Summary">> - <<resetAssignmentFilter>> -</span><br> +<<if $farmMenialsSpace < 500>> + <br> + There is enough room in $farmyardName to build housing, enough to give <<print $farmMenialsSpace+100>> menials a place to sleep and relax. + [[Build a unit|Farmyard][cashX(forceNeg(Math.trunc(1000*$upgradeMultiplierArcology), "farmyard")), $farmMenialsSpace += 100]] + //Costs @@.yellowgreen;<<print cashFormat(1000)>>@@ and will increase upkeep costs// +<</if>> /* closes menial subsection */ +</span> +<span id="rules"> +<<if $farmyardSlaves > 0>> +<br><br> + <<if $farmyardShows == 1 && (_CL > 0 || _HL > 0 || _FL > 0)>> + Slaves ''are'' putting on shows with animals. + [[End shows|Farmyard][$farmyardShows = 0, $farmyardBreeding = 0, $farmyardRestraints = 0]] + <<if $seeBestiality == 1>> + <br> + <<if $farmyardBreeding == 1>> + Slaves ''are'' being bred with animals. + [[End breeding|Farmyard][$farmyardBreeding = 0, $farmyardRestraints = 0]] + <br> + <<if $farmyardRestraints == 1>> + ''All of the slaves'' are being restrained. + [[Restrain only disobedient slaves|Farmyard][$farmyardRestraints = 0]] + <<else>> + ''Only disobedient slaves'' are being restrained. + [[Restrain all of the slaves|Farmyard][$farmyardRestraints = 1]] + <</if>> + <<else>> + Slaves ''are not'' being bred with animals. + [[Begin breeding|Farmyard][$farmyardBreeding = 1]] + <</if>> + <</if>> + <<else>> + Slaves ''are not'' putting on shows with animals. + <<if (_CL > 0 || _HL > 0 || _FL > 0)>> + [[Begin shows|Farmyard][$farmyardShows = 1]] + <<else>> + //You must purchase animals before you put on shows// + <</if>> + <</if>> +<</if>> <br><br> +</span> +<span id="upgrades"> <<if $farmyardUpgrade.pump == 0>> [[Upgrade the water pump|Farmyard][cashX(forceNeg(Math.trunc(1000*$upgradeMultiplierArcology)), "farmyard"), $farmyardUpgrade.pump = 1]] //Costs <<print cashFormat(Math.trunc(1000*$upgradeMultiplierArcology))>> and slightly increases crop yield.// @@ -166,7 +248,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and //Costs <<print cashFormat(Math.trunc(5000*$upgradeMultiplierArcology))>> and slightly decreases upkeep costs.// <br> <<else>> - $farmyardNameCaps is outfitted with an advanced hydroponics system, slightly reducing the amount of water your crops consume. + $farmyardNameCaps is outfitted with an advanced hydroponics system, slightly reducing the amount of water your crops consume and thus reducing upkeep. <br> <</if>> <<if $farmyardUpgrade.machinery == 0>> @@ -197,7 +279,9 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <</if>> <</if>> <</if>> +</span> +<span id="animalhousing"> <<if ($farmyardKennels == 0)>> <br> [[Add kennels|Farmyard][cashX(forceNeg(Math.trunc(5000*$upgradeMultiplierArcology)), "farmyard"), $farmyardKennels = 1]] @@ -205,7 +289,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <br> <<elseif ($farmyardKennels == 1)>> <br> - <<link "Kennels" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _CL == 0>>empty.<<else>>occupied by + <<link "Kennels" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _CL <= 0>>empty.<<else>>occupied by <<if _CL == 1>> <<print $canines>>. <<elseif _CL <= 3>> @@ -220,19 +304,29 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and [[Upgrade kennels|Farmyard][cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $farmyardKennels = 2]] //Costs <<print cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>> and allows you to keep exotic canines// <</if>> - <br> <<elseif ($farmyardKennels == 2)>> <br> - <<link "Large kennels" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _CL == 0>>empty.<<else>>occupied by + <<link "Large kennels" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _CL <= 0>>empty.<<else>>occupied by <<if _CL == 1>> <<print $canines>>. <<elseif _CL <= 3>> - a couple different breeds of canines. + a couple different + <<for _c = 0; _c < _CL; _c++>> /* FIXME: this does not work */ + <<if $canines[_c].species != "dog">> + <<set _onlyDogs = 0>> + <<else>> + <<set _onlyDogs = 1>> + <</if>> + <</for>> + <<if _onlyDogs == 0>> + types of canines. + <<else>> + breeds of dogs. + <</if>> <<else>> all kinds of canines. <</if>> <</if>> - <br> <</if>> <<if ($farmyardStable == 0)>> @@ -242,10 +336,10 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <br> <<elseif ($farmyardStable == 1)>> <br> - <<link "Stables" "FarmyardAnimals">><</link>> have been built at the far end of $farmyardName, and are currently <<if _HL == 0>>empty.<<else>>occupied by - <<if _CL == 1>> + <<link "Stables" "FarmyardAnimals">><</link>> have been built at the far end of $farmyardName, and are currently <<if _HL <= 0>>empty.<<else>>occupied by + <<if _HL == 1>> <<print $hooved>>. - <<elseif _CL <= 3>> + <<elseif _HL <= 3>> a couple different types of hooved animals. <<else>> all kinds of hooved animals. @@ -256,19 +350,17 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and [[Upgrade stables|Farmyard][cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $farmyardStable = 2]] //Costs <<print cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>> and allows you to keep exotic hooved animals// <</if>> - <br> <<elseif $farmyardStable == 2>> <br> - <<link "Large stables" "FarmyardAnimals">><</link>> have been build at the far end of $farmyardName, and are currently <<if _HL == 0>>empty.<<else>>occupied by - <<if _CL == 1>> + <<link "Large stables" "FarmyardAnimals">><</link>> have been build at the far end of $farmyardName, and are currently <<if _HL <= 0>>empty.<<else>>occupied by + <<if _HL == 1>> <<print $hooved>>. - <<elseif _CL <= 3>> + <<elseif _HL <= 3>> a couple different types of hooved animals. <<else>> all kinds of hooved animals. <</if>> <</if>> - <br> <</if>> <<if ($farmyardCages == 0)>> @@ -278,7 +370,7 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and <br> <<elseif ($farmyardCages == 1)>> <br> - <<link "Cages" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _FL == 0>>empty.<<else>>occupied by + <<link "Cages" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _FL <= 0>>empty.<<else>>occupied by <<if _FL == 1>> <<print $felines>>. <<elseif _FL <= 3>> @@ -292,26 +384,125 @@ $farmyardNameCaps is an oasis of growth in the midst of the jungle of steel and [[Upgrade cages|Farmyard][cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $farmyardCages = 2]] //Costs <<print cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>> and allows to keep exotic felines// <</if>> + <br> <<elseif ($farmyardCages == 2)>> <br> - <<link "Large cages" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _FL == 0>>empty.<<else>>occupied by + <<link "Large cages" "FarmyardAnimals">><</link>> have been built in one corner of $farmyardName, and are currently <<if _FL <= 0>>empty.<<else>>occupied by <<if _FL == 1>> <<print $felines>>. <<elseif _FL <= 3>> - a couple different breeds of felines. + a couple different + <<for _f = 0; _f < _FL; _f++>> /* FIXME: this does not work */ + <<if $felines[_f].species != "cat">> + <<set _onlyCats = 0>> + <<else>> + <<set _onlyCats = 1>> + <</if>> + <</for>> + <<if _onlyCats == 0>> + types of felines. + <<else>> + breeds of cats. + <</if>> <<else>> all kinds of felines. <</if>> <</if>> + <br> <</if>> <br> +<<if $farmyardKennels > 0 || $farmyardStable > 0 || $farmyardCages > 0>> + <<set _removeCost = Math.trunc(($farmyardKennels+$farmyardStable+$farmyardCages)*5000)*$upgradeMultiplierArcology>> + [[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, + labradorRetrievers: 0, + germanShepherds: 0, + goldenRetrievers: 0, + frenchBulldogs: 0, + bulldogs: 0, + beagles: 0, + poodles: 0, + rottweilers: 0, + yorkshireTerriers: 0, + siberianHuskies: 0, + horses: 0, + siameses: 0, + persians: 0, + maineCoons: 0, + ragdolls: 0, + bengals: 0, + abbysinians: 0, + birmans: 0, + orientalShorthairs: 0, + sphynxes: 0, + russianBlues: 0, + wolves: 0, + foxes: 0, + jackals: 0, + dingos: 0, + zebras: 0, + cougars: 0, + jaguars: 0, + pumas: 0, + lynx: 0, + leopards: 0, + lions: 0, + tigers: 0 + }, $canines = [], $hooved = [], $felines = []]] + //Will cost @@.yellowgreen;<<print cashFormat(_removeCost)>>@@// +<</if>> + <<if $cheatMode == 1>> <<if $farmyardLab > 0>> <br><br> - A <<link "research and development lab" "FarmyardLab">><</link>> has been built at one end of $farmyardName. @@.red;ALPHA CONTENT!@@ + A <<link "research and development lab" "FarmyardLab">><</link>> has been built at one end of $farmyardName. <</if>> <</if>> +</span> +<br><hr><br> +<<if $Farmer != 0>> +<<set $Flag = 2>> + <<include "Slave Summary">> +<<else>> + You do not have a slave serving as a Farmer. [[Appoint one|Farmer Select]] +<</if>> <br><br> + +<<if ($farmyard <= $farmyardSlaves)>> + ''$farmyardNameCaps is full and cannot hold any more slaves'' +<<elseif ($slaves.length > $farmyardSlaves)>> + <<link "''Send a slave to $farmyardName''">> + <<replace #ComingGoing>> + <<resetAssignmentFilter>> + <<set $Flag = 0>> + <<include "Slave Summary">> + <</replace>> + <</link>> +<</if>> + +<<if $farmyardSlaves > 0>> + | <<link "''Bring a slave out of $farmyardName''">> + <<replace #ComingGoing>> + <<farmyardAssignmentFilter>> + <<set $Flag = 1>> + <<include "Slave Summary">> + <<resetAssignmentFilter>> + <</replace>> + <</link>> +<<else>> + <br><br>//$farmyardNameCaps is empty for the moment.// +<</if>> + +<br> +<span id="ComingGoing"> + <<farmyardAssignmentFilter>> + <<set $Flag = 1>> + <<include "Slave Summary">> + <<resetAssignmentFilter>> +</span> + <br><br>Rename $farmyardName: <<textbox "$farmyardName" $farmyardName "Farmyard">> //Use a noun or similar short phrase// diff --git a/src/facilities/farmyard/farmyardAnimals.tw b/src/facilities/farmyard/farmyardAnimals.tw index 18e327357b7d2e31be8e78f27c845e14c87776f0..4fb491daa66965e82c2015eb59f1fe5eff11bf1a 100644 --- a/src/facilities/farmyard/farmyardAnimals.tw +++ b/src/facilities/farmyard/farmyardAnimals.tw @@ -1,8 +1,5 @@ :: FarmyardAnimals [nobr] -/* TODO: add prices */ -/* TODO: these prices will definitely need to be adjusted */ - <<set $nextButton = "Back", $nextLink = "Farmyard", $returnTo = "FarmyardAnimals", $showEncyclopedia = 1, $encyclopedia = "Farmyard">> <<if $farmyardKennels > 0 || $farmyardStable > 0 || $farmyardCages > 0>> @@ -12,13 +9,14 @@ <<if $farmyardKennels > 0>> <br> - Dogs: - <br><br> - <<if $animalsBought.labradorRetrievers == 0>> - <<link "Purchase Labrador Retrievers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.labradorRetrievers = 1, $animalsBought.canines += 1, $canines.push("Labrador Retrievers")>><</link>> + __Dogs__ + <br>//Cost <<print cashFormat(20000)>> each// /* TODO: this number is mostly a placeholder, will need adjusting */ + <br> + <<if $animalsBought.labradorRetrievers <= 0>> + <<link "Purchase dogs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.labradorRetrievers = 1, $animalsBought.canines += 1, $canines.push("Labrador Retrievers")>><</link>> <br> - <<elseif $animalsBought.labradorRetrievers == 1>> - Labrador Retrievers + <<else>> + Dogs <<if $activeCanine.breed != "Labrador Retriever">> [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Labrador Retriever", type: "canine", dickSize: "big", ballType: "dog"}]] <<else>> @@ -26,277 +24,67 @@ <</if>> <br> <</if>> - <<if $animalsBought.germanShepherds == 0>> - <<link "Purchase German Shepherds" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.germanShepherds = 1, $animalsBought.canines += 1, $canines.push("German Shepherds")>><</link>> - <br> - <<elseif $animalsBought.germanShepherds == 1>> - German Shepherds - <<if $activeCanine.breed != "German Shepherd">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "German Shepherd", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.goldenRetrievers == 0>> - <<link "Purchase Golden Retrievers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.goldenRetrievers = 1, $animalsBought.canines += 1, $canines.push("Golden Retrievers")>><</link>> - <br> - <<elseif $animalsBought.goldenRetrievers == 1>> - Golden Retrievers - <<if $activeCanine.breed != "Golden Retriever">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Golden Retriever", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.frenchBulldogs == 0>> - <<link "Purchase French Bulldogs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.frenchBulldogs = 1, $animalsBought.canines += 1, $canines.push("French Bulldogs")>><</link>> - <br> - <<elseif $animalsBought.frenchBulldogs == 1>> - French Bulldogs - <<if $activeCanine.breed != "French Bulldog">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "French Bulldog", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.bulldogs == 0>> - <<link "Purchase Bulldogs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.bulldogs = 1, $animalsBought.canines += 1, $canines.push("Bulldogs")>><</link>> - <br> - <<elseif $animalsBought.bulldogs == 1>> - Bulldogs - <<if $activeCanine.breed != "Bulldog">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Bulldog", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.beagles == 0>> - <<link "Purchase Beagles" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.beagles = 1, $animalsBought.canines += 1, $canines.push("Beagles")>><</link>> - <br> - <<elseif $animalsBought.beagles == 1>> - Beagles - <<if $activeCanine.breed != "Beagle">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Beagle", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.poodles == 0>> - <<link "Purchase Poodles" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.poodles = 1, $animalsBought.canines += 1, $canines.push("Poodles")>><</link>> - <br> - <<elseif $animalsBought.poodles == 1>> - Poodles - <<if $activeCanine.breed != "Poodle">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Poodle", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.rottweilers == 0>> - <<link "Purchase Rottweilers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.rottweilers = 1, $animalsBought.canines += 1, $canines.push("Rottweilers")>><</link>> - <br> - <<elseif $animalsBought.rottweilers == 1>> - Rottweilers - <<if $activeCanine.breed != "Rottweiler">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Rottweiler", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.yorkshireTerriers == 0>> - <<link "Purchase Yorkshire Terriers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.yorkshireTerriers = 1, $animalsBought.canines += 1, $canines.push("Yorkshire Terriers")>><</link>> - <br> - <<elseif $animalsBought.yorkshireTerriers == 1>> - Yorkshire Terriers - <<if $activeCanine.breed != "Yorkshire Terrier">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Yorkshire Terrier", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.siberianHuskies == 0>> - <<link "Purchase Siberian Huskies" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.siberianHuskies = 1, $animalsBought.canines += 1, $canines.push("Siberian Huskies")>><</link>> - <br> - <<elseif $animalsBought.siberianHuskies == 1>> - Siberian Huskies - <<if $activeCanine.breed != "Siberian Husky">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Siberian Husky", type: "canine", dickSize: "big", ballType: "dog"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> <</if>> - <<if $farmyardStable > 0>> <br> - Hooved Animals: - <br><br> - <<if $animalsBought.horses == 0>> + __Hooved Animals__ + <br>//Cost <<print cashFormat(20000)>> each// /* TODO: this number is mostly a placeholder, will need adjusting */ + <br> + <<if $animalsBought.horses <= 0>> <<link "Purchase horses" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.horses = 1, $animalsBought.hooved += 1, $hooved.push("horses")>><</link>> - <<elseif $animalsBought.horses == 1>> + <br> + <<else>> Horses <<if $activeHooved.species != "horse">> [[Set as active hooved|FarmyardAnimals][$activeHooved = {species: "horse", speciesCap: "Horse", speciesPlural: "horses", type: "hooved", dickSize: "huge", ballType: "horse"}]] <<else>> //Set as active hooved// <</if>> - <</if>> - <br> -<</if>> - - -<<if $farmyardCages > 0>> - <br> - Cats: - <br><br> - <<if $animalsBought.siameses == 0>> - <<link "Purchase Siamese cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.siameses = 1, $animalsBought.felines += 1, $felines.push("Siamese cats")>><</link>> - <br> - <<elseif $animalsBought.siameses == 1>> - Siamese cats - <<if $activeFeline.breed != "Siamese">> - [[Set as active canine|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Siamese", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.persians == 0>> - <<link "Purchase Persian cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.persians = 1, $animalsBought.felines += 1, $felines.push("Persian cats")>><</link>> - <br> - <<elseif $animalsBought.persians == 1>> - Persian cats - <<if $activeFeline.breed != "Persian">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Persian", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.maineCoons == 0>> - <<link "Purchase Maine Coon cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.maineCoons = 1, $animalsBought.felines += 1, $felines.push("Maine Coon cats")>><</link>> - <br> - <<elseif $animalsBought.maineCoons == 1>> - Maine Coon cats - <<if $activeFeline.breed != "Maine Coon">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Maine Coon", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.ragdolls == 0>> - <<link "Purchase Ragdoll cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.ragdolls = 1, $animalsBought.felines += 1, $felines.push("Ragdoll cats")>><</link>> - <br> - <<elseif $animalsBought.ragdolls == 1>> - Ragdoll cats - <<if $activeFeline.breed != "Ragdoll">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Ragdoll", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.bengals == 0>> - <<link "Purchase Bengal cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.bengals = 1, $animalsBought.felines += 1, $felines.push("Bengal cats")>><</link>> - <br> - <<elseif $animalsBought.bengals == 1>> - Bengal cats - <<if $activeFeline.breed != "Bengal">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Bengal", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.abbysinians == 0>> - <<link "Purchase Abbysinian cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.abbysinians = 1, $animalsBought.felines += 1, $felines.push("Abbysinian cats")>><</link>> - <br> - <<elseif $animalsBought.abbysinians == 1>> - Abbysinian cats - <<if $activeFeline.breed != "Abbysinian">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Abbysinian", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// - <</if>> <br> <</if>> - <<if $animalsBought.birmans == 0>> - <<link "Purchase Birman cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.birmans = 1, $animalsBought.felines += 1, $felines.push("Birman cats")>><</link>> + <<if $animalsBought.bulls <= 0>> + <<link "Purchase bulls" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.bulls = 1, $animalsBought.hooved += 1, $hooved.push("bulls")>><</link>> <br> - <<elseif $animalsBought.birmans == 1>> - Birman cats - <<if $activeFeline.breed != "Birman">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Birman", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + Bulls + <<if $activeHooved.species != "bull">> + [[Set as active hooved|FarmyardAnimals][$activeHooved = {species: "bull", speciesCap: "Bull", speciesPlural: "bulls", type: "hooved", dickSize: "huge", ballType: "horse"}]] <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.orientalShorthairs == 0>> - <<link "Purchase Oriental Shorthair cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.orientalShorthairs = 1, $animalsBought.felines += 1, $felines.push("Oriental Shorthair cats")>><</link>> - <br> - <<elseif $animalsBought.orientalShorthairs == 1>> - Oriental Shorthair cats - <<if $activeFeline.breed != "Oriental Shorthair">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Oriental Shorthair", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.sphynxes == 0>> - <<link "Purchase Sphynx cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.sphynxes = 1, $animalsBought.felines += 1, $felines.push("Sphynx cats")>><</link>> - <br> - <<elseif $animalsBought.sphynxes == 1>> - Sphynx cats - <<if $activeFeline.breed != "Sphynx">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Sphynx", type: "feline", dickSize: "small", ballType: "cat"}]] - <<else>> - //Set as active feline// + //Set as active hooved// <</if>> <br> <</if>> - <<if $animalsBought.russianBlues == 0>> - <<link "Purchase Russian Blue cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.russianBlues = 1, $animalsBought.felines += 1, $felines.push("Russian Blue cats")>><</link>> + <<if $animalsBought.pigs <= 0>> + <<link "Purchase pigs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.pigs = 1, $animalsBought.hooved += 1, $hooved.push("pigs")>><</link>> <br> - <<elseif $animalsBought.russianBlues == 1>> - Russian Blue cats - <<if $activeFeline.breed != "Russian Blue">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Russian Blue", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + Pigs + <<if $activeHooved.species != "pig">> + [[Set as active hooved|FarmyardAnimals][$activeHooved = {species: "pig", speciesCap: "Pig", speciesPlural: "pigs", type: "hooved", dickSize: "large", ballType: "horse"}]] <<else>> - //Set as active feline// + //Set as active hooved// <</if>> <br> <</if>> <</if>> <</if>> - +<br> <<if $farmyardKennels > 1 || $farmyardStable > 1 || $farmyardCages > 1>> <br> ''Exotic Animals'' <hr> - <<if $farmyardKennels > 1>> <br> - Canines: - <br><br> - <<if $animalsBought.wolves == 0>> + __Canines__ + <br>//Cost <<print cashFormat(20000)>> each// + <br> + <<if $animalsBought.wolves <= 0>> <<link "Purchase wolves" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.wolves = 1, $animalsBought.canines += 1, $canines.push("wolves")>><</link>> <br> - <<elseif $animalsBought.wolves == 1>> + <<else>> /*A couple of adult wolves are lounging about in their kennels.(OLD)*/ Wolves <<if $activeCanine.species != "wolf">> @@ -306,126 +94,17 @@ <</if>> <br> <</if>> - <<if $animalsBought.foxes == 0>> - <<link "Purchase foxes" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.foxes = 1, $animalsBought.canines += 1, $canines.push("foxes")>><</link>> - <br> - <<elseif $animalsBought.foxes == 1>> - /*Red foxes play in one corner of their kennels, chasing one another.(OLD)*/ - Foxes - <<if $activeCanine.species != "fox">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "fox", speciesCap: "Fox", speciesPlural: "foxes", type: "canine", dickSize: "large", ballType: "fox"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.jackals == 0>> - <<link "Purchase jackals" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.jackals = 1, $animalsBought.canines += 1, $canines.push("jackals")>><</link>> - <br> - <<elseif $animalsBought.jackals == 1>> - /*A group of male jackals are fighting over a potential mate, causing quite a ruckus.(OLD)*/ - Jackals - <<if $activeCanine.species != "jackal">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "jackal", speciesCap: "Jackal", speciesPlural: "jackals", type: "canine", dickSize: "large", ballType: "jackal"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> - <<if $animalsBought.dingos == 0>> - <<link "Purchase dingos" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.dingos = 1, $animalsBought.canines += 1, $canines.push("dingos")>><</link>> - <br> - <<elseif $animalsBought.dingos == 1>> - /*The dingos are eating their meal, growling at each other when one gets to close to another's food.(OLD)*/ - Dingos - <<if $activeCanine.species != "dingo">> - [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dingo", speciesCap: "Dingo", speciesPlural: "dingos", type: "canine", dickSize: "large", ballType: "dingo"}]] - <<else>> - //Set as active canine// - <</if>> - <br> - <</if>> -<</if>> - - -<<if $farmyardStable > 1>> - <br> - Hooved Animals: - <br><br> - <<if $animalsBought.zebras == 0>> - <<link "Purchase zebras" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.zebras = 1, $animalsBought.hooved += 1, $hooved.push("zebras")>><</link>> - <<elseif $animalsBought.zebras == 1>> - Zebras - <<if $activeHooved.species != "zebra">> - [[Set as active hooved|FarmyardAnimals][$activeHooved = {species: "zebra", speciesCap: "Zebra", speciesPlural: "zebras", type: "hooved", dickSize: "huge", ballType: "zebra"}]] - <<else>> - //Set as active hooved// - <</if>> - <</if>> - <br> <</if>> - <<if $farmyardCages > 1>> <br> - Felines - <br><br> - <<if $animalsBought.cougars == 0>> - <<link "Purchase cougars" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.cougars = 1, $animalsBought.felines += 1, $felines.push("cougars")>><</link>> - <br> - <<elseif $animalsBought.cougars == 1>> - /*The cougars are sleeping, their lean bodies scattered around under trees. (OLD)*/ - Cougars - <<if $activeFeline.species != "cougar">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cougar", speciesCap: "Cougar", speciesPlural: "cougars", type: "feline", dickSize: "large", ballType: "cougar"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.jaguars == 0>> - <<link "Purchase jaguars" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.jaguars = 1, $animalsBought.felines += 1, $felines.push("jaguars")>><</link>> - <br> - <<elseif $animalsBought.jaguars == 1>> - /*You can see a few jaguars laying around in the trees in their enclosure. (OLD)*/ - Jaguars - <<if $activeFeline.species != "jaguar">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "jaguar", speciesCap: "Jaguar", speciesPlural: "jaguars", type: "feline", dickSize: "large", ballType: "jaguar"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.lynx == 0>> - <<link "Purchase lynxs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.lynx = 1, $animalsBought.felines += 1, $felines.push("lynx")>><</link>> - <br> - <<elseif $animalsBought.lynx == 1>> - /*The lynxes are playfully running around their enclosure. (OLD)*/ - Lynx - <<if $activeFeline.species != "lynx">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "lynx", speciesCap: "Lynx", speciesPlural: "lynx", type: "feline", dickSize: "large", ballType: "lynx"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.leopards == 0>> - <<link "Purchase leopards" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.leopards = 1, $animalsBought.felines += 1, $felines.push("leopards")>><</link>> - <br> - <<elseif $animalsBought.leopards == 1>> - /*The leopards are lazing about in the trees in their enclosure. (OLD)*/ - Leopards - <<if $activeFeline.species != "leopard">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "leopard", speciesCap: "Leopard", speciesPlural: "leopards", type: "feline", dickSize: "large", ballType: "leopard"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> - <<if $animalsBought.lions == 0>> + __Felines__ + <br>//Cost <<print cashFormat(30000)>> each// /* TODO: this number is mostly a placeholder, will need adjusting */ + <br> + <<if $animalsBought.lions <= 0>> <<link "Purchase lions" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.lions = 1, $animalsBought.felines += 1, $felines.push("lions")>><</link>> <br> - <<elseif $animalsBought.lions == 1>> + <<else>> /*Most of the lions are sunning themselves. (OLD)*/ Lions <<if $activeFeline.species != "lion">> @@ -435,18 +114,5 @@ <</if>> <br> <</if>> - <<if $animalsBought.tigers == 0>> - <<link "Purchase tigers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.tigers = 1, $animalsBought.felines += 1, $felines.push("tigers")>><</link>> - <br> - <<elseif $animalsBought.tigers == 1>> - /*Some of the tigers are swimming, and the ones that aren't are lazing about. (OLD)*/ - Tigers - <<if $activeFeline.species != "tiger">> - [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "tiger", speciesCap: "Tiger", speciesPlural: "tigers", type: "feline", dickSize: "large", ballType: "tiger"}]] - <<else>> - //Set as active feline// - <</if>> - <br> - <</if>> <</if>> <</if>> diff --git a/src/facilities/farmyard/farmyardReport.tw b/src/facilities/farmyard/farmyardReport.tw index 36818f74e37387eaccd144c70e884a97e7d158f7..cea2e129407c815f373af384b51dc7e8d09a932e 100644 --- a/src/facilities/farmyard/farmyardReport.tw +++ b/src/facilities/farmyard/farmyardReport.tw @@ -1,50 +1,41 @@ :: Farmyard Report [nobr] -/* TODO: all of this */ - -//Currently WIP// - -<span id="dairystats"> +<span id="farmyardstats"> </span> -<<set _MMWorkout = 0>> - -<<SlaveSort $DairyiIDs>> -<<set _DL = $DairyiIDs.length, $dairySlaves = _DL, _SL = $slaves.length, $bioreactorPerfectedID = 0, $legendaryBallsID = 0, $legendaryCowID = 0, $milkmaidDevotionBonus = 1, $milkmaidHealthBonus = 0, $milkmaidTrustBonus = 1, $milkmaidDevotionThreshold = 45, $milkmaidTrustThreshold = 35, _anusesStretched = 0, _birthers = 0, _births = 0, _cumWeek = 0, _femCumWeek = 0, _FLsFetish = 0, _milkWeek = 0, _balltacular = 0, _boobtacular = 0, _careerForgotten = 0, _chemMinor = 0, _chemSevere = 0, _desterilized = 0, _hatefilled = 0, _horrified = 0, $intelligenceLost = 0, _mindbroken = 0, _profits = 0, _skillsLost = 0, _stupidified = 0, _vaginasStretched = 0>> +<<SlaveSort $FarmyardiIDs>> +<<set _DL = $FarmyardiIDs.length, $farmyardSlaves = _DL, _SL = $slaves.length, $FarmerCashBonus = 0, _FLsFetish = 0, _profits = 0, _foodWeek = 0>> +<<set $FarmerDevotionBonus = 1, $FarmerDevotionThreshold = 45, $FarmerTrustBonus = 1, $FarmerTrustThreshold = 35, $FarmerHealthBonus = 0>> +/*<<set $legendaryWombID = 0>> TODO: will the Farmyard have a lengendary womb system? */ <!-- Statistics gathering --> -<<set $facility = $facility || {}, $facility.dairy = initFacilityStatistics($facility.dairy)>> +<<set $facility = $facility || {}, $facility.farmyard = initFacilityStatistics($facility.farmyard)>> -<<if ($Milkmaid != 0)>> - <<set _FLs = $slaveIndices[$Milkmaid.ID]>> +<<if ($Farmer != 0)>> + <<set _FLs = $slaveIndices[$Farmer.ID]>> - <<if $slaves[_FLs].health < 90>> - <<set $slaves[_FLs].curatives = 2>> - <<else>> - <<set $slaves[_FLs].curatives = 0>> - <</if>> - <<if ($slaves[_FLs].diet != "healthy")>> - <<set ($slaves[_FLs].diet = "healthy")>> - <</if>> - <<if $slaves[_FLs].devotion <= 60>> + <<if ($slaves[_FLs].health < -80)>> + <<set $slaves[_FLs].health += 20>> + <<elseif $slaves[_FLs].health < -40>> + <<set $slaves[_FLs].health += 15>> + <<elseif $slaves[_FLs].health < 0>> + <<set $slaves[_FLs].health += 10>> + <<elseif $slaves[_FLs].health < 90>> + <<set $slaves[_FLs].health += 7>> + <</if>> + <<if $slaves[_FLs].devotion <= 45>> <<set $slaves[_FLs].devotion += 5>> <</if>> - <<if $slaves[_FLs].trust < 60>> + <<if $slaves[_FLs].trust < 45>> <<set $slaves[_FLs].trust += 5>> <</if>> - <<if ($slaves[_FLs].oralSkill > 0)>> - <<set $milkmaidDevotionBonus += Math.trunc($slaves[_FLs].oralSkill/30)>> - <</if>> - <<if ($slaves[_FLs].health >= 80)>> - <<set $milkmaidHealthBonus++>> - <</if>> <<if $slaves[_FLs].livingRules != "luxurious">> <<set $slaves[_FLs].livingRules = "luxurious">> <</if>> <<if $slaves[_FLs].fetishStrength <= 95>> - <<if $slaves[_FLs].fetish != "boobs">> + <<if $slaves[_FLs].fetish != "dom">> <<if fetishChangeChance($slaves[_FLs]) > random(0,100)>> - <<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1, $slaves[_FLs].fetish = "boobs">> + <<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1, $slaves[_FLs].fetish = "dom">> <</if>> <<elseif $slaves[_FLs].fetishKnown == 0>> <<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1>> @@ -52,186 +43,124 @@ <<set _FLsFetish = 2, $slaves[_FLs].fetishStrength += 4>> <</if>> <</if>> - <<run getSlaveStatisticData($Milkmaid, $facility.dairy)>> - <<set $Milkmaid = $slaves[_FLs], $i = _FLs>> - <<= SlaveFullName($Milkmaid)>> is serving as your Milkmaid. - <<if $Milkmaid.relationship == -3 && $Milkmaid.devotion > 50>> - <<set $milkmaidDevotionBonus += 2, $milkmaidTrustBonus += 2>> - $He tries $his best to be your perfect farmwife. - <</if>> - <<if (_DL > 0) && ($milkmaidImpregnates == 1) && (canPenetrate($Milkmaid)) && $Milkmaid.pubertyXY == 1>> - <<set _milkmaidImpregnated = 0>> - <<for _dI = 0; _dI < _DL; _dI++>> - <<set $i = $slaveIndices[$DairyiIDs[_dI]]>> - <<if (canImpreg($slaves[$i], $Milkmaid))>> - <<set $slaves[$i].preg = 1, $slaves[$i].pregSource = $Milkmaid.ID, $slaves[$i].pregKnown = 1, $slaves[$i].pregWeek = 1, _milkmaidImpregnated++, $slaves[$i].vaginalCount += 10, $vaginalTotal += 10>> - <<set $slaves[$i].pregType = setPregType($slaves[$i])>> - <<set WombImpregnate($slaves[$i], $slaves[$i].pregType, $Milkmaid.ID, 1)>> - <</if>> - <</for>> - <<if _milkmaidImpregnated > 0>> - It's $his responsibility to keep $his charges pregnant, and $he constantly - <<if _milkmaidImpregnated == 1>> - breeds the one fertile cow. - <<else>> - fills the _milkmaidImpregnated cows' cunts with $his cum. - <</if>> - <<if $Milkmaid.career == "a breeding bull">> - $He was conditioned to fill empty wombs, so $he takes a @@.hotpink;deep pleasure@@ in $his job. - <<set $slaves[_FLs].devotion++>> - <</if>> - <<set _Tmult = (_milkmaidImpregnated * 10), $slaves[_FLs].penetrativeCount += _Tmult, $Milkmaid.penetrativeCount += _Tmult, $penetrativeTotal += _Tmult>> - <<set $slaves[_FLs].need = 0>> - <</if>> + /% Make sure we have registered living expenses as for any other slave %/ + <<run getSlaveStatisticData($Farmer, $facility.farmyard)>> + <<set $Farmer = $slaves[_FLs]>> + <<setLocalPronouns $Farmer>> + <<= SlaveFullName($Farmer)>> is serving as the Farmer. + <<if $Farmer.relationship == -3 && $Farmer.devotion > 50>> + As your loving wife, $he does $his best to ensure $farmyardName runs smoothly. + <<set $FarmerCashBonus += 0.25>> <</if>> <<if (_FLsFetish == 1)>> - In $his line of work, $he touches more breasts than even you do. $He lives in an atmosphere of quivering, heaving, milky breastflesh; of girls who shudder and moan when $he touches their creamy nipples. $He has @@.lightcoral;become more of a breast girl.@@ + $He isn't above sampling the merchandise $himself; before long it's obvious to $his girls that $he @@.lightcoral;really likes fucking them.@@ <<elseif (_FLsFetish == 2)>> - It's a hard life, pulling teats and washing cows, but it does @@.lightsalmon;make $him more of a breast fetishist.@@ - <</if>> - <<if ($Milkmaid.muscles > 30)>> - <<set $milkmaidHealthBonus++>> - $His muscles help $his handle the fattest or most reluctant cow. - <</if>> - <<if $dairyRestraintsSetting != 2>> /* how much effort the MM must take to force a slave into a stall */ - <<for _dI = 0; _dI < _DL; _dI++>> - <<set $i = $slaveIndices[$DairyiIDs[_dI]]>> - <<if $slaves[$i].devotion <= 20>> - <<set _MMWorkout++>> - <</if>> - <<if $slaves[$i].trust < 20>> - <<set _MMWorkout++>> - <</if>> - <<if $slaves[$i].muscles >= 30>> - <<set _MMWorkout++>> - <</if>> - <<if $slaves[$i].weight >= 70>> - <<set _MMWorkout++>> - <</if>> - <<if $slaves[$i].weight >= 160>> - <<set _MMWorkout++>> - <</if>> - <<if $slaves[$i].boobs >= 20000>> - <<set _MMWorkout++>> - <</if>> - <<if $slaves[$i].balls >= 30>> - <<set _MMWorkout++>> - <</if>> - <<if $slaves[$i].belly >= 5000>> - <<set _MMWorkout++>> - <</if>> - <<if !canWalk($slaves[$i])>> /* big bonus if they can't move themselves and are fat as cows */ - <<if $slaves[$i].weight >= 70>> - <<set _MMWorkout += 2>> - <</if>> - <<if $slaves[$i].weight >= 160>> - <<set _MMWorkout += 2>> - <</if>> - <<if $slaves[$i].boobs >= 20000>> - <<set _MMWorkout += 2>> - <</if>> - <<if $slaves[$i].balls >= 30>> - <<set _MMWorkout += 2>> - <</if>> - <<if $slaves[$i].belly >= 5000>> - <<set _MMWorkout += 2>> - <</if>> - <</if>> - <</for>> - <</if>> - <<if (_MMWorkout > random(1,30)) && $Milkmaid.muscles < 60>> - Constantly having to wrestle unruly or aiding heavy cows into their stalls forces $him to @@.lime;build muscle.@@ - <<set $slaves[_FLs].muscles++>> - <</if>> - <<if ($Milkmaid.oralSkill > 30)>> - $His skilled tongue helps $him keep $his girls happy. - <</if>> - <<if ($Milkmaid.oralSkill < 90)>> - <<set $skillIncrease = 3>> - <<OralSkillIncrease $slaves[_FLs]>> - <</if>> - <<if ($Milkmaid.sexualQuirk == "caring")>> - <<set $milkmaidTrustBonus++>> - $He's very caring, and does $his best to get the cows to trust $him. - <</if>> - <<if ($Milkmaid.behavioralQuirk == "funny")>> - <<set $milkmaidTrustBonus++>> - $He's funny, and does $his best to get the cows to trust $him by keeping them laughing. - <</if>> - <<if setup.milkmaidCareers.includes($Milkmaid.career)>> - <<set $milkmaidHealthBonus++>> - $He has career experience dealing with milk animals. - <<elseif $Milkmaid.skillFA >= $masteredXP>> - <<set $milkmaidHealthBonus++>> - $He has experience dealing with milk animals from working for you. + $He's careful that all of the farmhands under $his supervision are all ready to work every morning, and $he @@.lightsalmon;becomes more dominant.@@ + <</if>> + <<if ($Farmer.farmhandSkill <= 10)>> + Though $Farmer.slaveName does $his best to manage the farmyard, with $his lack of skill $he can do little. + <<elseif ($Farmer.farmhandSkill <= 30)>> + $Farmer.slaveName's basic skills marginally @@.yellowgreen;improve@@ business at $farmyardName. + <<set $FarmerCashBonus += 0.05>> + <<elseif ($Farmer.farmhandSkill <= 60)>> + $Farmer.slaveName's skills @@.yellowgreen;improve@@ business at $farmyardName. + <<set $FarmerCashBonus += 0.1>> + <<elseif ($Farmer.farmhandSkill < 100)>> + $Farmer.slaveName's skills greatly @@.yellowgreen;improve@@ business at $farmyardName. + <<set $FarmerCashBonus += 0.15>> + <<else>> + $Farmer.slaveName's mastery immensely @@.yellowgreen;improves@@ business at $farmyardName. + <<set $FarmerCashBonus += 0.20>> + <</if>> + <<if ($Farmer.actualAge > 35)>> + $His age and experience also contribute. + <<set $FarmerCashBonus += 0.05>> + <<elseif $AgePenalty == 0>> + <<set $FarmerCashBonus += 0.05>> + <</if>> + <<if setup.farmerCareers.includes($Farmer.career)>> + $He has experience from $his life before $he was a slave that helps $him in the difficult life of managing animals and property. + <<set $FarmerCashBonus += 0.05>> + <<elseif $Farmer.skillFA >= $masteredXP>> + $He has experience from working for you that helps $him in the difficult life of managing animals and property. + <<set $FarmerCashBonus += 0.05>> <<else>> - <<set $slaves[_FLs].skillFA += random(1,Math.ceil(($Milkmaid.intelligence+$Milkmaid.intelligenceImplant)/15) + 8)>> + <<set $slaves[_FLs].skillFA += random(1,Math.ceil(($Farmer.intelligence+$Farmer.intelligenceImplant)/15) + 8)>> <</if>> - <<if ($dairyStimulatorsSetting < 2) && ($Milkmaid.dick > 4) && (canPenetrate($Milkmaid))>> - <<for _dI = 0; _dI < _DL; _dI++>> - <<set $i = $slaveIndices[$DairyiIDs[_dI]]>> - <<if ($slaves[$i].balls > 0) && ($slaves[$i].prostate > 0)>> - $He uses $his turgid cock to give prostate stimulation to slaves that need help ejaculating. - <<set $slaves[_FLs].need -= 50>> - <<break>> - <</if>> - <</for>> + <<if ($Farmer.intelligence+$Farmer.intelligenceImplant > 15)>> + $He is a clever manager. + <<set $FarmerCashBonus += 0.05*Math.floor(($Farmer.intelligence+$Farmer.intelligenceImplant)/32)>> + <</if>> + <<if ($Farmer.dick > 2) && (canPenetrate($Farmer))>> + $His turgid dick helps $him manage $his workers. + <<set $FarmerCashBonus += 0.05>> <</if>> - <<set $milkmaidDevotionThreshold += (5*$milkmaidDevotionBonus), $milkmaidTrustThreshold += (5*$milkmaidTrustBonus)>> + <<for _dI = 0; _dI < _DL; _dI++>> - <<set $i = $slaveIndices[$DairyiIDs[_dI]]>> - <<if $Milkmaid.rivalryTarget == $slaves[$i].ID>> - $He either neglects or harasses $his <<print rivalryTerm($Milkmaid)>>, $slaves[$i].slaveName, making sure $he is unhappy and uncomfortable. - <<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>> + <<set $i = $slaveIndices[$FarmyardiIDs[_dI]]>> + <<if $Farmer.rivalryTarget == $slaves[$i].ID>> + $He forces $his <<print rivalryTerm($Farmer)>> to service all the slaves in the farmyard. + <<set $slaves[$i].devotion -= 2, $slaves[$i].trust -= 2>> + <<if canDoVaginal($slaves[$i])>> + <<set $slaves[$i].vaginalCount += 10, $vaginalTotal += 10>> + <<if $slaves[$i].publicCount>><<set $slaves[$i].publicCount += 10>><<else>><<set $slaves[$i].publicCount = 10>><</if>> + <</if>> + <<if canDoAnal($slaves[$i])>> + <<set $slaves[$i].analCount += 10, $analTotal += 10>> + <<if $slaves[$i].publicCount>><<set $slaves[$i].publicCount += 10>><<else>><<set $slaves[$i].publicCount = 10>><</if>> + <</if>> + <<set $slaves[$i].oralCount += 10, $oralTotal += 10>> + <<if $slaves[$i].publicCount>><<set $slaves[$i].publicCount += 10>><<else>><<set $slaves[$i].publicCount = 10>><</if>> <<if random(1,100) > 65>> - <<set $Milkmaid.rivalry++, $slaves[_FLs].rivalry++, $slaves[$i].rivalry++>> - <</if>> - <<elseif $Milkmaid.relationshipTarget == $slaves[$i].ID>> - $He dotes over $his <<print relationshipTerm($Milkmaid)>>, $slaves[$i].slaveName, making sure $he is happy and comfortable. - <<set $slaves[$i].devotion++, $slaves[$i].trust++>> - <<elseif $familyTesting == 1 && totalRelatives($slaves[$i]) > 0>> - $He pays special attention to $his <<print relativeTerm($Milkmaid.ID,$slaves[$i].ID)>>, $slaves[$i].slaveName, making sure $he is well kept and happy. - <<set $slaves[$i].trust++>> - <<elseif $Milkmaid.relationTarget == $slaves[$i].ID && $familyTesting == 0>> - $He pays special attention to $his $slaves[$i].relation, $slaves[$i].slaveName, making sure $he is well kept and happy. - <<set $slaves[$i].trust++>> + <<set $slaves[_FLs].rivalry++, $Farmer.rivalry++, $slaves[$i].rivalry++>> + <</if>> + <<elseif $Farmer.relationshipTarget == $slaves[$i].ID>> + <<setLocalPronouns $slaves[$i] 2>> + $He dotes over $his <<print relationshipTerm($Farmer)>>, $slaves[$i].slaveName, making sure _he2 isn't worked too hard, but unfortunately manages to get in the way of _his2 work. + <<set $slaves[$i].devotion++, $FarmerCashBonus -= 0.05>> + <<elseif $familyTesting == 1 && areRelated($Farmer, $slaves[$i]) > 0>> + <<setLocalPronouns $slaves[$i] 2>> + $He pays special attention to $his <<print relativeTerm($Farmer.ID,$slaves[$i].ID)>>, $slaves[$i].slaveName, making sure _he2 is treated well and showing off _his2 skills. /* TODO: does this need rewriting? */ + <<set $slaves[$i].trust++, $FarmerCashBonus += 0.05>> + <<elseif $Farmer.relationTarget == $slaves[$i].ID && $familyTesting == 0>> + <<setLocalPronouns $slaves[$i] 2>> + $He pays special attention to $his $slaves[$i].relation, $slaves[$i].slaveName, making sure _he2 is treated well and showing off _his2 skills. /* TODO: does this need rewriting? */ + <<set $slaves[$i].trust++, $FarmerCashBonus += 0.05>> <</if>> - <<if $slaves[$i].prestigeDesc == "$He is remembered for winning best in show as a dairy cow.">> - <<if ($slaves[$i].lactation > 0) && (($slaves[$i].boobs-$slaves[$i].boobsImplant) > 6000)>> - $He spends extra time with $slaves[$i].slaveName, the well-known cow. $He is fascinated by $slaves[$i].slaveName's massive $slaves[$i].boobs cc breasts and spends extra time massaging and kneading them to maximize production. - <<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>> - <<else>> - $He is disappointed that the well-known cow $slaves[$i].slaveName<<if ($slaves[$i].lactation == 0)>> isn't producing milk anymore. <<else>>'s breasts have shrunken considerably from their heyday.<</if>> - <</if>> + <</for>> + + <<set _oldCash = $cash>> + <<if (_DL < 5)>> + /* TODO: will we need this block? + <<set $slavesGettingHelp = 0>> + <<if $universalRulesFacilityWork == 1>> + <<for $i = 0; $i < _SL; $i++>> + <<if ($slaves[$i].assignment == "farmhand")>> + <<set $slavesGettingHelp++>> + <</if>> + <</for>> <</if>> - <<if $slaves[$i].prestigeDesc == "$He is remembered for winning best in show as a cockmilker.">> - <<if (($slaves[$i].balls > 6) && ($slaves[$i].dick != 0)) || (($slaves[$i].balls > 4) && ($slaves[$i].dick != 0) && ($slaves[$i].prostate > 1))>> - $He spends extra time with $slaves[$i].slaveName, the massive ejaculating cow. $He can't help but massage the cow's dick and testes to stimulate them further and coax more from them. - <<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>> + */ + <<if (_DL+$slavesGettingHelp < 5)>> + <<set $i = _FLs>> /* apply following SA passages to facility leader */ + <<if $showEWD != 0>> + <br> $He <<include "SA work the farm">> <<else>> - $He is disappointed that the (formerly) massive ejaculating cow $slaves[$i].slaveName<<if $slaves[$i].balls == 0 || $slaves[$i].dick == 0>> is incapable of giving cum. <<elseif $slaves[$i].prostate < 2>> no longer possesses a hyperactive prostate. <<else>>'s balls are considerably smaller than at their heyday.<</if>> + <<silently>><<include "SA work the farm">><</silently>> <</if>> + <<set _seed = $cash-_oldCash, cashX(Math.trunc(0.5*_seed), "farmyard"), _seed = Math.trunc(1.5*_seed), _profits += _seed>> + /* TODO: what will the Farmer do when she isn't busy? */ + <br> Since $he doesn't have enough farmhands to manage to keep $him busy, $he sees $beauty customers $himself (<<print Math.trunc($beauty/7)>> a day), earning you @@.yellowgreen;<<print cashFormat(_seed)>>.@@ $He can charge more for $his time, since many citizens find it erotic to fuck the Farmer. <</if>> - <<if $slaves[$i].prestigeDesc == "$He is remembered for winning best in show as a breeder." && $slaves[$i].bellyPreg >= 1500>> - $He spends extra time with $slaves[$i].slaveName, the well-known breeder. $Milkmaid.slaveName is fascinated by $his growing pregnancy and popular womb. $He makes sure $his belly and it's occupants are nice and comfortable. - <<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>> - <</if>> - <</for>> + <</if>> + <<if (_DL > 0)>><br><br><</if>> <</if>> -<<set _Tadd = ($bioreactorsXY + $bioreactorsXX + $bioreactorsHerm + $bioreactorsBarren)>> -<<if (_DL + _Tadd > 0)>> - <<if ($Milkmaid != 0)>><br><br><</if>> - <<if (_DL != 1)>>''There are _DL cows in $dairyName.''<<else>>''There is one cow in $dairyName.''<</if>> - <<if ($dairyRestraintsSetting > 1)>> - The facility functions as an industrial slave products factory. - <</if>> - <<if (_Tadd > 0)>> - _Tadd milking machines have permanent biological components, making a total of <<print _Tadd + _DL>> milk-producing bodies. - <</if>> +<<if (_DL > 0)>> + <<if _DL != 1>>''There are _DL farmhands working out of $farmyardName.''<<else>>''There is one farmhand working out of $farmyardName.''<</if>> <</if>> -<<if ($Milkmaid != 0)>> +<<if $Farmer != 0>> <<set $i = _FLs>> /* apply following SA passages to facility leader */ <<if $showEWD != 0>> <br><br> @@ -242,7 +171,7 @@ </div> <</if>> /* 000-250-006 */ - ''__@@.pink;<<= SlaveFullName($slaves[_FLs])>>@@__'' is serving as your Milkmaid. + ''__@@.pink;<<= SlaveFullName($slaves[_FLs])>>@@__'' is serving as the Farmer. <br> <<= saChoosesOwnClothes($slaves[$i])>> <<include "SA rules">> @@ -264,818 +193,150 @@ <<include "SA devotion">> <</silently>> <</if>> - <<set $Milkmaid = $slaves[_FLs]>> <</if>> -<<set _oldCash = $cash>> -<<for _dI = 0; _dI < _DL; _dI++>> - <<set $i = $slaveIndices[$DairyiIDs[_dI]]>> - /* Special attention section */ - <<if ($legendaryCowID == 0) && ($slaves[$i].lactation > 0) && (($slaves[$i].boobs-$slaves[$i].boobsImplant) > 6000) && ($slaves[$i].devotion > 50) && ($slaves[$i].prestige == 0)>> - <<set $legendaryCowID = $slaves[$i].ID>> - <</if>> - <<if ($legendaryBallsID == 0) && ($slaves[$i].dick != 0) && ($slaves[$i].balls > 5 || ($slaves[$i].balls > 4 && $slaves[$i].prostate > 1)) && ($slaves[$i].devotion > 50) && ($slaves[$i].prestige == 0)>> - <<set $legendaryBallsID = $slaves[$i].ID>> - <</if>> - - /* Perform facility based rule changes */ - <<if ($dairySlimMaintain == 0)>> - <<if $dairyWeightSetting == 0>> - <<if $slaves[$i].weight <= 30>> - <<set $slaves[$i].diet = "fattening">> - <<else>> - <<set $slaves[$i].diet = "healthy">> - <</if>> - <<elseif $dairyWeightSetting == 1>> - <<if $slaves[$i].weight <= 95>> - <<set $slaves[$i].diet = "fattening">> - <<else>> - <<set $slaves[$i].diet = "healthy">> - <</if>> - <<elseif $dairyWeightSetting == 2>> - <<if $slaves[$i].weight <= 130>> - <<set $slaves[$i].diet = "fattening">> - <<else>> - <<set $slaves[$i].diet = "healthy">> - <</if>> - <<elseif $dairyWeightSetting == 3>> - <<if $slaves[$i].weight <= 160>> - <<set $slaves[$i].diet = "fattening">> - <<else>> - <<set $slaves[$i].diet = "healthy">> - <</if>> - <<elseif $dairyWeightSetting == 4>> - <<if $slaves[$i].weight <= 195>> - <<set $slaves[$i].diet = "fattening">> - <<else>> - <<set $slaves[$i].diet = "healthy">> - <</if>> - <<elseif $dairyRestraintsSetting > 1>> - <<set $slaves[$i].diet = "healthy">> - <</if>> - <<elseif $slaves[$i].weight > 10>> - <<set $slaves[$i].diet = "restricted">> - <<elseif ($slaves[$i].diet == "fattening") || $slaves[$i].diet == "healthy" || ($dairyRestraintsSetting > 1)>> - <<set $slaves[$i].diet = "healthy">> - <</if>> - <<if $dairyRestraintsSetting > 1>> - <<set $slaves[$i].collar = "none", $slaves[$i].choosesOwnClothes = 0, $slaves[$i].clothes = "no clothing", $slaves[$i].buttplug = "none", $slaves[$i].vaginalAccessory = "none", $slaves[$i].dickAccessory = "none">> - <</if>> - <<switch $dairyDecoration>> - <<case "Roman Revivalist" "Aztec Revivalist" "Chinese Revivalist" "Chattel Religionist" "Edo Revivalist" "Arabian Revivalist" "Egyptian Revivalist" "Supremacist" "Subjugationist" "Degradationist">> - <<set $slaves[$i].livingRules = "spare">> - <<default>> - <<set $slaves[$i].livingRules = "normal">> - <</switch>> - <<if $dairyPregSetting > 0>> - <<set $reservedChildren = FetusGlobalReserveCount("incubator")>> - <<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>> - <</if>> - - /* General End of Week effects */ - <<if $showEWD != 0>> - <br><br> - /* 000-250-006 */ - <<if $seeImages && $seeReportImages>> - <div class="imageRef tinyImg"> - <<SlaveArt $slaves[$i] 0 0>> - </div> - <</if>> - /* 000-250-006 */ - ''__@@.pink;<<= SlaveFullName($slaves[$i])>>@@__'' - <<if $slaves[$i].choosesOwnAssignment == 2>> - <<include "SA chooses own job">> - <<else>> - is serving as a cow in $dairyName. - <</if>> - <br> $He <<include "SA get milked">> - <br> - <<include "SA rules">> - <<include "SA diet">> - <<include "SA long term effects">> - <<include "SA drugs">> - <<include "SA relationships">> - <<include "SA rivalries">> - <br><<include "SA devotion">> - <<else>> - <<silently>> - <<include "SA chooses own job">> - <<include "SA get milked">> - <<include "SA rules">> - <<include "SA diet">> - <<include "SA long term effects">> - <<include "SA drugs">> - <<include "SA relationships">> - <<include "SA rivalries">> - <<include "SA devotion">> - <</silently>> - <</if>> - <<set _milkWeek += $milk, _cumWeek += $cum>> - - /* Facility Specific End of Week effects */ - <<if ($slaves[$i].devotion <= 20) && ($slaves[$i].trust >= -20)>> - <<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>> - <</if>> - <<if ($slaves[$i].health < -80)>> - <<set $slaves[$i].health += 20>> - <<elseif ($slaves[$i].health < -40)>> - <<set $slaves[$i].health += 10>> - <<elseif ($slaves[$i].health < 0)>> - <<set $slaves[$i].health += 7>> - <<elseif ($slaves[$i].health < 90)>> - <<set $slaves[$i].health += 3>> - <</if>> - <<if ($slaves[$i].inflation > 0)>> - <<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0>> - <<run SetBellySize($slaves[$i])>> - <</if>> - <<if ($slaves[$i].lactation > 0) && (($dairySlimMaintain == 0) || ($slaves[$i].boobs > 700))>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 100>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50>> - <<elseif ($slaves[$i].boobs < 10000)>> - <<set _growth = 25>> - <<else>> - <<set _growth = 0>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <</if>> - <<if $slaves[$i].prostate == 1>> - <<set $slaves[$i].prostate = 2, $slaves[$i].health -= 10>> - <<run cashX(forceNeg($surgeryCost), "slaveSurgery", $slaves[$i])>> - <</if>> - <<if $slaves[$i].vasectomy == 1>> - <<set $slaves[$i].vasectomy = 0, $slaves[$i].health -= 10>> - <<run cashX(forceNeg($surgeryCost), "slaveSurgery", $slaves[$i])>> - <</if>> - <<if ($dairySlimMaintain == 0)>> - <<if ($slaves[$i].lactation < 2) && ($slaves[$i].boobs > 300 || $slaves[$i].dick == 0 || $slaves[$i].lactation == 1 || $dairyImplantsSetting == 1) && $dairyImplantsSetting != 2>> - <<set $slaves[$i].lactation = 2, $slaves[$i].health -= 10>> - <<run cashX(forceNeg($surgeryCost), "slaveSurgery", $slaves[$i])>> - <</if>> - <</if>> - <<if ($dairyFeedersUpgrade == 1) && ($dairyFeedersSetting > 0)>> - <<if ($dairySlimMaintain == 0)>> - <<if ($slaves[$i].balls == 0)>> - <<set $slaves[$i].hormones = 2>> - <</if>> - <<elseif $slaves[$i].diet == "fattening">> - <<set $slaves[$i].weight += 2>> - <</if>> - <<if ($slaves[$i].health < 75)>> - <<set $slaves[$i].health += 25>> - <<else>> - <<if ($dairySlimMaintain == 0) && $slaves[$i].lactation > 0>> - <<if $dairyFeedersSetting > 1 && $dairyStimulatorsSetting > 0>> - <<if $slaves[$i].boobs < 50000>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <</if>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>> - <</if>> - <<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>> - <<set _boobtacular++>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <<else>> - <<set $slaves[$i].boobs = 50000>> - <</if>> - <<elseif $dairyFeedersSetting > 0 && $dairyStimulatorsSetting > 0>> - <<if $slaves[$i].boobs < 25000>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <</if>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>> - <</if>> - <<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>> - <<set _boobtacular++>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <</if>> - <<elseif $dairyFeedersSetting > 1>> - <<if $slaves[$i].boobs < 10000>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <</if>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>> - <</if>> - <<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>> - <<set _boobtacular++>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <</if>> - <<else>> - <<if $slaves[$i].boobs < 5000>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <</if>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>> - <</if>> - <<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>> - <<set _boobtacular++>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <</if>> - <</if>> - <</if>> - <<if ($slaves[$i].balls > 0)>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].geneMods.NCS == 0) && ($slaves[$i].balls < 125)>> - <<set $slaves[$i].balls++>> - <<elseif ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].balls < 125) && (random(1,600) > (30+(10*$slaves[$i].balls)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>> - <<set $slaves[$i].balls++>> - <</if>> - <<if ($slaves[$i].balls == 125)>> - <<set _balltacular++>> - <</if>> - <<elseif ($slaves[$i].balls < 10)>> - <<if ($slaves[$i].geneMods.NCS == 0) && (random(1,100) > (40+(10*$slaves[$i].balls)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>> - <<set $slaves[$i].balls++>> - <<elseif ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].balls < 125) && (random(1,50) > (40+(10*$slaves[$i].balls)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>> - <<set $slaves[$i].balls++>> - <</if>> - <<if ($slaves[$i].balls == 10)>> - <<set _balltacular++>> - <</if>> - <</if>> - <<if $slaves[$i].dick > 0>> - <<if $slaves[$i].dick < 10>> - <<if (($slaves[$i].geneMods.NCS == 0) && (random(1,100) > (40+(10*$slaves[$i].dick)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10))))>> - <<set $slaves[$i].dick++>> - <<elseif (($slaves[$i].geneMods.NCS == 1) && (random(1,50) > (40+(10*$slaves[$i].dick)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10))))>> - <<set $slaves[$i].dick++>> - <</if>> - <</if>> - <</if>> - <</if>> - <</if>> - <</if>> /* closes ($dairyFeedersUpgrade == 1) && ($dairyFeedersSetting > 0) */ - <<if ($dairyStimulatorsUpgrade == 1) && $dairyStimulatorsSetting > 0>> - <<if ($dairyStimulatorsSetting > 1) && ($slaves[$i].anus < 4)>> - <<set $slaves[$i].anus++>> - <<if ($slaves[$i].anus == 4)>> - <<set _anusesStretched++>> - <</if>> - <<elseif ($slaves[$i].anus < 3)>> - <<set $slaves[$i].anus++>> - <</if>> - <<if ($slaves[$i].health < 60)>> +<<if (_DL > 0)>> + <<set _oldCash = $cash, _oldFood = $food>> + <<for _dI = 0; _dI < _DL; _dI++>> + <<set $i = $slaveIndices[$FarmyardiIDs[_dI]]>> + <<setLocalPronouns $slaves[$i]>> + /* Perform facility based rule changes */ + <<set $slaves[$i].health += _healthBonus, $slaves[$i].aphrodisiacs = _aphrod>> + <<switch $farmyardDecoration>> + <<case "Degradationist" "standard">> /* TODO: add the rest of the FS */ + <<set $slaves[$i].livingRules = "spare">> + <<case "Roman Revivalist">> + <<set $slaves[$i].livingRules = "luxurious">> + <<default>> + <<set $slaves[$i].livingRules = "normal">> + <</switch>> + /* TODO: should FS with "spare" living rules cause some minor health damage and devotion / trust loss? */ + <<if ($slaves[$i].health < -80)>> <<set $slaves[$i].health += 20>> - <<elseif $dairySlimMaintain == 0 && $slaves[$i].lactation > 0>> - <<if $dairyFeedersSetting > 1>> - <<if $slaves[$i].boobs < 50000>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <</if>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>> - <</if>> - <<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>> - <<set _boobtacular++>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <</if>> - <<elseif $dairyFeedersSetting > 0>> - <<if $slaves[$i].boobs < 25000>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <</if>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>> - <</if>> - <<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>> - <<set _boobtacular++>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <</if>> - <<else>> - <<if $slaves[$i].boobs < 10000>> - <<if $arcologies[0].FSAssetExpansionistResearch == 1>> - <<if ($slaves[$i].boobs < 2000)>> - <<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<elseif ($slaves[$i].boobs < 5000)>> - <<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>> - <</if>> - <<else>> - <<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>> - <</if>> - <<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>> - <<set _boobtacular++>> - <</if>> - <<if ($slaves[$i].geneMods.NCS == 1)>> - <<set _growth = Math.trunc(_growth/2)>> - <</if>> - <<set $slaves[$i].boobs += _growth>> - <</if>> - <</if>> - <</if>> - <</if>> - <<if ($dairyRestraintsSetting > 1)>> - <<if $slaves[$i].lactation > 0>> - <<set $slaves[$i].lactationAdaptation += 1>> - <</if>> - <<if ($slaves[$i].muscles > -100)>> - <<set $slaves[$i].muscles-->> - <</if>> - <<if ($slaves[$i].fetish == "mindbroken")>> - <<if ($slaves[$i].boobs > 48000) && (($slaves[$i].balls >= 10) || ($slaves[$i].balls == 0))>> - <<set $bioreactorPerfectedID = $slaves[$i].ID>> - <</if>> - <<else>> - <<if ($slaves[$i].sexualFlaw != "self hating")>> - <<if ($slaves[$i].sexualFlaw != "cum addict") || ($dairyFeedersSetting == 0)>> - <<if ($slaves[$i].sexualFlaw != "anal addict") || ($dairyStimulatorsSetting == 0)>> - <<if ($slaves[$i].sexualFlaw != "breeder") || ($slaves[$i].preg < 0) || ($dairyPregSetting == 0)>> - <<if $dairyStimulatorsSetting > 1>> - <<if ($slaves[$i].sexualFlaw != "hates anal") && ($slaves[$i].sexualQuirk != "painal queen")>> - <<set $slaves[$i].sexualFlaw = "hates anal">> - <</if>> - <</if>> - <<if $dairyPregSetting > 1>> - <<if ($slaves[$i].sexualFlaw != "hates penetration") && ($slaves[$i].sexualQuirk != "strugglefuck queen")>> - <<set $slaves[$i].sexualFlaw = "hates penetration">> - <</if>> - <</if>> - <<if $dairyFeedersSetting > 1>> - <<if ($slaves[$i].sexualFlaw != "hates oral") && ($slaves[$i].sexualQuirk != "gagfuck queen")>> - <<set $slaves[$i].sexualFlaw = "hates oral">> - <</if>> - <</if>> - <</if>> - <</if>> - <</if>> - <</if>> + <<elseif $slaves[$i].health < -40>> + <<set $slaves[$i].health += 15>> + <<elseif $slaves[$i].health < 0>> + <<set $slaves[$i].health += 10>> + <<elseif $slaves[$i].health < 90>> + <<set $slaves[$i].health += 7>> <</if>> - <<if $slaves[$i].chem > 250>> - <<set _chemSevere++>> - <<elseif $slaves[$i].chem > 100>> - <<set _chemMinor++>> + <<if ($slaves[$i].devotion <= 20) && ($slaves[$i].trust >= -20)>> + <<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>> + <<elseif ($slaves[$i].devotion < 45)>> + <<set $slaves[$i].devotion += 4>> + <<elseif ($slaves[$i].devotion > 50)>> + <<set $slaves[$i].devotion -= 4>> <</if>> - <</if>> - <<if ($dairyStimulatorsSetting + $dairyFeedersSetting + $dairyPregSetting) > 5>> - <<if $slaves[$i].devotion <= 95 && $slaves[$i].sexualFlaw != "self hating">> - <<if ($slaves[$i].sexualFlaw != "breeder") || ($slaves[$i].preg < 0)>> - <<if ($slaves[$i].devotion > -75)>> - <<set $slaves[$i].devotion -= 10>> - <<if ($slaves[$i].devotion < -65)>> - <<set _hatefilled++>> - <</if>> - <<elseif ($slaves[$i].trust > -75)>> - <<set $slaves[$i].trust -= 10>> - <<if ($slaves[$i].trust < -65)>> - <<set _horrified++>> - <</if>> - <<elseif ($slaves[$i].vaginalSkill > 0)>> - <<set $slaves[$i].vaginalSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].oralSkill > 0)>> - <<set $slaves[$i].oralSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].analSkill > 0)>> - <<set $slaves[$i].analSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].career != "a bioreactor")>> - <<set $slaves[$i].career = "a bioreactor", _careerForgotten++>> - <<elseif ($slaves[$i].intelligenceImplant > 0)>> - <<set $slaves[$i].intelligenceImplant = Math.clamp($slaves[$i].intelligenceImplant-5, 0, 30), _skillsLost++>> - <<elseif ($slaves[$i].intelligence >= -15)>> - <<set $slaves[$i].intelligence -= 5, _intelligenceLost++>> - <<elseif ($slaves[$i].devotion >= -20)>> - <<set $slaves[$i].devotion -= 10>> - <<elseif ($slaves[$i].trust >= -20)>> - <<set $slaves[$i].trust -= 10>> - <<elseif ($slaves[$i].whoreSkill > 0)>> - <<set $slaves[$i].whoreSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].entertainSkill > 0)>> - <<set $slaves[$i].entertainSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].intelligence >= -50)>> - <<set $slaves[$i].intelligence -= 5>> - <<if $slaves[$i].intelligence < -50>> - <<set _stupidified++>> - <</if>> - <<elseif ($slaves[$i].fetish != "mindbroken")>> - <<set $slaves[$i].fetish = "mindbroken", _mindbroken++>> - <</if>> - <</if>> + <<if ($slaves[$i].trust < 30)>> + <<set $slaves[$i].trust += 5>> <</if>> - <<if (($slaves[$i].milk > 1000) && ($slaves[$i].boobs > 12000) || ($slaves[$i].cum > 1000) && ($slaves[$i].balls >= 10)) && ($slaves[$i].career != "a bioreactor")>> - <<set $slaves[$i].career = "a bioreactor", _careerForgotten++>> + <<if $slaves[$i].energy > 40 && $slaves[$i].energy < 95>> + <<set $slaves[$i].energy++>> <</if>> - <<if ($arcologies[0].FSBodyPuristLaw == 0) && ($healthyDrugsUpgrade == 0)>> - <<set $slaves[$i].chem += 5>> + + <<if $showEWD != 0>> + <br><br> + /* 000-250-006 */ + <<if $seeImages && $seeReportImages>> + <div class="imageRef tinyImg"> + <<SlaveArt $slaves[$i] 0 0>> + </div> + <</if>> + /* 000-250-006 */ + ''__@@.pink;<<= SlaveFullName($slaves[$i])>>@@__'' + <<if $slaves[$i].choosesOwnAssignment == 2>> + <<include "SA chooses own job">> + <<else>> + is working out of $farmyardName. + <</if>> + <br> $He <<include "SA work the farm">> + <br> + <<= saChoosesOwnClothes($slaves[$i])>> + <<include "SA rules">> + <<include "SA diet">> + <<include "SA long term effects">> + <<include "SA drugs">> + <<include "SA relationships">> + <<include "SA rivalries">> + <br><<include "SA devotion">> <<else>> - <<set $slaves[$i].chem += 2>> - <</if>> - <<elseif ($dairyStimulatorsSetting + $dairyFeedersSetting + $dairyPregSetting) > 3>> - <<if ($slaves[$i].devotion < 75)>> - <<if ($slaves[$i].devotion > -75)>> - <<set $slaves[$i].devotion -= 5>> - <<if ($slaves[$i].devotion < -70)>> - <<set _hatefilled++>> - <</if>> - <<elseif ($slaves[$i].trust > -75)>> - <<set $slaves[$i].trust -= 5>> - <<if ($slaves[$i].trust < -70)>> - <<set _horrified++>> - <</if>> - <<elseif ($slaves[$i].vaginalSkill >= 20)>> - <<set $slaves[$i].vaginalSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].oralSkill >= 20)>> - <<set $slaves[$i].oralSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].analSkill >= 20)>> - <<set $slaves[$i].analSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].career != "a bioreactor")>> - <<set $slaves[$i].career = "a bioreactor", _careerForgotten++>> - <<elseif ($slaves[$i].intelligenceImplant > 0)>> - <<set $slaves[$i].intelligenceImplant = Math.clamp($slaves[$i].intelligenceImplant-5, 0, 30), _skillsLost++>> - <<elseif ($slaves[$i].intelligence >= -15)>> - <<set $slaves[$i].intelligence -= 5, $intelligenceLost++>> - <<elseif ($slaves[$i].devotion >= -20)>> - <<set $slaves[$i].devotion -= 8>> - <<elseif ($slaves[$i].trust >= -20)>> - <<set $slaves[$i].trust -= 8>> - <<elseif ($slaves[$i].whoreSkill >= 20)>> - <<set $slaves[$i].whoreSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].entertainSkill >= 20)>> - <<set $slaves[$i].entertainSkill -= 10, _skillsLost++>> - <<elseif ($slaves[$i].intelligence >= -50)>> - <<set $slaves[$i].intelligence -= 5>> - <<if $slaves[$i].intelligence < -50>> - <<set _stupidified++>> - <</if>> - <<elseif ($slaves[$i].fetish != "mindbroken")>> - <<set $slaves[$i].fetish = "mindbroken", _mindbroken++>> - <</if>> - <<elseif (($slaves[$i].milk > 1000) && ($slaves[$i].boobs > 12000) || ($slaves[$i].cum > 1000) && ($slaves[$i].balls >= 10)) && ($slaves[$i].career != "a bioreactor")>> - <<set $slaves[$i].career = "a bioreactor", _careerForgotten++>> + <<silently>> + <<include "SA chooses own job">> + <<include "SA work the farm">> + <<set _chosenClothes = saChoosesOwnClothes($slaves[$i])>> + <<include "SA rules">> + <<include "SA diet">> + <<include "SA long term effects">> + <<include "SA drugs">> + <<include "SA relationships">> + <<include "SA rivalries">> + <<include "SA devotion">> + <</silently>> <</if>> - <<if ($arcologies[0].FSBodyPuristLaw == 0) && ($healthyDrugsUpgrade == 0)>> - <<set $slaves[$i].chem += 2>> - <<else>> - <<set $slaves[$i].chem++>> + <span id="showProfits"> + <<set _incomeStats = getSlaveStatisticData($slaves[$i], $slaves[$i].assignment === Job.FARMYARD ? $facility.farmyard : undefined)>> + <<set _profits += _incomeStats.income>> + </span> + + <span id="foodProduction"> + /* TODO: is this right? */ + <<if $farmyardSlaves > 0>> + <<set _foodWeek = _incomeStats.food>> <</if>> - <</if>> /* closes ($dairyStimulatorsSetting + $dairyFeedersSetting + $dairyPregSetting) > 5 */ - <<if ($dairyPregUpgrade == 1) && ($dairyPregSetting > 0)>> - <<if ($slaves[$i].ovaries == 1) && ($slaves[$i].vagina > -1)>> - <<set _femCumWeek += Math.trunc((70-$slaves[$i].physicalAge)/(30-($slaves[$i].vaginaLube*10)))>> - <<if ($slaves[$i].preg == -2)>> - <<set $slaves[$i].preg = 0, _desterilized++>> - <</if>> - <<if isFertile($slaves[$i])>> - <<if $slaves[$i].eggType == "human">> - <<set $slaves[$i].preg = 1, $slaves[$i].pregWeek = 1, $slaves[$i].pregKnown = 1>> - <<if ($dairyPregSetting > 2)>> - <<set $slaves[$i].pregType = random(10,29)>> - <<elseif ($dairyPregSetting > 1)>> - <<set $slaves[$i].pregType = random(3,6)>> - <<else>> - <<set $slaves[$i].pregType = either(1, 1, 1, 1, 2, 2, 2, 3, 3, 4)>> - <</if>> - <<set $slaves[$i].pregSource = -2>> - <<set WombImpregnate($slaves[$i], $slaves[$i].pregType, -2, 1)>> - <</if>> /*closes eggType */ - <<if ($slaves[$i].vagina == 0)>> - <<set $slaves[$i].vagina++>> - <</if>> - <<elseif ($slaves[$i].pregKnown == 1)>> - <<if ($dairyPregSetting > 2)>> - <<run cashX(100, "milked", $slaves[$i])>> - <<elseif ($dairyPregSetting > 1)>> - <<run cashX(50, "milked", $slaves[$i])>> - <<else>> - <<run cashX(25, "milked", $slaves[$i])>> - <</if>> - <<if ($dairyPregSetting > 1) && ($slaves[$i].vagina < 4)>> - <<set $slaves[$i].vagina++>> - <<if ($slaves[$i].vagina == 4)>> - <<set _vaginasStretched++>> - <</if>> - <<elseif ($slaves[$i].vagina < 3)>> - <<set $slaves[$i].vagina++>> - <</if>> - <</if>> + <<if $farmMenials > 0>> + <<set _foodWeek += ($farmMenials*350)>> <</if>> - <</if>> -<</for>> - -<<if $inflatedSlavesMilk > 0>> - <<set _milkWeek -= ((8*$inflatedSlavesMilk*10)+8)>> -<</if>> -<<if $inflatedSlavesCum > 0>> - <<set _cumWeek -= ((80*$inflatedSlavesCum*10)+80)>> - <<if _cumWeek < 0>> - <<set _cumWeek = 0>> - <</if>> -<</if>> - -<<if (_Tadd > 0)>> - <<set _tempCash = $cash>> - <<set _seed = (100*$bioreactorsXY) + (100*$bioreactorsHerm), _cumWeek += _seed>> - <<if ($arcologies[0].FSPastoralistLaw == 1)>> - <<set _cashX = _seed*random(40,50)>> - <<run cashX(_cashX, "menialBioreactors")>> - <<elseif ($arcologies[0].FSPastoralist != "unset")>> - <<set _cashX = _seed*(random(25,35)+Math.trunc($arcologies[0].FSPastoralist/10))>> - <<run cashX(_cashX, "menialBioreactors")>> - <<else>> - <<set _cashX = _seed*random(25,35)>> - <<run cashX(_cashX, "menialBioreactors")>> - <</if>> - <<set _seed = (2*$bioreactorsXX) + (2*$bioreactorsHerm), _femCumWeek += _seed>> - <<if ($arcologies[0].FSPastoralistLaw == 1)>> - <<set _cashX = _seed*random(40,50)>> - <<run cashX(_cashX, "menialBioreactors")>> - <<elseif ($arcologies[0].FSPastoralist != "unset")>> - <<set _cashX = _seed*(random(25,35)+Math.trunc($arcologies[0].FSPastoralist/10))>> - <<run cashX(_cashX, "menialBioreactors")>> - <<else>> - <<set _cashX = _seed*random(25,35)>> - <<run cashX(_cashX, "menialBioreactors")>> - <</if>> - <<set _seed = (800*$bioreactorsXX) + (700*$bioreactorsBarren) + (600*$bioreactorsXY) + (600*$bioreactorsHerm), _milkWeek += _seed>> - <<if ($arcologies[0].FSPastoralistLaw == 1)>> - <<set _cashX = _seed*(13+Math.trunc($arcologies[0].FSPastoralist/30))>> - <<run cashX(_cashX, "menialBioreactors")>> - <<elseif ($arcologies[0].FSPastoralist != "unset")>> - <<set _cashX = _seed*(8+Math.trunc($arcologies[0].FSPastoralist/30))>> - <<run cashX(_cashX, "menialBioreactors")>> - <<else>> - <<set _cashX = _seed*9>> - <<run cashX(_cashX, "menialBioreactors")>> - <</if>> - <br><br>_Tadd permanently converted biological "machine<<if _Tadd > 1>>s<</if>>" produce<<if _Tadd == 1>>s<</if>> @@.yellowgreen;<<print cashFormat($cash-_tempCash)>>@@ income. -<</if>> - -<<if $inflatedSlavesMilk > 0>> - <<set _cashX -= Math.trunc(((600*($inflatedSlavesMilk)+8)+random(50,200)))>> - <<run cashX(_cashX, "milked")>> -<</if>> -<<if $inflatedSlavesCum > 0>> - <<set _cashX -= Math.trunc(((300*($inflatedSlavesCum+8))+random(25,100)))>> - <<run cashX(_cashX, "milked")>> -<</if>> - -<<set _profits = $cash-_oldCash>> -<br><br> -<<if _chemSevere > 1>> - _chemSevere cows' productivity is being reduced by the long term effects of industrial use. -<<elseif _chemSevere > 0>> - One cow's productivity is being reduced by the long term effects of industrial use. -<</if>> -<<if _chemMinor > 1>> - _chemMinor cows have been drugged and used long enough that they require increased curative doses, slightly reducing their output. -<<elseif _chemMinor > 0>> - One cow has been drugged and used long enough that $he requires increased curative doses, slightly reducing $his output. -<</if>> -<<if _desterilized > 1>> - _desterilized cows had minor health issues preventing their fertile womb from conceiving; the issues have been resolved and they have been impregnated. -<<elseif _chemMinor > 0>> - One cow had minor health issues preventing $his fertile womb from conceiving; they have been resolved and $he has been impregnated. -<</if>> -<<if _hatefilled > 1>> - _hatefilled cows stopped struggling so much when fucked by the machines; it seems they have sunk into a fugue. -<<elseif _hatefilled > 0>> - One cow stopped struggling so much when fucked by the machines; it seems $he has sunk into a fugue. -<</if>> -<<if _horrified > 1>> - _horrified cows' emotional activity dropped significantly; this indicates acceptance that they are not likely to leave $dairyName, ever again. -<<elseif _horrified > 0>> - One cow's emotional activity dropped significantly; this indicates acceptance that $he is not likely to leave $dairyName, ever again. -<</if>> -<<if _skillsLost > 1>> - _skillsLost cows forgot skills due to their inability to focus on anything but machine rape. -<<elseif _skillsLost > 0>> - One cow forgot skills due to $his inability to focus on anything but machine rape. -<</if>> -<<if _careerForgotten > 1>> - _careerForgotten cows forgot the details of their past professional lives; all they can remember now is this. -<<elseif _careerForgotten > 0>> - One cow forgot the details of $his past professional life; all $he can remember now is this. -<</if>> -<<if _vaginasStretched > 1>> - _vaginasStretched cows' vaginas were broken in for machine use, and are unlikely to be any use for anything other than receiving cum and medication, and giving birth. -<<elseif _vaginasStretched > 0>> - One cow's vagina was broken in for machine use, and is unlikely to be any use for anything other than receiving cum and medication, and giving birth. -<</if>> -<<if _anusesStretched > 1>> - _anusesStretched cows' anuses were loosened by machine sodomy, and are now permanently gaped. -<<elseif _anusesStretched > 0>> - One cow's anus was loosened by machine sodomy, and is now permanently gaped. -<</if>> -<<if $intelligenceLost > 1>> - $intelligenceLost cows suffered some loss of intelligence due to accumulated mental stress from life attached to a milking machine. -<<elseif $intelligenceLost > 0>> - One cow suffered some loss of intelligence due to accumulated mental stress from life attached to a milking machine. -<</if>> -<<if _stupidified > 1>> - _stupidified cows were so mentally dulled by use as biological factories that they were reduced to a very low level of intelligence. -<<elseif _stupidified > 0>> - One cow was so mentally dulled by use as biological factories that $he was reduced to a very low level of intelligence. -<</if>> -<<if _mindbroken > 1>> - _mindbroken cows finally lost higher mental function, and are now nothing more than industrial equipment made of meat. -<<elseif _mindbroken > 0>> - One cow finally lost higher mental function, and is now nothing more than industrial equipment made of meat. -<</if>> -<<if _boobtacular > 1>> - _boobtacular cows grew past 30 kilograms of breasts, a remarkable advance in capacity. -<<elseif _boobtacular > 0>> - One cow grew past 30 kilograms of breasts, a remarkable advance in capacity. -<</if>> -<<if _balltacular > 1>> - _balltacular cows' testicles reached the largest size drug treatments can produce; the machines will now focus on buttfucking them with extra force. -<<elseif _balltacular > 0>> - One cow's testicles reached the largest size drug treatments can produce; the machines will now focus on buttfucking $him with extra force. -<</if>> - -<<if ($dairyPregUpgrade == 1)>> - <<if ($dairyPregSetting >= 2)>> - Fertile cows make you a significant profit through contract pregnancies. - <<elseif ($dairyPregSetting == 1)>> - Fertile cows make you a small profit through contract pregnancies. - <</if>> -<</if>> -<<set _cumWeek = Math.trunc(_cumWeek/10)>> -<<set $cumPipeline = _cumWeek, $milkPipeline = _milkWeek>> -<<if $inflatedSlavesMilk > 0>> - <<set _outputMilk = ((8*$inflatedSlavesMilk*10)+8)>> -<<else>> - <<set _outputMilk = 0>> -<</if>> -<<if $inflatedSlavesCum > 0>> - <<set _outputCum = (((80*$inflatedSlavesCum*10)+80)/10)>> -<<else>> - <<set _outputCum = 0>> -<</if>> -$dairyNameCaps produced <<print _milkWeek+_outputMilk>> liters of milk<<if _cumWeek > 0>> and <<print _cumWeek+_outputCum>> liters of cum<</if>> this week. -<<if $inflatedSlavesMilk > 0>> - _outputMilk liters of milk were pumped into your penthouse for filling slaves this week. -<</if>> -<<if $inflatedSlavesCum > 0>> - <<if $inflatedSlavesMilk > 0>>and <</if>>_outputCum liters of cum were pumped into your penthouse<<if $inflatedSlavesMilk > 0>> as well<<else>> this week<</if>>. -<</if>> -<<if _femCumWeek > 0>> - The machines also managed to reclaim _femCumWeek liters of salable vaginal secretions. -<</if>> -<<if _births > 1>> - Additionally, _birthers cows gave birth<<if _births > _birthers>> to a total of _births calves<</if>> this week. -<<elseif _births > 0>> - Additionally, one cow gave birth<<if _births > _birthers>> to a total of _births calves<</if>> this week. -<</if>> + </span> + <</for>> + <<set _profits += $cash-_oldCash, _oldCash = $cash, _foodWeek += $food-_oldFood, _possibleBonuses = 0, _farmyardBonuses = 0>> -<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>> - <<if $dairyPregSetting > 0>> - The Societal Elite know what you are doing with your cows. @@.red;They do not approve@@. - <<set $failedElite += 5>> - <</if>> - <<if _milkmaidImpregnates == 1>> - The Societal Elite know you've ordered $Milkmaid.slaveName to impregnate your cows. @@.red;They are not amused by your disinterest in eugenics@@. - <<set $failedElite += 10>> - <</if>> -<</if>> + <<set _profits += $cash-_oldCash>> /* TODO: is this supposed to be set a second time? */ + <!-- Record statistics gathering --> + <<script>> + var b = State.variables.facility.farmyard; + b.farmhandIncome = 0; + b.customers = 0; + b.farmhandCosts = 0; + b.rep = 0; + for(var si of b.income.values()) { + b.farmhandIncome += si.income + si.adsIncome; + b.customers += si.customers; + b.farmhandCosts += si.cost; + b.rep += si.rep; + } + b.adsCosts = State.variables.farmyardAdsSpending; + b.maintenance = State.variables.farmyard * State.variables.facilityCost; + b.totalIncome = b.farmhandIncome + b.adsIncome; + b.totalExpenses = b.farmhandCosts + b.maintenance; + b.profit = b.totalIncome - b.totalExpenses; + <</script>> -<!-- Record statistics gathering --> -<<script>> - var b = State.variables.facility.dairy; - b.whoreIncome = 0; - b.whoreCosts = 0; - b.rep = 0; - for(var si of b.income.values()) { - b.whoreIncome += si.income; - b.whoreCosts += si.cost; - b.rep += si.rep; - } - b.maintenance = (State.variables.bioreactorsXY + State.variables.bioreactorsXX + State.variables.bioreactorsHerm + State.variables.bioreactorsBarren); - if (b.maintenance > 0) { - b.maintenance *= 100; - } else { - b.maintenance = 0; - } - b.maintenance += State.variables.dairy * State.variables.facilityCost * (1.0 + 0.2 * State.variables.dairyFeedersUpgrade + 0.1 * State.variables.dairyPregUpgrade); - b.totalIncome = b.whoreIncome; - b.totalExpenses = b.whoreCosts + b.maintenance; - b.profit = b.totalIncome - b.totalExpenses; -<</script>> -<<if (_profits > 0)>> - The sale of these products makes a profit of @@.yellowgreen;<<print cashFormat(_profits)>>@@. -<<elseif (_profits < 0)>> - Due to one-off costs of hormonal implants to encourage fluid production, your dairy made a loss of @@.red;<<print cashFormat(_profits)>>@@. -<<else>> - Due to one-off costs of hormonal implants to encourage fluid production paired with existing output, your dairy broke even this week. -<</if>> + <br><br> + $farmyardNameCaps <<if _profits > 0>>makes you @@.yellowgreen;<<print cashFormat(_profits)>>@@ and <</if>>produced @@.chocolate;<<print massFormat(_foodWeek)>>@@ of food this week. -<<if ($arcologies[0].FSPastoralistLaw == 1)>> - Slave products have completely replaced traditional dairy, making the facility extremely lucrative. -<</if>> + <<set $food += _foodWeek>> -<<if ($dairySlimMaintainUpgrade == 1 && $dairySlimMaintain == 1)>> - <br> - <<if $arcologies[0].FSSlimnessEnthusiast > 80>> - Because of your arcology's great enthusiasm for small breasted slaves, the dairy's milking systems have been carefully overhauled and optimized for maximum milk extraction from slaves with smaller endowments--providing a significant boost to their otherwise modest output. This also prevents unfashionable breast expansion of already slim slaves through the milking process. - <<elseif $arcologies[0].FSSlimnessEnthusiast > 20>> - In keeping with your arcology's ideals, $dairyName has been modified to handle slim slaves with minimal impact to their body shapes. This limits potential profitability, but prevents unfashionable breast expansion of already slim slaves through the milking process. - <<else>> - Due to your arcology's lack of enthusiasm for small breasted slaves the dairy has discontinued using milking techniques that prevent breast growth through the milking process. - <<set $dairySlimMaintain = 0, $dairySlimMaintainUpgrade = 0>> - <</if>> -<</if>> - -<<if ($createBioreactors == 1) && ($bioreactorPerfectedID != 0)>> - <<for _dI = 0; _dI < _DL; _dI++>> - <<set $i = $slaveIndices[$DairyiIDs[_dI]]>> - <<if ($slaves[$i].ID == $bioreactorPerfectedID)>> - <br><br> <<= SlaveFullName($slaves[$i])>>'s breasts<<if $slaves[$i].balls > 0>>, balls<</if>><<if $slaves[$i].ovaries == 1>>, belly<</if>>, body, and mind have been completely adapted to synthesize useful products. $He has been reclassified as part of the machine $he's now permanently attached to. This combination is projected to produce approximately - <<if $slaves[$i].balls > 0>><<print 1000*Math.trunc((3*52*(45-$slaves[$i].physicalAge))/1000)>> liters of cum,<</if>> - <<if $slaves[$i].ovaries == 1>><<print 100*Math.trunc((52*(45-$slaves[$i].physicalAge))/100)>> liters of vaginal secretions, <<if $dairyPregSetting == 3>><<print 13*(45-$slaves[$i].physicalAge)>><<else>><<print 5*(45-$slaves[$i].physicalAge)>><</if>> slaves,<</if>> - and <<print 1000*Math.trunc((300*52*(45-$slaves[$i].physicalAge))/1000)>> liters of milk over a <<print 45-$slaves[$i].physicalAge>> year period before its biological components must be replaced. - <<if ($slaves[$i].ovaries == 1)>> - <<if ($slaves[$i].balls == 0)>> - <<set $bioreactorsXX++>> - <<else>> - <<set $bioreactorsHerm++>> - <</if>> - <<else>> - <<if ($slaves[$i].balls == 0)>> - <<set $bioreactorsBarren++>> - <<else>> - <<set $bioreactorsXY++>> - <</if>> - <</if>> - <<set $activeSlave = $slaves[$i]>> - <<include "Remove activeSlave">> - <<break>> + <<if $farmyardDecoration != "standard">> + <br>$farmyardNameCaps's customers enjoyed + <<if $seeBestiality == 1 && $farmyardBreeding > 0 && ($canines.length > 0 || $hooved.length > 0 || $felines.length > 0)>> + @@.green;watching farmhands fuck animals in $farmyardDecoration surroundings.@@ + <<elseif $farmyardShows == 1>> + @@.green;watching farmhands put on shows in $farmyardDecoration surroundings.@@ + <<else>> + /* TODO: not sure about this one */ + @@.green;partaking of $farmyardName's fine produce in its $farmyardDecoration décor.@@ <</if>> - <</for>> -<</if>> - -<<if $dairyDecoration != "standard">> - <br><br> $dairyNameCaps's @@.green;$dairyDecoration style is well known.@@ -<</if>> + <</if>> -<<if _DL > 0>> <!-- Statistics output --> - <<DairyStatistics 0>> + <<FarmyardStatistics 0>> <<timed 50ms>> - <<replace #dairystats>> - <<DairyStatistics 1>> + <<replace #farmyardstats>> + <<FarmyardStatistics 1>> <</replace>> <</timed>> <</if>> -<<if (_DL + _Tadd) > 0 || $Milkmaid != 0>> + +<<if _DL > 0 || $Farmer != 0>> <br><br> <</if>> diff --git a/src/facilities/farmyard/food/foodMarket.tw b/src/facilities/farmyard/food/foodMarket.tw new file mode 100644 index 0000000000000000000000000000000000000000..339dd99631301611d27308d740bd8855017bd4d1 --- /dev/null +++ b/src/facilities/farmyard/food/foodMarket.tw @@ -0,0 +1,66 @@ +:: Food Market [nobr] + +<<if $detailedCorpControls == 1>> +/* TODO: should there be different types of foods? */ +<</if>> +<<if $useTabs == 0>>__The Food Market__<</if>> +<br> + +<<set _foodValue = $foodStored*$foodCost>> /* FIXME: currently costs 25 / kg, will need tweaking */ +The food market has @@.chocolate;<<print massFormat($foodStored)>>@@ in storage, valued at a total of @@.yellowgreen;<<print cashFormat(_foodValue)>>.@@ + +/* TODO: allow for the buying and selling of food */ +<br> +<<link "Buy <<= massFormat(1)>>" "Manage Economy">><<set cashX(forceNeg($foodCost*1), "farmyard"), $foodStored += 1>><</link>> +| <<link "<<= massFormat(10)>>" "Manage Economy">><<set cashX(forceNeg($foodCost*10), "farmyard"), $foodStored += 10>><</link>> +| <<link "<<= massFormat(100)>>" "Manage Economy">><<set cashX(forceNeg($foodCost*100), "farmyard"), $foodStored += 100>><</link>> +| <<link "<<= massFormat(1000)>>" "Manage Economy">><<set cashX(forceNeg($foodCost*1000), "farmyard"), $foodStored += 1000>><</link>> +| <<link "<<= massFormat(10000)>>" "Manage Economy">><<set cashX(forceNeg($foodCost*10000), "farmyard"), $foodStored += 10000>><</link>> +<<if $foodStored > 0>> + <br> + <<link "Sell <<= massFormat(1)>>" "Manage Economy">><<set cashX(($foodCost*1), "farmyard"), $foodStored -= 1>><</link>> +<</if>> +<<if $foodStored >= 10>> + | <<link "<<= massFormat(10)>>" "Manage Economy">><<set cashX(($foodCost*10), "farmyard"), $foodStored -= 10>><</link>> +<</if>> +<<if $foodStored >= 100>> + | <<link "<<= massFormat(100)>>" "Manage Economy">><<set cashX(($foodCost*100), "farmyard"), $foodStored -= 100>><</link>> +<</if>> +<<if $foodStored >= 1000>> + | <<link "<<= massFormat(1000)>>" "Manage Economy">><<set cashX(($foodCost*1000), "farmyard"), $foodStored -= 1000>><</link>> +<</if>> +<<if $foodStored >= 10000>> + | <<link "<<= massFormat(10000)>>" "Manage Economy">><<set cashX(($foodCost*10000), "farmyard"), $foodStored -= 10000>><</link>> +<</if>> +<<if $food > 0>> + <br> + <<link "Store <<= massFormat(1)>>" "Manage Economy">><<set $foodStored += 1, $food -= 1>><</link>> +<</if>> +<<if $food >= 10>> + | <<link "<<= massFormat(10)>>" "Manage Economy">><<set $foodStored += 10, $food -= 10>><</link>> +<</if>> +<<if $food >= 100>> + | <<link "<<= massFormat(100)>>" "Manage Economy">><<set $foodStored += 100, $food -= 100>><</link>> +<</if>> +<<if $food >= 1000>> + | <<link "<<= massFormat(1000)>>" "Manage Economy">><<set $foodStored += 1000, $food -= 1000>><</link>> +<</if>> +<<if $food >= 10000>> + | <<link "<<= massFormat(10000)>>" "Manage Economy">><<set $foodStored += 10000, $food -= 10000>><</link>> +<</if>> +<<if $foodStored > 0>> + <br> + <<link "Retrieve <<= massFormat(1)>>" "Manage Economy">><<set $food += 1, $foodStored -= 1>><</link>> +<</if>> +<<if $foodStored >= 10>> + | <<link "<<= massFormat(10)>>" "Manage Economy">><<set $food += 10, $foodStored -= 10>><</link>> +<</if>> +<<if $foodStored >= 100>> + | <<link "<<= massFormat(100)>>" "Manage Economy">><<set $food += 100, $foodStored -= 100>><</link>> +<</if>> +<<if $foodStored >= 1000>> + | <<link "<<= massFormat(1000)>>" "Manage Economy">><<set $food += 1000, $foodStored -= 1000>><</link>> +<</if>> +<<if $foodStored >= 10000>> + | <<link "<<= massFormat(10000)>>" "Manage Economy">><<set $food += 10000, $foodStored -= 10000>><</link>> +<</if>> diff --git a/src/facilities/farmyard/food/foodReport.tw b/src/facilities/farmyard/food/foodReport.tw new file mode 100644 index 0000000000000000000000000000000000000000..f475c6db7a113bd23527b197ad09284468cae861 --- /dev/null +++ b/src/facilities/farmyard/food/foodReport.tw @@ -0,0 +1,3 @@ +:: Food Report [nobr] + +$arcologies[0].name produced <<= massFormat($foodLastWeek)>> of food this week. Blah blah write some more stuff here. \ No newline at end of file diff --git a/src/facilities/farmyard/food/pFoodCrisis.tw b/src/facilities/farmyard/food/pFoodCrisis.tw new file mode 100644 index 0000000000000000000000000000000000000000..3e70a1f8ba8ab73678087991b9236fb0d2d8d45a --- /dev/null +++ b/src/facilities/farmyard/food/pFoodCrisis.tw @@ -0,0 +1,118 @@ +:: P food crisis [nobr] + +/* feel free to move this into a different folder */ + +<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event">> + +<<switch $foodCrisis>> +<<case 1>> + + <<if ($PC.trading >= 100) || ($PC.career == "capitalist")>> + <<set _price = 2500>> + <<elseif ($PC.trading >= 50) || ($PC.career == "capitalist")>> + <<set _price = 5000>> + <<else>> + <<set _price = 10000>> + <</if>> + + The region supplying much of the Free City's food had been battling a famine for quite some time now -- between the deteriorating weather and the war raging on -- but it had always seemed the situation was improving, and your arcology's citizens never really had to worry about going to bed hungry. Unfortunately, that all changed this week. A firefight had broken out near one of the region's largest farms, and one of the main reserves of food was caught in the crossfire. + + <br><br> + + Supplies steadily began to dwindle, and it wasn't long before the prices of food began to rise as a result. <<if $arcologyUpgrade.hydro == 1>>Even the hydroponics system you had installed earlier could barely put a dent in the needs of your citizens.<</if>> Now, the poorest in your arcology are facing starvation. Seeing no other choice, they turned to you to provide them with sustenance. ''This is a unique opportunity.'' It's unlikely your citizens would ask for your help again, should you choose not to help them. + + <br><br> + + <span id="result"> + <<link "Provide them with ample rations">> + <<replace "#result">> + You have enough to go around, so you decide to help the desperate citizens. You have a number of rationing stations set up throughout $arcologies[0].name and announce that each citizen is entitled to four full meals a day, more than enough to sate the hunger of even the most famished of men. Your citizens are @@.green;thrilled@@ to hear that their leader is looking out for them. + <<set $rep += 1000>> + <<set cashX(forceNeg(_price*2), "farmyard")>> + <<set $rations = 2>> + <</replace>> <<if ($PC.trading >= 50) || ($PC.career == "capitalist")>>//This will cost <<print cashFormat(_price*2)>> and some upkeep, @@.springgreen;reduced by your knowledge of trading@@//<<else>>//This will cost <<print cashFormat(_price*2)>> and incur signifcant upkeep costs//<</if>> + <</link>> + <br><<link "Give them enough to survive on">> + <<replace "#result">> + You have your own problems to deal with, but that doesn't mean you don't look out for your own. You have a number of rationing stations set up throughout $arcologies[0].name and announce that each citizen is entitled to two full meals a day, just enough for your citizens not to starve. Your citizens are @@.green;happy@@ to hear that their leader is looking out for them. + <<set $rep += 500>> + <<set cashX(forceNeg(_price), "farmyard")>> + <<set $rations = 1>> + <</replace>> <<if ($PC.trading >= 50) || ($PC.career == "capitalist")>>//This will cost <<print cashFormat(_price)>> and some upkeep, @@.springgreen;reduced by your knowledge of trading@@//<<else>>//This will cost <<print cashFormat(_price)>> and incur signifcant upkeep costs//<</if>> + <</link>> + <br><<link "They can figure their problem out on their own">> + <<replace "#result">> + You have your own problems to deal with, and you simply can't afford to drop everything and solve theirs at the moment. That you can't take care of your arcology's citizen @@.red;reflects poorly on you.@@ + <<set $rep -= 500>> + <</replace>> + <</link>> + </span> + +<<case 2>> + + It's been a few weeks since your citizens had approached you asking for aid, and since then, the situation hasn't improved. In fact, it had gotten worse, and food prices have reached a record high. The tension in $arcologies[0].name is palpable, and small riots have broken out more than once over disputes about food. You are not surprised, then, when you receive a visit from some of the "middle class" /* TODO: still not really happy with this */ citizens. They state that they noticed that you have been giving out rations to the poorer citizens, and, now that the situation has become dire, were wondering if you would be willing to do the same for them. + + <br><br> + + <span id="result"> + <<link "Give them generous rations as well">> + <<replace "#result">> + You still have more than enough to go around, so you inform the leaders that you have decided you will give them large rations, enough to feed even the hungriest citizen. The leaders are @@.green;very pleased@@ to hear that you are taking care of them as well. + <<set $rep += 1000>> + <<set cashX(forceNeg(_price*2), "farmyard")>> + <<set $rations = 4>> + <</replace>> + <</link>> <<if ($PC.trading >= 50) || ($PC.career == "capitalist")>>//This will cost <<print cashFormat(_price*2)>> and some upkeep, @@.springgreen;reduced by your knowledge of trading@@//<<else>>//This will cost <<print cashFormat(_price*2)>> and incur signifcant upkeep costs//<</if>> + <br><<link "Provide them with enough sustenance to survive on too">> + <<replace "#result">> + As much as you'd like to provide them with all of the food in the world, it simply is not feasible in your current situation. Therefore, you announce to the leaders that you will provide them only enough rations to live off of. The leaders understand, and are @@.green;pleased@@ to hear that you would provide for them at all. + <<set $rep += 500>> + <<set cashX(forceNeg(_price), "farmyard")>> + <<set $rations = 3>> + <</replace>> + <</link>> <<if ($PC.trading >= 50) || ($PC.career == "capitalist")>>//This will cost <<print cashFormat(_price)>> and some upkeep, @@.springgreen;reduced by your knowledge of trading@@//<<else>>//This will cost <<print cashFormat(_price)>> and incur signifcant upkeep costs//<</if>> + <br><<link "Change your mind about giving out any rations at all">> + <<replace "#result">> + Having given the people rations at all was a mistake, you think to yourself. You have a great number of your own problems to deal with, and providing rations to everyone that can't afford food is putting an unnecessary strain on your own situation. With this is mind, you tell the leaders that you simply can't help them at this time, and have decided that you can't help anyone with food at all. The citizens are understandbly @@.red;angry@@ that you would go back on your word. + <<set $rep -= 1000>> + <<set $rations = 0>> + <</replace>> + <</link>> + </span> + +<<case 3>> + + Another few weeks has passed since your last meeting with your citizens regarding rationing, and things have only deteriorated further since then. It was only a matter, then, before the wealthier citizens of $arcologies[0].name paid you a visit one afternoon. While being able to afford food wasn't exactly difficult for them as of yet, they could read the writing on the wall, and knew it would only be a matter of time before the prices of food were so high that even they would be forced to beg for handouts. + + <br><br> + + Seeing the progress you had made since taking control of the arcology, they decided their best course of action was to come to you with a proposition. They would allow you to take full control of the food supply in $arcologies[0].name, and in return you would keep them well-fed. ''This is a unique opportunity.'' If you turn their offer down, the citizens of your arcology will find another way of surviving. + + <span id="result"> + <<link "Set up a food market">> + <<replace "#result">> + You know that a proposition like this wouldn't have been easy for your citizens to make, and you also know that there is no one better suited to a task like this than you. You announce that you will be setting up a market to buy, sell, and store food in, and that you'll make sure that the citizens will continue to be well-fed. Your citizens are @@.green;glad@@ to hear that you are looking out for their best interests. + <<set $rep += 1000>> + <<set cashX(forceNeg(_price*5), "farmyard")>> + <<set $foodMarket = 1>> + <<unset $rations>> + <</replace>> + <</link>> <<if ($PC.trading >= 50) || ($PC.career == "capitalist")>>//This will cost an initial investment of <<print cashFormat(_price*5)>>, @@.springgreen;reduced by your knowledge of trading@@//<<else>>//This will cost an initial investment of <<print cashFormat(_price*5)>>//<</if>> + <br><<link "Politely decline their offer, but continue giving them rations">> + <<replace "#result">> + Things have been going fairly well for you, but not //that// well -- setting up an entirely new place to buy, sell, and store food would no doubt be an expensive undertaking. You tell the citizens that while you can't spare the resources to create a new market at the moment, you will honor your past agreement and continue giving them free rations. The people initially seem a bit disappointed that you don't seem to want to expand $arcologies[0].name, but are ultimately @@.green;glad@@ to hear that you'll continue taking care of them. + <<set $rep += 500>> + <<set cashX(forceNeg(_price), "farmyard")>> + <<set $rations = 5>> + <</replace>> + <</link>> <<if ($PC.trading >= 50) || ($PC.career == "capitalist")>>//This will cost <<print cashFormat(_price)>> and some upkeep, @@.springgreen;reduced by your knowledge of trading@@//<<else>>//This will cost <<print cashFormat(_price)>> and incur signifcant upkeep costs//<</if>> + <br><<link "Turn down their offer and end rationing completely">> + <<replace "#result">> + While a new place to buy, sell, and store food in $arcologies[0].name would most likely come in quite handy in the future, you ultimately decide that you simply cannot spare the resources required. In fact, giving rations at all was a costly venture, and after not having seen any sort of return-on-investment, you decide that you are unable to continue giving out rations anymore. Your citizens are @@.red;angry@@ at the fact that you seem not to care about them at all, but that's their problem. + <<set $rep -= 1000>> + <<unset $rations>> + <</replace>> + <</link>> + </span> + +<</switch>> \ No newline at end of file diff --git a/src/facilities/farmyard/futureAnimals.tw b/src/facilities/farmyard/futureAnimals.tw new file mode 100644 index 0000000000000000000000000000000000000000..e015fe09d69fe7c9ebb7ea47dafb519dedd2d948 --- /dev/null +++ b/src/facilities/farmyard/futureAnimals.tw @@ -0,0 +1,363 @@ +/* Putting them here because commenting them out was breaking for some reason */ + +<<if $animalsBought.germanShepherds == 0>> + <<link "Purchase German Shepherds" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.germanShepherds = 1, $animalsBought.canines += 1, $canines.push("German Shepherds")>><</link>> + <br> + <<elseif $animalsBought.germanShepherds == 1>> + German Shepherds + <<if $activeCanine.breed != "German Shepherd">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "German Shepherd", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.goldenRetrievers == 0>> + <<link "Purchase Golden Retrievers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.goldenRetrievers = 1, $animalsBought.canines += 1, $canines.push("Golden Retrievers")>><</link>> + <br> + <<elseif $animalsBought.goldenRetrievers == 1>> + Golden Retrievers + <<if $activeCanine.breed != "Golden Retriever">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Golden Retriever", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.frenchBulldogs == 0>> + <<link "Purchase French Bulldogs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.frenchBulldogs = 1, $animalsBought.canines += 1, $canines.push("French Bulldogs")>><</link>> + <br> + <<elseif $animalsBought.frenchBulldogs == 1>> + French Bulldogs + <<if $activeCanine.breed != "French Bulldog">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "French Bulldog", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.bulldogs == 0>> + <<link "Purchase Bulldogs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.bulldogs = 1, $animalsBought.canines += 1, $canines.push("Bulldogs")>><</link>> + <br> + <<elseif $animalsBought.bulldogs == 1>> + Bulldogs + <<if $activeCanine.breed != "Bulldog">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Bulldog", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.beagles == 0>> + <<link "Purchase Beagles" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.beagles = 1, $animalsBought.canines += 1, $canines.push("Beagles")>><</link>> + <br> + <<elseif $animalsBought.beagles == 1>> + Beagles + <<if $activeCanine.breed != "Beagle">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Beagle", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.poodles == 0>> + <<link "Purchase Poodles" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.poodles = 1, $animalsBought.canines += 1, $canines.push("Poodles")>><</link>> + <br> + <<elseif $animalsBought.poodles == 1>> + Poodles + <<if $activeCanine.breed != "Poodle">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Poodle", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.rottweilers == 0>> + <<link "Purchase Rottweilers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.rottweilers = 1, $animalsBought.canines += 1, $canines.push("Rottweilers")>><</link>> + <br> + <<elseif $animalsBought.rottweilers == 1>> + Rottweilers + <<if $activeCanine.breed != "Rottweiler">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Rottweiler", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.yorkshireTerriers == 0>> + <<link "Purchase Yorkshire Terriers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.yorkshireTerriers = 1, $animalsBought.canines += 1, $canines.push("Yorkshire Terriers")>><</link>> + <br> + <<elseif $animalsBought.yorkshireTerriers == 1>> + Yorkshire Terriers + <<if $activeCanine.breed != "Yorkshire Terrier">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Yorkshire Terrier", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.siberianHuskies == 0>> + <<link "Purchase Siberian Huskies" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.siberianHuskies = 1, $animalsBought.canines += 1, $canines.push("Siberian Huskies")>><</link>> + <br> + <<elseif $animalsBought.siberianHuskies == 1>> + Siberian Huskies + <<if $activeCanine.breed != "Siberian Husky">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Siberian Husky", type: "canine", dickSize: "big", ballType: "dog"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> +<</if>> + +<<if $farmyardCages > 0>> + <br> + Cats: + <br><br> + <<if $animalsBought.siameses == 0>> + <<link "Purchase Siamese cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.siameses = 1, $animalsBought.felines += 1, $felines.push("Siamese cats")>><</link>> + <br> + <<elseif $animalsBought.siameses == 1>> + Siamese cats + <<if $activeFeline.breed != "Siamese">> + [[Set as active canine|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Siamese", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.persians == 0>> + <<link "Purchase Persian cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.persians = 1, $animalsBought.felines += 1, $felines.push("Persian cats")>><</link>> + <br> + <<elseif $animalsBought.persians == 1>> + Persian cats + <<if $activeFeline.breed != "Persian">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Persian", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.maineCoons == 0>> + <<link "Purchase Maine Coon cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.maineCoons = 1, $animalsBought.felines += 1, $felines.push("Maine Coon cats")>><</link>> + <br> + <<elseif $animalsBought.maineCoons == 1>> + Maine Coon cats + <<if $activeFeline.breed != "Maine Coon">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Maine Coon", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.ragdolls == 0>> + <<link "Purchase Ragdoll cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.ragdolls = 1, $animalsBought.felines += 1, $felines.push("Ragdoll cats")>><</link>> + <br> + <<elseif $animalsBought.ragdolls == 1>> + Ragdoll cats + <<if $activeFeline.breed != "Ragdoll">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Ragdoll", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.bengals == 0>> + <<link "Purchase Bengal cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.bengals = 1, $animalsBought.felines += 1, $felines.push("Bengal cats")>><</link>> + <br> + <<elseif $animalsBought.bengals == 1>> + Bengal cats + <<if $activeFeline.breed != "Bengal">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Bengal", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.abbysinians == 0>> + <<link "Purchase Abbysinian cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.abbysinians = 1, $animalsBought.felines += 1, $felines.push("Abbysinian cats")>><</link>> + <br> + <<elseif $animalsBought.abbysinians == 1>> + Abbysinian cats + <<if $activeFeline.breed != "Abbysinian">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Abbysinian", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.birmans == 0>> + <<link "Purchase Birman cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.birmans = 1, $animalsBought.felines += 1, $felines.push("Birman cats")>><</link>> + <br> + <<elseif $animalsBought.birmans == 1>> + Birman cats + <<if $activeFeline.breed != "Birman">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Birman", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.orientalShorthairs == 0>> + <<link "Purchase Oriental Shorthair cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.orientalShorthairs = 1, $animalsBought.felines += 1, $felines.push("Oriental Shorthair cats")>><</link>> + <br> + <<elseif $animalsBought.orientalShorthairs == 1>> + Oriental Shorthair cats + <<if $activeFeline.breed != "Oriental Shorthair">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Oriental Shorthair", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.sphynxes == 0>> + <<link "Purchase Sphynx cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.sphynxes = 1, $animalsBought.felines += 1, $felines.push("Sphynx cats")>><</link>> + <br> + <<elseif $animalsBought.sphynxes == 1>> + Sphynx cats + <<if $activeFeline.breed != "Sphynx">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Sphynx", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.russianBlues == 0>> + <<link "Purchase Russian Blue cats" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.russianBlues = 1, $animalsBought.felines += 1, $felines.push("Russian Blue cats")>><</link>> + <br> + <<elseif $animalsBought.russianBlues == 1>> + Russian Blue cats + <<if $activeFeline.breed != "Russian Blue">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Russian Blue", type: "feline", dickSize: "small", ballType: "cat"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> +<</if>> +<</if>> + + <<if $animalsBought.foxes == 0>> + <<link "Purchase foxes" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.foxes = 1, $animalsBought.canines += 1, $canines.push("foxes")>><</link>> + <br> + <<elseif $animalsBought.foxes == 1>> + /*Red foxes play in one corner of their kennels, chasing one another.(OLD)*/ + Foxes + <<if $activeCanine.species != "fox">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "fox", speciesCap: "Fox", speciesPlural: "foxes", type: "canine", dickSize: "large", ballType: "fox"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.jackals == 0>> + <<link "Purchase jackals" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.jackals = 1, $animalsBought.canines += 1, $canines.push("jackals")>><</link>> + <br> + <<elseif $animalsBought.jackals == 1>> + /*A group of male jackals are fighting over a potential mate, causing quite a ruckus.(OLD)*/ + Jackals + <<if $activeCanine.species != "jackal">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "jackal", speciesCap: "Jackal", speciesPlural: "jackals", type: "canine", dickSize: "large", ballType: "jackal"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> + <<if $animalsBought.dingos == 0>> + <<link "Purchase dingos" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.dingos = 1, $animalsBought.canines += 1, $canines.push("dingos")>><</link>> + <br> + <<elseif $animalsBought.dingos == 1>> + /*The dingos are eating their meal, growling at each other when one gets to close to another's food.(OLD)*/ + Dingos + <<if $activeCanine.species != "dingo">> + [[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dingo", speciesCap: "Dingo", speciesPlural: "dingos", type: "canine", dickSize: "large", ballType: "dingo"}]] + <<else>> + //Set as active canine// + <</if>> + <br> + <</if>> +<</if>> + + +<<if $farmyardStable > 1>> + <br> + Hooved Animals: + <br><br> + <<if $animalsBought.zebras == 0>> + <<link "Purchase zebras" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.zebras = 1, $animalsBought.hooved += 1, $hooved.push("zebras")>><</link>> + <<elseif $animalsBought.zebras == 1>> + Zebras + <<if $activeHooved.species != "zebra">> + [[Set as active hooved|FarmyardAnimals][$activeHooved = {species: "zebra", speciesCap: "Zebra", speciesPlural: "zebras", type: "hooved", dickSize: "huge", ballType: "zebra"}]] + <<else>> + //Set as active hooved// + <</if>> + <</if>> + <br> +<</if>> + +<<if $animalsBought.cougars == 0>> + <<link "Purchase cougars" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.cougars = 1, $animalsBought.felines += 1, $felines.push("cougars")>><</link>> + <br> + <<elseif $animalsBought.cougars == 1>> + /*The cougars are sleeping, their lean bodies scattered around under trees. (OLD)*/ + Cougars + <<if $activeFeline.species != "cougar">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cougar", speciesCap: "Cougar", speciesPlural: "cougars", type: "feline", dickSize: "large", ballType: "cougar"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.jaguars == 0>> + <<link "Purchase jaguars" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.jaguars = 1, $animalsBought.felines += 1, $felines.push("jaguars")>><</link>> + <br> + <<elseif $animalsBought.jaguars == 1>> + /*You can see a few jaguars laying around in the trees in their enclosure. (OLD)*/ + Jaguars + <<if $activeFeline.species != "jaguar">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "jaguar", speciesCap: "Jaguar", speciesPlural: "jaguars", type: "feline", dickSize: "large", ballType: "jaguar"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.lynx == 0>> + <<link "Purchase lynxs" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.lynx = 1, $animalsBought.felines += 1, $felines.push("lynx")>><</link>> + <br> + <<elseif $animalsBought.lynx == 1>> + /*The lynxes are playfully running around their enclosure. (OLD)*/ + Lynx + <<if $activeFeline.species != "lynx">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "lynx", speciesCap: "Lynx", speciesPlural: "lynx", type: "feline", dickSize: "large", ballType: "lynx"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.leopards == 0>> + <<link "Purchase leopards" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.leopards = 1, $animalsBought.felines += 1, $felines.push("leopards")>><</link>> + <br> + <<elseif $animalsBought.leopards == 1>> + /*The leopards are lazing about in the trees in their enclosure. (OLD)*/ + Leopards + <<if $activeFeline.species != "leopard">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "leopard", speciesCap: "Leopard", speciesPlural: "leopards", type: "feline", dickSize: "large", ballType: "leopard"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> + <<if $animalsBought.tigers == 0>> + <<link "Purchase tigers" "FarmyardAnimals">><<set cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "farmyard"), $animalsBought.tigers = 1, $animalsBought.felines += 1, $felines.push("tigers")>><</link>> + <br> + <<elseif $animalsBought.tigers == 1>> + /*Some of the tigers are swimming, and the ones that aren't are lazing about. (OLD)*/ + Tigers + <<if $activeFeline.species != "tiger">> + [[Set as active feline|FarmyardAnimals][$activeFeline = {species: "tiger", speciesCap: "Tiger", speciesPlural: "tigers", type: "feline", dickSize: "large", ballType: "tiger"}]] + <<else>> + //Set as active feline// + <</if>> + <br> + <</if>> \ No newline at end of file diff --git a/src/facilities/farmyard/saWorkTheFarm.tw b/src/facilities/farmyard/saWorkTheFarm.tw new file mode 100644 index 0000000000000000000000000000000000000000..f77103cfa42bde7d1f377f8bd0829a7b96b4bd75 --- /dev/null +++ b/src/facilities/farmyard/saWorkTheFarm.tw @@ -0,0 +1,494 @@ +:: SA work the farm [nobr] + +<!-- Statistics gathering --> +<<set _slave = $slaves[$i]>> +<<set _incomeStats = getSlaveStatisticData(_slave, _slave.assignment === Job.FARMYARD ? $facility.farmyard : undefined)>> +<<set _incomeStats.food = 0>> +<<set _arcology = $arcologies[0]>> + +<<if ndef _slave.lactationAdaptation>> + <<set _slave.lactationAdaptation = 0>> +<</if>> + +<<set _food = 0>> + +works as a farmhand this week. +<<if $farmyard > 0>> +<<if $farmyardBreeding < 2>> + <<if ($Farmer != 0)>> + While there, $he gets the benefit of $Farmer.slaveName's <<if ($Farmer.physicalAge < 21)>>youthful energy<<else>>care<</if>><<if ($Farmer.oralSkill >= 100)>> and talented tongue<</if>>. + <<if (_slave.devotion < $FarmerDevotionThreshold)>> + <<set _slave.devotion += $FarmerDevotionBonus>> + <</if>> + <<if (_slave.trust < $FarmerTrustThreshold)>> + <<set _slave.trust += $FarmerTrustBonus>> + <</if>> + <<if (_slave.health < 100)>> + <<set _slave.health += $FarmerHealthBonus>> + <</if>> + <</if>> +<</if>> +<</if>> + +/* OPEN FOOD PRODUCTION */ + +<<set _food = foodAmount(_slave)>> + +/* TODO: rewrite these so they string together */ +<<if ($Farmer != 0)>> + <<print $Farmer.slaveName>> watches over $him, making sure that $he doesn't slack off and works as hard as $he needs to. +<</if>> +<<if (_slave.devotion > 50)>> + $He's so devoted to you that $he works harder and produces more food. +<<elseif (_slave.devotion < -50)>> + $He's so resistant that $he doesn't work as hard, and thus produces less food. +<</if>> + +<<if (_slave.health > 50)>> + $His shining health helps $him really work hard. +<<elseif (_slave.health < -50)>> + $His poor health impedes $his ability to work efficiently. +<</if>> + +<<if (_slave.muscles > 50)>> + $His muscular form helps $him work better, increasing $his productivity. +<<elseif (_slave).muscles < -50>> + $He is so weak that $he is not able to work effectively. +<</if>> + +<<if (_slave.weight > 95)>> + $He is so overweight that $he has to stop every few minutes to catch $his breath, and so $his productivity suffers. +<</if>> + +<<if (_slave.eyes == -1)>> + $His nearsightedness makes it harder for $him to work as hard as $he otherwise would. +<<elseif (_slave.eyes < -1)>> + $His blindness makes it extremely difficult for $him to work, severely limiting $his production. +<</if>> + +<<if (_slave.hears == -1)>> + $He is hard-of-hearing, which gets in the way of $his work whenever $he misses directions<<if $Farmer != 0>> from $Farmer.name<</if>>. +<<elseif (_slave.hears < -1)>> + $He is deaf, which gets in the way of $his work whenever $he misses directions<<if $Farmer != 0>> from $Farmer.name<</if>>. +<</if>> + +<<if (_slave.tired == 1)>> + $He is so tired that $he doesn't have the energy to work efficiently, impacting $his production. +<</if>> + +<<set _food = Math.trunc(_food)>> +<<if _food < 1>> + <<set _food = 1>> +<</if>> +<<set $foodTotal += _food, $food += _food>> + +As a result, $he produces @@.chocolate;<<print massFormat(_food)>>@@ of food over the week. +<<set _incomeStats.food += _food>> + +/* CLOSE FOOD PRODUCTION */ + +/* OPEN SHOWS */ + +<<set _incomeStats.income += farmShowsIncome(_slave)>> +<<if $farmyardShows == 1>> + +$He also puts on shows with animals this week. + + /* OPEN FS SUBSECTION */ + +/* TODO: rewrite some of these to sound more natural */ + <<if _arcology.FSSupremacist != "unset">> + <<if _slave.race == _arcology.FSSupremacistRace>> + Society @@.red;disapproves@@ of your allowing a member of the elite race to be degraded in such a fashion, and thus $he didn't earn as much. + <</if>> + <</if>> + <<if _arcology.FSSubjugationist != "unset">> + <<if _slave.race == _arcology.FSSubjugationistRace>> + Society @@.green;approves@@ of the degradation you submit your _arcology.FSSubjugationistRace slaves to, and so $he earns you a bit more. + <<else>> + Society doesn't disapprove of $him not being _arcology.FSSubjugationistRace, but $he doesn't earn as much as $he would if he was _arcology.FSSubjugationistRace. + <</if>> + <</if>> + <<if _arcology.FSRepopulationFocus != "unset">> + <<if _slave.pregWeek > 16>> + <<if _slave.eggType != "human">> + Society @@.green;approves@@ of you putting another child in $him, even if it isn't a human child. /* TODO: does this make sense? */ + <</if>> + Society @@.green;greatly approves@@ of your having pregnant slaves <<if $seeBestiality == 1>>put on shows<<else>>have sex<</if>> with animals. + <<else>> + Society @@.red;disapproves@@ of your having slaves <<if $seeBestiality == 1>>put on shows<<else>>have sex<</if>> with animals while not sporting baby bumps. + <</if>> + <</if>> + <<if _arcology.FSRestart != "unset">> + <<if _slave.pregWeek > 16>> + <<if _slave.eggType != "human">> + Society is @@.red;disgusted@@ by $his pregnancy, especially when they realize that what it is in $his womb is not human. /* TODO: does this make sense? */ + <</if>> + <<else>> + Society is @@.red;extremely disgusted@@ by $his pregnancy and the fact that you would have $him <<if $seeBestiality == 1>>put on shows<<else>>have sex<</if>> with animals while sporting a baby bump. + <</if>> + <</if>> + <<if _arcology.FSGenderRadicalist != "unset">> + <<if _slave.genes == "XY">> + /* TODO: not sure what to do for this */ + <<else>> + <</if>> + <</if>> + <<if _arcology.FSGenderFundamentalist != "unset">> + <<if _slave.genes == "XX">> + /* TODO: not sure what to do for this */ + <<else>> + <</if>> + <</if>> + <<if _arcology.FSPaternalist != "unset">> + <<if $seeBestiality == 1>> + <<if $farmyardBreeding == 1>> + Your citizens are @@.red;very disapproving@@ of the fact that you would go so far as to allow your slaves to be knocked up by filthy beasts. + <<else>> + Your citizens @@.red;disapprove@@ of the fact that you would allow your slaves to be degraded in such a manner. + <</if>> + <</if>> + <</if>> + <<if _arcology.FSDegradationist != "unset">> + <<if $seeBestiality == 1>> + <<if $farmyardBreeding == 1>> + Your citizens are @@.green;very approving@@ of the fact that you would go so far as to allow your slaves to be knocked up by filthy beasts. /* TODO: write something more original for these */ + <<else>> + Your citizens @@.green;approve@@ of the fact that you would allow your slaves to be degraded in such a manner. + <</if>> + <</if>> + <</if>> + <<if _arcology.FSBodyPurist != "unset">> + /* TODO: requirements for these might change */ + <<if _slave.boobsImplant > 0>> + <</if>> + <<if _slave.buttImplant > 0>> + <</if>> + <<if _slave.faceImplant > 0>> + <</if>> + <<if _slave.lipsImplant > 0>> + <</if>> + <</if>> + <<if _arcology.FSTransformationFetishist != "unset">> + <<if _slave.boobsImplant > 0>> + <</if>> + <<if _slave.buttImplant > 0>> + <</if>> + <<if _slave.faceImplant > 0>> + <</if>> + <<if _slave.lipsImplant > 0>> + <</if>> + <</if>> + <<if _arcology.FSYouthPreferentialist != "unset">> + <<if _slave.visualAge > 25>> + _arcology.name's citizens @@.red;disapprove@@ of your using such old slaves to put on shows. + <<else>> + _arcology.name's citizens @@.green;approve@@ of your using young slaves to put on shows. + <</if>> + <</if>> + <<if _arcology.FSMaturityPreferentialist != "unset">> + <<if _slave.visualAge > 25>> + _arcology.name's citizens @@.green;approve@@ of your using mature slaves to put on shows. + <<else>> + _arcology.name's citizens @@.red;disapprove@@ of your using young slaves to put on shows. + <</if>> + <</if>> + <<if _arcology.FSSlimnessEnthusiast != "unset">> + <<if _slave.weight > 10>> + Society finds such a flabby slave @@.red;absolutely disgusting.@@ /* TODO: this needs work */ + <</if>> + <<if _slave.boobs > 799>> + <</if>> + <<if _slave.butt > 3>> + <</if>> + <</if>> + <<if _arcology.FSAssetExpansionist != "unset">> + <<if _slave.weight > 10>> /* TODO: not sure if weight should be in here */ + <</if>> + <<if _slave.boobs > 799>> + <</if>> + <<if _slave.butt > 3>> + <</if>> + <</if>> + <<if _arcology.FSPastoralist != "unset">> + <<if _slave.boobs > 799>> /* TODO: this will probably change */ + <</if>> + <<if _slave.lactation > 0>> + <</if>> + <</if>> + <<if _arcology.FSPhysicalIdealist != "unset">> + <<if _slave.height > 169>> + <<else>> + <</if>> + <</if>> + <<if _arcology.FSHedonisticDecadence != "unset">> + <<if _slave.weight > 10>> + <<else>> + <</if>> + <</if>> + <<if _arcology.FSChattelReligionist != "unset">> + <<if _slave.devotion < 21>> + <</if>> + <</if>> + + /* CLOSE FS SUBSECTION */ + + <<if setup.entertainmentCareers.includes(_slave.career)>> + <</if>> + + <<if setup.farmerCareers.includes(_slave.career)>> + <</if>> + + <<if _slave.prestige == 1>> + Because some of your citizens already know of $him, $he earns more. + <<elseif _slave.prestige == 2>> + Because a lot of your citizens already know of $him, he earns quite a bit more. + <<elseif _slave.prestige == 3>> + Because $he is so famous, $he earns a lot more then $he would otherwise. + <</if>> + + <<if _slave.pornPrestige == 1>> /* TODO: are pornPrestige and prestige mutually exclusive? */ + $He earns a bit more because some of your citizens already know $him from porn. + <<elseif _slave.pornPrestige == 2>> + $He earns quite a bit more because a lot of your citizens already know $him from porn. + <<elseif _slave.pornPrestige == 3>> + $He earns a lot more because $he is so famous from porn. + <</if>> + + <<if _slave.health > 20>> + $He is in such excellent health that $he is able to put on longer shows, earning you more. + <<elseif _slave.health < -20>> + $He is in such poor health that $he isn't able to put on shows for very long, cutting into your profits. + <</if>> + + <<if _slave.face > 10>> + $He is so <<if _slave.genes == "XX">>pretty<<else>>good-looking<</if>> that $his audience pays more to watch $him put on shows. + <<elseif _slave.face < -10>> + $His audience isn't willing to pay as much because of how unattractive $his face is. /* TODO: not real happy with this sentence */ + <</if>> + + /* TODO: rewrite this block to work with different combinations of trust / devotion */ + <<if _slave.devotion > 50>> + $He is so devoted to you + <<elseif _slave.devotion < -50>> + $He is so resistant + <</if>> + + <<if _slave.trust > 50>> + and so trusting that $he tries hard to + <<elseif _slave.trust < -50>> + and so fearful that $he does + <</if>> + + <<if _slave.weight > 30>> + Your citizens are not willing to pay as much to see such a fat slave put on shows, so $he loses some income. + <<elseif _slave.weight < -30>> /* TODO: not happy with this */ + Your citizens are not willing to pay as much to see such a skinny slave put on shows, so $he loses some income. + <</if>> + + <<if _slave.muscles > 30>> + <<elseif _slave.muscles < -30>> + <</if>> + + <<if _slave.eyes < 1>> + $His <<if _slave.eyes < 0>>blindness<<else>>nearsightedness makes it harder for $him to see what $he's doing, affecting $his ability to put on a good show. + <</if>> + + <<if _slave.hears < 0>> + $His <<if _slave.hears < -1>>lack of <<else>>poor <</if>>hearing makes it difficult for $him to do a good job of putting on a show. + <</if>> + + <<if _slave.boobs > 800>> + <</if>> + + <<if _slave.butt > 4>> + <</if>> + + <<if _slave.preg < 0>> + <</if>> + + <<if _slave.tired == 1>> + $He is so tired that the energy in $his shows is basically nonexistent, affecting $his profits. + <</if>> + + <<if _slave.chem > 10>> + <</if>> + + <<if _slave.intelligence > 50>> + <<elseif _slave.intelligence < -50>> + <</if>> + + <<if _slave.energy < 20>> + <</if>> + + <<if _slave.fetish == "submissive">> + <<elseif _slave.fetish == "humiliation">> + <<elseif _slave.fetish == "masochist">> + <</if>> + +<</if>> + +/* CLOSE SHOWS*/ + + <<if _slave.fetishKnown && ((_slave.fetish == ("submissive") || ("humiliation") || ("masochist")) || (_slave.energy > 95))>> + <<if $farmyardShows == 1>> + <<if $seeBestiality == 1>> + Getting fucked by animals is the perfect job for $him, as far as $he can tell. @@.hotpink;$He is happy@@ to spend $his days being utterly degraded. + <<else>> + $He loves putting on shows with animals, and as far as $he can tell, it's the perfect job for $him. @@.hotpink;$He is happy@@ to spend $his days doing something so degrading. /* TODO: should this use a different set of fetishes? also not sure how degrading putting on shows is */ + <</if>> + <<else>> + /* TODO: add something here for slaves that are not putting on shows */ + <</if>> + <<set _slave.devotion += 1>> + <<if _slave.need>><<set _slave.need = 0>><</if>> + <</if>> + <</if>> + +<<if (_slave.behavioralQuirk == "fitness")>> + _slave.slaveName @@.hotpink;privately enjoys@@ the excercise $he receives while working in $farmyardName. + <<set _slave.devotion += 1>> +<</if>> + +/* TODO: add more vignettes */ +<<if ($showVignettes == 1 && (_slave.assignment == "work as a farmhand"))>> + <<set _vignette = GetVignette(_slave)>> + __This week__ _vignette.text + <<if (_vignette.type == "cash")>> + <<set FResult(_slave)>> + <<if (_vignette.effect > 0)>> + @@.yellowgreen;making you an extra <<print cashFormat(Math.trunc($FResult*_vignette.effect))>>.@@ + <<elseif (_vignette.effect < 0)>> + @@.red;losing you <<print cashFormat(Math.abs(Math.trunc($FResult*_vignette.effect)))>>.@@ + <<else>> + an incident without lasting effect. + <</if>> + <<set cashX(Math.trunc($FResult*_vignette.effect), "farmyard")>> + <<set _incomeStats.income += Math.trunc($FResult*_vignette.effect)>> + <<elseif (_vignette.type == "devotion")>> + <<if (_vignette.effect > 0)>> + <<if _slave.devotion > 50>> + @@.hotpink;increasing $his devotion to you.@@ + <<elseif _slave.devotion >= -20>> + @@.hotpink;increasing $his acceptance of you.@@ + <<elseif _slave.devotion > -10>> + @@.hotpink;reducing $his dislike of you.@@ + <<else>> + @@.hotpink;reducing $his hatred of you.@@ + <</if>> + <<elseif (_vignette.effect < 0)>> + <<if _slave.devotion > 50>> + @@.mediumorchid;reducing $his devotion to you.@@ + <<elseif _slave.devotion >= -20>> + @@.mediumorchid;reducing $his acceptance of you.@@ + <<elseif _slave.devotion > -10>> + @@.mediumorchid;increasing $his dislike of you.@@ + <<else>> + @@.mediumorchid;increasing $his hatred of you.@@ + <</if>> + <<else>> + an incident without lasting effect. + <</if>> + <<set _slave.devotion += 1*_vignette.effect>> + <<elseif (_vignette.type == "trust")>> + <<if (_vignette.effect > 0)>> + <<if _slave.trust > 20>> + @@.mediumaquamarine;increasing $his trust in you.@@ + <<elseif _slave.trust > -10>> + @@.mediumaquamarine;reducing $his fear of you.@@ + <<else>> + @@.mediumaquamarine;reducing $his terror of you.@@ + <</if>> + <<elseif (_vignette.effect < 0)>> + <<if _slave.trust > 20>> + @@.gold;reducing $his trust in you.@@ + <<elseif _slave.trust >= -20>> + @@.gold;increasing $his fear of you.@@ + <<else>> + @@.gold;increasing $his terror of you.@@ + <</if>> + <<else>> + an incident without lasting effect. + <</if>> + <<set _slave.trust += 1*_vignette.effect>> + <<elseif (_vignette.type == "health")>> + <<if (_vignette.effect > 0)>> + @@.green;improving $his health.@@ + <<elseif (_vignette.effect < 0)>> + @@.red;affecting $his health.@@ + <<else>> + an incident without lasting effect. + <</if>> + <<set _slave.health += 2*_vignette.effect>> + <<else>> + <<set FResult(_slave)>> + <<if (_vignette.effect > 0)>> + @@.green;gaining you a bit of reputation.@@ + <<elseif (_vignette.effect < 0)>> + @@.red;losing you a bit of reputation.@@ + <<else>> + an incident without lasting effect. + <</if>> + <<set $rep += Math.trunc($FResult*_vignette.effect*0.1)>> + <<set _incomeStats.rep += Math.trunc($FResult*_vignette.effect*0.1)>> + <</if>> + +<</if>> + +/* FACILITY DECORATION IMPACTS */ + +<<if _slave.assignment == "work as a farmhand">> +<<if $farmyardDecoration != "standard">> +<<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)>> +<<case "Aztec Revivalist">> + <<set $arcologies[0].FSAztecRevivalist = Math.clamp($arcologies[0].FSAztecRevivalist += _fsGain,0,100)>> +<<case "Egyptian Revivalist">> + <<set $arcologies[0].FSEgyptianRevivalist = Math.clamp($arcologies[0].FSEgyptianRevivalist += _fsGain,0,100)>> +<<case "Edo Revivalist">> + <<set $arcologies[0].FSEdoRevivalist = Math.clamp($arcologies[0].FSEdoRevivalist += _fsGain,0,100)>> +<<case "Arabian Revivalist">> + <<set $arcologies[0].FSArabianRevivalist = Math.clamp($arcologies[0].FSArabianRevivalist += _fsGain,0,100)>> +<<case "Chinese Revivalist">> + <<set $arcologies[0].FSChineseRevivalist = Math.clamp($arcologies[0].FSChineseRevivalist += _fsGain,0,100)>> +<<case "Chattel Religionist">> + <<set $arcologies[0].FSChattelReligionist = Math.clamp($arcologies[0].FSChattelReligionist += _fsGain,0,100)>> +<<case "Degradationist">> + <<set $arcologies[0].FSDegradationist = Math.clamp($arcologies[0].FSDegradationist += _fsGain,0,100)>> +<<case "Repopulation Focus">> + <<set $arcologies[0].FSRepopulationFocus = Math.clamp($arcologies[0].FSRepopulationFocus += _fsGain,0,100)>> +<<case "Eugenics">> + <<set $arcologies[0].FSRestart = Math.clamp($arcologies[0].FSRestart += _fsGain,0,100)>> +<<case "Asset Expansionist">> + <<set $arcologies[0].FSAssetExpansionist = Math.clamp($arcologies[0].FSAssetExpansionist += _fsGain,0,100)>> +<<case "Transformation Fetishist">> + <<set $arcologies[0].FSTransformationFetishist = Math.clamp($arcologies[0].FSTransformationFetishist += _fsGain,0,100)>> +<<case "Gender Radicalist">> + <<set $arcologies[0].FSGenderRadicalist = Math.clamp($arcologies[0].FSGenderRadicalist += _fsGain,0,100)>> +<<case "Gender Fundamentalist">> + <<set $arcologies[0].FSGenderFundamentalist = Math.clamp($arcologies[0].FSGenderFundamentalist += _fsGain,0,100)>> +<<case "Physical Idealist">> + <<set $arcologies[0].FSPhysicalIdealist = Math.clamp($arcologies[0].FSPhysicalIdealist += _fsGain,0,100)>> +<<case "Hedonistic">> + <<set $arcologies[0].FSHedonisticDecadence = Math.clamp($arcologies[0].FSHedonisticDecadence += _fsGain,0,100)>> +<<case "Supremacist">> + <<set $arcologies[0].FSSupremacist = Math.clamp($arcologies[0].FSSupremacist += _fsGain,0,100)>> +<<case "Subjugationist">> + <<set $arcologies[0].FSSubjugationist = Math.clamp($arcologies[0].FSSubjugationist += _fsGain,0,100)>> +<<case "Paternalist">> + <<set $arcologies[0].FSPaternalist = Math.clamp($arcologies[0].FSPaternalist += _fsGain,0,100)>> +<<case "Pastoralist">> + <<set $arcologies[0].FSPastoralist = Math.clamp($arcologies[0].FSPastoralist += _fsGain,0,100)>> +<<case "Maturity Preferentialist">> + <<set $arcologies[0].FSMaturityPreferentialist = Math.clamp($arcologies[0].FSMaturityPreferentialist += _fsGain,0,100)>> +<<case "Youth Preferentialist">> + <<set $arcologies[0].FSYouthPreferentialist = Math.clamp($arcologies[0].FSYouthPreferentialist += _fsGain,0,100)>> +<<case "Body Purist">> + <<set $arcologies[0].FSBodyPurist = Math.clamp($arcologies[0].FSBodyPurist += _fsGain,0,100)>> +<<case "Slimness Enthusiast">> + <<set $arcologies[0].FSSlimnessEnthusiast = Math.clamp($arcologies[0].FSSlimnessEnthusiast += _fsGain,0,100)>> +<</switch>> +<</if>> +<</if>> diff --git a/src/gui/Encyclopedia/encyclopedia.tw b/src/gui/Encyclopedia/encyclopedia.tw index 28ed81dee05cfcbd132aff90cd200ba750437b88..13070afc2c3a5bf21315a7900d3203c34b63eb5a 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. + 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>__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>__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>__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><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> 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. + <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">> @@ -1500,7 +1496,7 @@ THE X-SERIES ARCOLOGY <br><br>I have been watching you and your slaves with close attention, so I have one other function to mention. I have learned a little of what constitutes successful slave training and husbandry. If you select the 'Rules Assistant' option on the main menu, I will review the rules your slaves are under and address any obvious problems. For example, I will place all disobedient slaves under restrictive rules. - <br><br>I would say that it is a pleasure to serve, but you are no doubt @@cyan;intelligent@@ enough to know that I cannot feel pleasure, making that a pointless pleasantry. Good day, <<= properTitle()>>.// + <br><br>I would say that it is a pleasure to serve, but you are no doubt @@.cyan;intelligent@@ enough to know that I cannot feel pleasure, making that a pointless pleasantry. Good day, <<= properTitle()>>.// <<case "The Wardrobe">> @@ -2612,6 +2608,7 @@ LORE: INTERVIEWS <br>''DCoded'' for creating the favicon and adding animals to the Pit, as well as nursery and bestiality content, scenes, facilities and fixes. Also added a pussy licking scene and created and fixed a number of bugs. <br>''HiveBro'' for giving hyperpregnant slaves some serious loving. <br>''Quin2k'' for overwriting save function and expired tweak via Vrelnir & co. + <br>''ezsh'' for bugfixing and creating a tool to build twineJS for me. <br>''git contributors lost to time'' for their submissions and work through pregmod's git. <br>''Bane70'' optimized huge swaths of code with notable professionalism. <br>''Circle Tritagonist'' provided several new collars and outfits. @@ -2630,7 +2627,8 @@ LORE: INTERVIEWS <br>''freecitiesbandit'' wrote a number of recruitment, future society, mercenary and random events, provided tailed buttplugs, new eyes and tattoos, and contributed the code for the mercenary raiders policy. <br>''DrNoOne'' wrote the bulk slave purchase and persistent summary code. <br>''Mauve'' provided vector art for chastity belts and limp dicks. - <br>''Klorpa'' for dozens of new nationalities and boundless new names and nicknames. Also monokinis, middle eastern clothing and aprons. Also the hearing overhaul. + <br>''Klorpa'' for dozens of new nationalities and boundless new names and nicknames. Also monokinis, middle eastern clothing and aprons. Also the hearing overhaul. Has declared war on bad spelling, grammar and formatting. + <br>''lowercasedonkey'' for various additions, not limited to the budget overhaul. <br>''amomynous0'' for bug reports and testing in addition to SFmod unit descriptions. <br>''wepsrd'' for QOL (hormonal balance cheat and lactation adaptation to new menu) fixes. diff --git a/src/gui/css/mainStyleSheet.tw b/src/gui/css/mainStyleSheet.tw index 81b8c829387e21c4b49246c2ff7bd2c920ed4f09..7f763f3ad5ecef18f2d5d156e802f7a35b5e3e21 100644 --- a/src/gui/css/mainStyleSheet.tw +++ b/src/gui/css/mainStyleSheet.tw @@ -182,7 +182,10 @@ span.zeroButton > a:hover { text-decoration: none; } .darkred { color: darkred } .darkviolet { color: darkviolet } .deeppink { color: deeppink } +.steelblue { color: steelblue } .deepskyblue { color: deepskyblue } +.dodgerblue { color: dodgerblue } +.blue { color: blue } .gold { color: gold } .goldenrod { color: goldenrod } .gray { color: gray } @@ -208,6 +211,8 @@ span.zeroButton > a:hover { text-decoration: none; } .seagreen { color: seagreen } .springgreen { color: springgreen } .tan { color: tan } +.chocolate { color: chocolate } +.saddlebrown { color: saddlebrown } .teal { color: teal } .yellow { color: yellow } .yellowgreen { color: yellowgreen } @@ -220,7 +225,10 @@ span.zeroButton > a:hover { text-decoration: none; } .darkred a { color: darkred } .darkviolet a { color: darkviolet } .deeppink a { color: deeppink } +.steelblue a { color: steelblue } .deepskyblue a { color: deepskyblue } +.dodgerblue a { color: dodgerblue } +.blue a { color: blue } .gold a { color: gold } .goldenrod a { color: goldenrod } .gray a { color: gray } @@ -246,6 +254,8 @@ span.zeroButton > a:hover { text-decoration: none; } .seagreen a { color: seagreen } .springgreen a { color: springgreen } .tan a { color: tan } +.chocolate a { color: chocolate } +.saddlebrown a { color: saddlebrown } .teal a { color: teal } .yellow a { color: yellow } .yellowgreen a { color: yellowgreen } diff --git a/src/init/dummy.tw b/src/init/dummy.tw index c2d6e9f180db681cc5f06ec3f84401e23e8c27c1..234558eb831c041c82de79eb9e71eb21b36190cb 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, $schEnunciate, $SchEnunciate, $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 d4fb349d1e40aaa37641207432eb982a18cb416a..0edfefb89ce1ec314476d6b495e8b90113944ba2 100644 --- a/src/init/storyInit.tw +++ b/src/init/storyInit.tw @@ -15,13 +15,19 @@ You should have received a copy of the GNU General Public License along with thi <<set $returnTo = "init", $nextButton = "Continue", $nextLink = "Alpha disclaimer">> <<unset $releaseID>> -<<set $ver = "0.10.7", $pmodVer = "1.6.X", $releaseID = 1039>> -<<if ndef $pmodVer>><<set $pmodVer = "1.6.X">><</if>> +<<set $ver = "0.10.7", $pmodVer = "1.7.X", $releaseID = 1040>> +<<if ndef $pmodVer>><<set $pmodVer = "1.7.X">><</if>> /* This needs to be broken down into individual files that can be added to StoryInit instead. */ <<if def $slaves>> <<set _SL = $slaves.length>> + <<for _i = 0; _i < _SL; _i++>> + <<if $slaves[_i].assignment != "be imported">> + <<run removeNonNGPSlave($slaves[_i])>> + <<set _i--, _SL-->> + <</if>> + <</for>> <<for _i = 0; _i < _SL; _i++>> <<if $slaves[_i].assignment == "be imported">> <<set $slaves[_i].ID += 1200000>> @@ -76,8 +82,6 @@ You should have received a copy of the GNU General Public License along with thi <<set $slaves[_i].livingRules = "spare">> <<set $slaves[_i].diet = "healthy">> <<set $slaves[_i].pregControl = "none">> - <<else>> - <<set _dump = removeSlave(_i), _i--, _SL-->> <</if>> <</for>> <<set $slaveIndices = slaves2indices()>> @@ -100,6 +104,20 @@ You should have received a copy of the GNU General Public License along with thi <<if $slaves[_k].womb[_sInit].fatherID > 0>> <<set $slaves[_k].womb[_sInit].fatherID += 1200000>> <</if>> + <<if $slaves[_k].womb[_sInit].genetics.father > 0>> + <<set $slaves[_k].womb[_sInit].genetics.father += 1200000>> + <<elseif $freshPC == 1 && $slaves[_k].womb[_sInit].genetics.father == -1>> + <<set $slaves[_k].womb[_sInit].genetics.father = -12000000>> + <<elseif $slaves[_k].womb[_sInit].genetics.father < -1>> + <<set $slaves[_k].womb[_sInit].genetics.father -= 1200000>> + <</if>> + <<if $slaves[_k].womb[_sInit].genetics.mother > 0>> + <<set $slaves[_k].womb[_sInit].genetics.mother += 1200000>> + <<elseif $freshPC == 1 && $slaves[_k].womb[_sInit].genetics.mother == -1>> + <<set $slaves[_k].womb[_sInit].genetics.mother = -12000000>> + <<elseif $slaves[_k].womb[_sInit].genetics.mother < -1>> + <<set $slaves[_k].womb[_sInit].genetics.mother -= 1200000>> + <</if>> <</for>> <</if>> <<if $slaves[_k].cloneID != 0>> @@ -406,6 +424,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"}>> @@ -575,17 +596,17 @@ You should have received a copy of the GNU General Public License along with thi <<set $masterSuiteName = "the Master Suite">> <<set $masterSuiteNameCaps = "The Master Suite">> -<<set $nursery = 0>> /* counts the number of children the nursery can support */ -<<set $nurseryNannies = 0>> /* counts the number of nannies the nursery can support */ -<<set $nurseryBabies = 0>> /* counts the number of children currently in the nursery */ -<<set $nurserySlaves = 0>> /* counts the number of nannies currently assigned to the nursery */ +<<set $nursery = 0>> /* counts the number of children the nursery can support */ +<<set $nurseryNannies = 0>> /* counts the number of nannies the nursery can support */ +<<set $nurseryBabies = 0>> /* counts the number of children currently in the nursery */ +<<set $nurserySlaves = 0>> /* counts the number of nannies currently assigned to the nursery */ +<<set $MatronInfluence = 0>> /* check for whether the children are influenced by the Matron */ +<<set $nannyInfluence = 0>> /* check for whether the children are influenced by the nannies */ <<set $nurseryDecoration = "standard">> -<<set $MatronInfluence = 0>> /* check for whether the children are influenced by the Matron */ -<<set $nannyInfluence = 0>> /* check for whether the children are influenced by the nannies */ <<set $nurseryWeight = 0>> <<set $nurseryMuscles = 0>> <<set $nurseryHormones = 0>> -<<set $nurseryOrgans = 0>> /* not currently in use */ +<<set $nurseryOrgans = 0>> /* not currently in use */ <<set $nurseryImprintSetting = 0>> <<set $nurseryWeightSetting = 0>> <<set $nurseryMusclesSetting = 0>> @@ -593,15 +614,18 @@ You should have received a copy of the GNU General Public License along with thi <<set $nurseryName = "the Nursery">> <<set $nurseryNameCaps = "The Nursery">> <<set $reservedChildrenNursery = 0>> -<<set $cribs = []>> /* array of children in the nursery */ -<<set $cribsFreed = []>> /* array of children that have been freed */ +<<set $cribs = []>> /* array of children in the nursery */ +<<set $cribsFreed = []>> /* array of children that have been freed */ <<set $childToSlave = -1>> <<set $farmyard = 0>> <<set $farmyardSlaves = 0>> +<<set $farmyardShowgirls = []>> /* array of farmhands putting on shows */ +<<set $farmyardFarmers = []>> /* array of farmhands farming */ +<<set $farmMenials = 0>> +<<set $farmMenialsSpace = 0>> <<set $farmyardDecoration = "standard">> <<set $farmyardUpgrade = {pump: 0, fertilizer: 0, hydroponics: 0, machinery: 0, seeds: 0, lab: 0}>> -<<set $farmyardUpgradeList = []>> <<set $farmyardCrops = 0>> <<set $farmyardStable = 0>> <<set $farmyardKennels = 0>> @@ -611,7 +635,7 @@ You should have received a copy of the GNU General Public License along with thi <<set $activeFeline = 0>> <<set $farmyardLab = 0>> <<set $farmyardLabUpgrades = {animalOvaries: 0, animalTesticles: 0, animalMpreg: 0}>> -<<set $animalsBought = {canines: 0, hooved: 0, felines: 0, labradorRetrievers: 0, germanShepherds: 0, goldenRetrievers: 0, frenchBulldogs: 0, bulldogs: 0, beagles: 0, poodles: 0, rottweilers: 0, yorkshireTerriers: 0, siberianHuskies: 0, horses: 0, siameses: 0, persians: 0, maineCoons: 0, ragdolls: 0, bengals: 0, abbysinians: 0, birmans: 0, orientalShorthairs: 0, sphynxes: 0, russianBlues: 0, wolves: 0, foxes: 0, jackals: 0, dingos: 0, zebras: 0, cougars: 0, jaguars: 0, pumas: 0, lynx: 0, leopards: 0, lions: 0, tigers: 0}>> +<<set $animalsBought = {canines: 0, hooved: 0, felines: 0, labradorRetrievers: 0, germanShepherds: 0, goldenRetrievers: 0, frenchBulldogs: 0, bulldogs: 0, beagles: 0, poodles: 0, rottweilers: 0, yorkshireTerriers: 0, siberianHuskies: 0, horses: 0, bulls: 0, pigs: 0, siameses: 0, persians: 0, maineCoons: 0, ragdolls: 0, bengals: 0, abbysinians: 0, birmans: 0, orientalShorthairs: 0, sphynxes: 0, russianBlues: 0, wolves: 0, foxes: 0, jackals: 0, dingos: 0, zebras: 0, cougars: 0, jaguars: 0, pumas: 0, lynx: 0, leopards: 0, lions: 0, tigers: 0}>> <<set $canines = []>> <<set $hooved = []>> <<set $felines = []>> @@ -646,8 +670,6 @@ You should have received a copy of the GNU General Public License along with thi <<set $boobAccessibility = 0>> <<set $servantMilkers = 0>> <<set $servantMilkersMultiplier = 1>> -<<set $foodCost = 25>> -<<set $revealFoodEffects = 0>> <<set $studio = 0>> <<set $studioFeed = 0>> @@ -747,48 +769,40 @@ You should have received a copy of the GNU General Public License along with thi <<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>> @@ -973,6 +987,7 @@ You should have received a copy of the GNU General Public License along with thi <<set $penetrativeTotal = 0>> <<set $milkTotal = 0>> <<set $cumTotal = 0>> +<<set $foodTotal = 0>> <<set $birthsTotal = 0>> <<set $pitKillsTotal = 0>> @@ -1107,6 +1122,22 @@ You should have received a copy of the GNU General Public License along with thi <<set $ASlaves = 900>> <<set $AProsperityCap = 120>> +<<set $food = 50000>> +<<set $foodLastWeek = 0>> +<<set $foodProduced = 0>> +<<set $foodStored = 0>> +<<set $foodCost = 25>> +<<set $foodMarket = 0>> +<<set $slaveRate = 2>> +<<set $lowerRate = 1.8>> +<<set $middleRate = 2>> +<<set $upperRate = 2.2>> +<<set $topRate = 2.4>> +<<set $foodConsumption = (($lowerClass*$lowerRate) + ($middleClass*$middleRate) + ($upperClass*$upperRate) + ($topClass*$topRate))>> /* total amount food consumed per week */ +<<set $farmMenials = 0>> +<<set $revealFoodEffects = 0>> +<<set $rations = 0>> + <<set $sectors = [ {type: "Penthouse", ownership: 1}, {type: "Empty", ownership: 0}, @@ -1427,7 +1458,7 @@ erectileImplant: 0 } >> <<set $merchantFSWares = ["AssetExpansionistResearch", "GenderRadicalistResearch", "HedonisticDecadenceResearch", "SlimnessEnthusiastResearch", "TransformationFetishistResearch", "YouthPreferentialistResearch"]>> -<<set $merchantIllegalWares = ["asexualReproduction", "childhoodFertilityInducedNCS", "PGHack", "RapidCellGrowthFormula", "sympatheticOvaries", "UterineRestraintMesh"]>> /* , "AnimalOrgans"*/ +<<set $merchantIllegalWares = ["asexualReproduction", "childhoodFertilityInducedNCS", "PGHack", "RapidCellGrowthFormula", "sympatheticOvaries", "UterineRestraintMesh"]>> /* "AnimalOrgans" for future use */ <<set $RapidCellGrowthFormula = 0>> <<set $UterineRestraintMesh = 0>> <<set $PGHack = 0>> diff --git a/src/js/accordian.js b/src/js/accordianJS.js similarity index 100% rename from src/js/accordian.js rename to src/js/accordianJS.js diff --git a/src/js/assay.js b/src/js/assayJS.js similarity index 99% rename from src/js/assay.js rename to src/js/assayJS.js index 8efd159eca6293107ae568a7596d5b005403391e..635e9150886399ec5ba39103081f38cde6bf140a 100644 --- a/src/js/assay.js +++ b/src/js/assayJS.js @@ -9,11 +9,13 @@ window.isSlim = function(slave) { if ((slave.muscles <= 30) && (ArcologyZero.FSPhysicalIdealist === "unset") && (slave.weight <= 10) && (ArcologyZero.FSHedonisticDecadence === "unset")) { slim = true; } else if (ArcologyZero.FSPhysicalIdealist !== "unset") { - if ((ArcologyZero.FSPhysicalIdealistStrongFat === 1) && (slave.weight <= 30)) { + if ((ArcologyZero.FSPhysicalIdealistStrongFat === 1) && (slave.weight <= 30)) { slim = true; - } - } else if ((ArcologyZero.FSHedonisticDecadence !== "unset") && (slave.weight <= 30)) { - if (ArcologyZero.FSHedonisticDecadenceStrongFat === 1) { + } else if (slave.weight <= 10) { + slim = true; + } + } else if ((ArcologyZero.FSHedonisticDecadence !== "unset") && (slave.weight <= 30)) { + if (ArcologyZero.FSHedonisticDecadenceStrongFat === 1) { slim = true; } else if (slave.muscles <= 30) { slim = true; diff --git a/src/js/assign.js b/src/js/assignJS.js similarity index 100% rename from src/js/assign.js rename to src/js/assignJS.js diff --git a/src/js/birth.js b/src/js/birthJS.js similarity index 100% rename from src/js/birth.js rename to src/js/birthJS.js diff --git a/src/js/colorMode.js b/src/js/colorModeJS.js similarity index 100% rename from src/js/colorMode.js rename to src/js/colorModeJS.js diff --git a/src/js/datatypeCleanup.js b/src/js/datatypeCleanup.js deleted file mode 100644 index c033d0c26e8f3547b5a5657a275c1526a43e8be2..0000000000000000000000000000000000000000 --- a/src/js/datatypeCleanup.js +++ /dev/null @@ -1,1353 +0,0 @@ -/* - This function does not ensure values make sense. For example, it does not fix weird relations/relationships/rivalries/pregnancies/prosthetics. - It only makes sure most datatypes are correct, and sets to default if not. Number values are clamped to the correct bounds. - Any values that are supposed to be objects or arrays are not handled (yet). - - A tutorial on how to add to this passage: - The || operator can be very useful for setting default values. To be precise, - x = y || z - is the same thing as - if (y) {x = y} - else {x = z} - This means that if z is the default value, in the ideal case you could write x = x || z. If x is already in use, this won't change it, and if x is not defined it will set it to z. - However, for example, if x is 0 but the default is -1 this will actually set x to -1! So care must be taken. - - Let's say you want to add slave.value to this function, and you want it to be a number. - First, you need to take whatever slave.value currently is, and turn it into a number. You can use either +slave.value or Number(slave.value) to do this. - Second, you need to determine what range to restrict slave.value to. You'll either use Math.max, Math.min, Math.clamp, or none of them. - Finally, you need to consider the default value if the .max/.min/.clamp returned 0 (or NaN). To make a long story short, - Use slave.value = Math.max(+slave.value, a) || default; if you need slave.value >= a. - Use slave.value = Math.min(+slave.value, a) || default; if you need slave.value <= a. - Use slave.value = Math.clamp(+slave.value, a, b) || default; if you need a <= slave.value <= b. - Use slave.value = +slave.value || default; if slave.value can be any number. - The exception to this is if the default != 0. In this case, it's usually good enough to just check if slave.value !== 0 first. The strict equality is important! - - If you want slave.value to be a string, there's no easy tricks to make sure it's already an accepted value. The simplest way is the following - if (typeof slave.value !== "string") slave.value = default; -*/ -window.SlaveDatatypeCleanup = function SlaveDatatypeCleanup (slave) { - slaveAgeDatatypeCleanup(slave); - slavePhysicalDatatypeCleanup(slave); - slaveFaceDatatypeCleanup(slave); - slaveHairDatatypeCleanup(slave); - slaveBoobsDatatypeCleanup(slave); - slaveButtDatatypeCleanup(slave); - slavePregnancyDatatypeCleanup(slave); - slaveBellyDatatypeCleanup(slave); - slaveGenitaliaDatatypeCleanup(slave); - slaveImplantsDatatypeCleanup(slave); - slavePiercingsDatatypeCleanup(slave); - slaveTattooDatatypeCleanup(slave); - slaveCosmeticsDatatypeCleanup(slave); - slaveDietDatatypeCleanup(slave); - slavePornDatatypeCleanup(slave); - slaveRelationDatatypeCleanup(slave); - slaveSkillsDatatypeCleanup(slave); - slaveStatCountDatatypeCleanup(slave); - slavePreferencesDatatypeCleanup(slave); - slaveRulesDatatypeCleanup(slave); - slaveCustomStatsDatatypeCleanup(slave); - slaveMiscellaneousDatatypeCleanup(slave); - generatePronouns(slave); -}; - -window.slaveAgeDatatypeCleanup = function slaveAgeDatatypeCleanup(slave) { - const V = State.variables; - - slave.birthWeek = Math.clamp(+slave.birthWeek, 0, 51) || 0; - if (slave.age > 0) { - slave.actualAge = Math.clamp(+slave.actualAge, V.minimumSlaveAge, Infinity) || slave.age; /* if undefined, this sets to slave.age */ - } else { - slave.actualAge = Math.clamp(+slave.actualAge, V.minimumSlaveAge, Infinity) || 18; - slave.age = slave.actualAge; - } - slave.visualAge = Math.max(+slave.visualAge, 0) || slave.actualAge; - slave.physicalAge = Math.max(+slave.physicalAge, 0) || slave.actualAge; - slave.ovaryAge = Math.max(+slave.ovaryAge, 0) || slave.physicalAge; - slave.pubertyAgeXX = Math.max(+slave.pubertyAgeXX, 0) || V.fertilityAge; - slave.pubertyAgeXY = Math.max(+slave.pubertyAgeXY, 0) || V.potencyAge; - slave.ageAdjust = Math.clamp(+slave.ageAdjust, -40, 40) || 0; - slave.NCSyouthening = Math.max(+slave.NCSyouthening, 0) || 0; -}; - -window.slavePhysicalDatatypeCleanup = function slavePhysicalDatatypeCleanup(slave) { - if (typeof slave.nationality !== "string") { - slave.nationality = "slave"; - } - if (typeof slave.race !== "string") { - nationalityToRace(slave); - } - if (typeof slave.origRace !== "string") { - slave.origRace = slave.race; - } - if (typeof slave.skin !== "string") { - slave.skin = "light"; - } - if (typeof slave.origSkin !== "string") { - slave.origSkin = slave.skin; - } - if (typeof slave.minorInjury !== "string") { - slave.minorInjury = 0; - } - slave.health = Math.clamp(+slave.health, -100, 100) || 0; - slave.muscles = Math.clamp(+slave.muscles, -100, 100) || 0; - slave.weight = Math.clamp(+slave.weight, -100, 200) || 0; - slave.waist = Math.clamp(+slave.waist, -100, 100) || 0; - slave.height = Math.round(Math.max(+slave.height, 0)) || Math.round(Height.mean(slave)); - slave.shoulders = Math.clamp(+slave.shoulders, -2, 2) || 0; - slave.hips = Math.clamp(+slave.hips, -2, 3) || 0; -}; - -window.slaveFaceDatatypeCleanup = function slaveFaceDatatypeCleanup(slave) { - slave.face = Math.clamp(+slave.face, -100, 100) || 0; - if (typeof slave.faceShape !== "string") { - slave.faceShape = "normal"; - } - slave.eyes = Math.clamp(+slave.eyes, -3, 1) || 1; /* if 0 or undefined, this sets to 1 */ - if (typeof slave.eyeColor !== "string") { - slave.eyeColor = "brown"; - } - if (typeof slave.origEye !== "string") { - slave.origEye = slave.eyeColor; - } - if (typeof slave.pupil !== "string") { - slave.pupil = "circular"; - } - if (typeof slave.sclerae !== "string") { - slave.sclerae = "white"; - } - if (slave.lips !== 0) { - slave.lips = Math.clamp(+slave.lips, 0, 100) || 15; - } -}; - -window.slaveHairDatatypeCleanup = function slaveHairDatatypeCleanup(slave) { - if (typeof slave.hColor !== "string") { - slave.hColor = "brown"; - } - if (typeof slave.origHColor !== "string") { - slave.origHColor = slave.hColor; - } - if (slave.hLength !== 0) { - slave.hLength = Math.clamp(+slave.hLength, 0, 300) || 60; - } - if (typeof slave.hStyle !== "string") { - slave.hStyle = "long"; - } - slave.haircuts = Math.clamp(+slave.haircuts, 0, 1) || 0; - slave.bald = Math.clamp(+slave.bald, 0, 1) || 0; - if (typeof slave.pubicHColor !== "string") { - slave.pubicHColor = slave.hColor; - } - if (typeof slave.pubicHStyle !== "string") { - slave.pubicHStyle = "neat"; - } - if (typeof slave.underArmHColor !== "string") { - slave.underArmHColor = "slave.hColor"; - } - if (typeof slave.underArmHStyle !== "string") { - slave.underArmHStyle = "waxed"; - } - if (typeof slave.eyebrowHColor !== "string") { - slave.eyebrowHColor = "slave.hColor"; - } - if (typeof slave.eyebrowHStyle !== "string") { - slave.eyebrowHStyle = "natural"; - } - if (typeof slave.eyebrowFullness !== "string") { - slave.eyebrowFullness = "natural"; - } -}; - -window.slaveBoobsDatatypeCleanup = function slaveBoobsDatatypeCleanup(slave) { - slave.boobs = Math.max(+slave.boobs, 100) || 200; - if (typeof slave.boobShape !== "string") { - slave.boobShape = "normal"; - } - if (typeof slave.nipples !== "string") { - slave.nipples = "cute"; - } - if (typeof slave.nipplesAccessory !== "string") { - slave.nipplesAccessory = "none"; - } - slave.areolae = Math.clamp(+slave.areolae, 0, 3) || 0; - if (typeof slave.areolaeShape !== "string") { - slave.areolaeShape = "circle"; - } - slave.lactation = Math.clamp(+slave.lactation, 0, 2) || 0; - slave.boobsMilk = Math.max(+slave.boobsMilk, 0) || 0; - slave.lactationAdaptation = Math.clamp(+slave.lactationAdaptation, 0, 100) || 0; -}; - -window.slaveButtDatatypeCleanup = function slaveButtDatatypeCleanup(slave) { - if (slave.butt !== 0) { - slave.butt = Math.clamp(+slave.butt, 0, 20) || 1; - } - slave.anus = Math.clamp(+slave.anus, 0, 4) || 0; - slave.analArea = Math.max(+slave.analArea, 0) || 0; -}; - -window.slavePregnancyDatatypeCleanup = function slavePregnancyDatatypeCleanup(slave) { - slave.induce = Math.clamp(+slave.induce, 0, 1) || 0; - slave.labor = Math.clamp(+slave.labor, 0, 1) || 0; - slave.cSec = Math.clamp(+slave.cSec, 0, 1) || 0; - slave.prematureBirth = Math.clamp(+slave.prematureBirth, 0, 1) || 0; - slave.ovaries = Math.clamp(+slave.ovaries, 0, 1) || 0; - slave.vasectomy = Math.clamp(+slave.vasectomy, 0, 1) || 0; - slave.mpreg = Math.clamp(+slave.mpreg, 0, 1) || 0; - if (slave.pregAdaptation !== 0) { - slave.pregAdaptation = Math.max(+slave.pregAdaptation, 0) || 50; - } - slave.ovaImplant = Math.clamp(+slave.ovaImplant, -1, 2) || 0; - slave.broodmother = Math.clamp(+slave.broodmother, 0, 3) || 0; - slave.broodmotherFetuses = Math.max(+slave.broodmotherFetuses, 0) || 0; - slave.broodmotherOnHold = Math.clamp(+slave.broodmotherOnHold, 0, 1) || 0; - slave.pregSource = +slave.pregSource || 0; - if (typeof slave.pregControl !== "string") { - slave.pregControl = "none"; - } - WombNormalizePreg(slave); -}; - -window.slaveBellyDatatypeCleanup = function slaveBellyDatatypeCleanup(slave) { - slave.inflation = Math.clamp(+slave.inflation, 0, 3) || 0; - if (typeof slave.inflationType !== "string") { - slave.inflationType = "none"; - } - slave.inflationMethod = Math.clamp(+slave.inflationMethod, 0, 3) || 0; - slave.milkSource = Math.max(+slave.milkSource, 0) || 0; - slave.cumSource = Math.max(+slave.cumSource, 0) || 0; - slave.burst = Math.clamp(+slave.burst, 0, 1) || 0; - if (slave.bellyImplant !== 0) { - slave.bellyImplant = Math.max(+slave.bellyImplant, -1) || -1; - } - slave.cervixImplant = Math.clamp(+slave.cervixImplant, 0, 3) || 0; - slave.bellySag = Math.max(+slave.bellySag, 0) || 0; - slave.bellySagPreg = Math.max(+slave.bellySagPreg, 0) || slave.bellySag; - slave.bellyPain = Math.clamp(+slave.bellyPain, 0, 2) || 0; - SetBellySize(slave); -}; - -window.slaveGenitaliaDatatypeCleanup = function slaveGenitaliaDatatypeCleanup(slave) { - slave.vagina = Math.clamp(+slave.vagina, -1, 10) || 0; - slave.vaginaLube = Math.clamp(+slave.vaginaLube, 0, 2) || 0; - slave.labia = Math.clamp(+slave.labia, 0, 3) || 0; - slave.clit = Math.clamp(+slave.clit, 0, 5) || 0; - slave.foreskin = Math.max(+slave.foreskin, 0) || 0; - slave.dick = Math.max(+slave.dick, 0) || 0; - if (slave.dick && slave.prostate !== 0) { - slave.prostate = Math.clamp(+slave.prostate, 0, 3) || 1; - } else { - slave.prostate = Math.clamp(+slave.prostate, 0, 3) || 0; - } - slave.balls = Math.max(+slave.balls, 0) || 0; - if (slave.scrotum !== 0) { - slave.scrotum = Math.max(+slave.scrotum, 0) || slave.balls; - } -}; - -window.slaveImplantsDatatypeCleanup = function slaveImplantsDatatypeCleanup(slave) { - slave.ageImplant = Math.clamp(+slave.ageImplant, 0, 1) || 0; - slave.faceImplant = Math.clamp(+slave.faceImplant, 0, 100) || 0; - slave.lipsImplant = Math.clamp(+slave.lipsImplant, 0, 100) || 0; - slave.voiceImplant = Math.clamp(+slave.voiceImplant, -1, 1) || 0; - slave.boobsImplant = Math.max(+slave.boobsImplant, 0) || 0; - slave.boobsImplantType = Math.clamp(+slave.boobsImplantType, 0, 1) || 0; - slave.breastMesh = Math.clamp(+slave.breastMesh, 0, 1) || 0; - slave.buttImplant = Math.clamp(+slave.buttImplant, 0, 3) || 0; - slave.buttImplantType = Math.clamp(+slave.buttImplantType, 0, 1) || 0; - slave.heightImplant = Math.clamp(+slave.heightImplant, -1, 1) || 0; - slave.earImplant = Math.clamp(+slave.earImplant, 0, 1) || 0; - slave.shouldersImplant = Math.clamp(+slave.shouldersImplant, -1, 1) || 0; - slave.hipsImplant = Math.clamp(+slave.hipsImplant, -1, 1) || 0; -}; - -window.slavePiercingsDatatypeCleanup = function slavePiercingsDatatypeCleanup(slave) { - slave.earPiercing = Math.clamp(+slave.earPiercing, 0, 2) || 0; - slave.nosePiercing = Math.clamp(+slave.nosePiercing, 0, 2) || 0; - slave.eyebrowPiercing = Math.clamp(+slave.eyebrowPiercing, 0, 2) || 0; - slave.lipsPiercing = Math.clamp(+slave.lipsPiercing, 0, 2) || 0; - slave.tonguePiercing = Math.clamp(+slave.tonguePiercing, 0, 2) || 0; - slave.nipplesPiercing = Math.clamp(+slave.nipplesPiercing, 0, 2) || 0; - slave.areolaePiercing = Math.clamp(+slave.areolaePiercing, 0, 2) || 0; - slave.corsetPiercing = Math.clamp(+slave.corsetPiercing, 0, 1) || 0; - slave.navelPiercing = Math.clamp(+slave.navelPiercing, 0, 2) || 0; - slave.clitPiercing = Math.clamp(+slave.clitPiercing, 0, 3) || 0; - slave.vaginaPiercing = Math.clamp(+slave.vaginaPiercing, 0, 2) || 0; - slave.dickPiercing = Math.clamp(+slave.dickPiercing, 0, 2) || 0; - slave.anusPiercing = Math.clamp(+slave.anusPiercing, 0, 2) || 0; -}; - -window.slaveTattooDatatypeCleanup = function slaveTattooDatatypeCleanup(slave) { - if (typeof slave.shouldersTat !== "string") { - slave.shouldersTat = 0; - } - if (typeof slave.lipsTat !== "string") { - slave.lipsTat = 0; - } - if (typeof slave.boobsTat !== "string") { - slave.boobsTat = 0; - } - if (typeof slave.armsTat !== "string") { - slave.armsTat = 0; - } - if (typeof slave.backTat !== "string") { - slave.backTat = 0; - } - if (typeof slave.stampTat !== "string") { - slave.stampTat = 0; - } - if (typeof slave.buttTat !== "string") { - slave.buttTat = 0; - } - if (typeof slave.vaginaTat !== "string") { - slave.vaginaTat = 0; - } - if (typeof slave.dickTat !== "string") { - slave.dickTat = 0; - } - if (typeof slave.anusTat !== "string") { - slave.anusTat = 0; - } - if (typeof slave.legsTat !== "string") { - slave.legsTat = 0; - } - if (typeof slave.bellyTat !== "string") { - slave.bellyTat = 0; - } - if (typeof slave.customTat !== "string") { - slave.customTat = ""; - } -}; - -window.slaveCosmeticsDatatypeCleanup = function slaveCosmeticsDatatypeCleanup(slave) { - slave.makeup = Math.clamp(+slave.makeup, 0, 8) || 0; - slave.nails = Math.clamp(+slave.nails, 0, 9) || 0; - slave.scars = Math.clamp(+slave.scars, 0, 6) || 0; - slave.choosesOwnClothes = Math.clamp(+slave.choosesOwnClothes, 0, 1) || 0; - if (typeof slave.clothes !== "string") { - slave.clothes = "no clothing"; - } - if (typeof slave.collar !== "string") { - slave.collar = "none"; - } - if (typeof slave.shoes !== "string") { - slave.shoes = "none"; - } - if (typeof slave.eyewear !== "string") { - slave.eyewear = "none"; - } - slave.brand = Math.clamp(+slave.brand, 0, 1) || 0; - if (typeof slave.brandLocation !== "string") { - slave.brandLocation = 0; - } - if (typeof slave.markings !== "string") { - slave.markings = "none"; - } - if (typeof slave.bellyAccessory !== "string") { - slave.bellyAccessory = "none"; - } - if (typeof slave.vaginalAccessory !== "string") { - slave.vaginalAccessory = "none"; - } - if (typeof slave.dickAccessory !== "string") { - slave.dickAccessory = "none"; - } - if (typeof slave.legAccessory !== "string") { - slave.legAccessory = "none"; - } - if (typeof slave.buttplug !== "string") { - slave.buttplug = "none"; - } - if (typeof slave.buttplugAttachment !== "string") { - slave.buttplugAttachment = "none"; - } - if (typeof slave.headAccessory !== "string") { - slave.headAccessory = "none"; - } - if (typeof slave.rearAccessory !== "string") { - slave.rearAccessory = "none"; - } - if (typeof slave.backAccessory !== "string") { - slave.backAccessory = "none"; - } -}; - -window.slaveDietDatatypeCleanup = function slaveDietDatatypeCleanup(slave) { - if (typeof slave.diet !== "string") { - slave.diet = "healthy"; - } - slave.dietCum = Math.clamp(+slave.dietCum, 0, 2) || 0; - slave.dietMilk = Math.clamp(+slave.dietMilk, 0, 2) || 0; - slave.onDiet = Math.clamp(+slave.onDiet, 0, 1) || 0; - slave.hormones = Math.clamp(+slave.hormones, -2, 2) || 0; - slave.hormoneBalance = Math.clamp(+slave.hormoneBalance, -400, 400) || 0; - if (typeof slave.drugs !== "string") { - slave.drugs = "no drugs"; - } - slave.aphrodisiacs = Math.clamp(+slave.aphrodisiacs, 0, 2) || 0; - slave.curatives = Math.clamp(+slave.curatives, 0, 2) || 0; -}; - -window.slavePornDatatypeCleanup = function slavePornDatatypeCleanup(slave) { - slave.pornFeed = Math.clamp(+slave.pornFeed, 0, 1) || 0; - slave.pornFame = Math.max(+slave.pornFame, 0) || 0; - slave.pornFameSpending = Math.max(+slave.pornFameSpending, 0) || 0; - slave.pornPrestige = Math.clamp(+slave.pornPrestige, 0, 3) || 0; - if (typeof slave.pornPrestigeDesc !== "string") { - slave.pornPrestigeDesc = 0; - } - if (typeof slave.pornFameType !== "string") { - slave.pornFameType = "none"; - } - if (typeof slave.pornFocus !== "string") { - slave.pornFocus = "none"; - } - slave.pornTypeGeneral = Math.max(+slave.pornTypeGeneral, 0) || 0; - slave.pornTypeFuckdoll = Math.max(+slave.pornTypeFuckdoll, 0) || 0; - slave.pornTypeRape = Math.max(+slave.pornTypeRape, 0) || 0; - slave.pornTypePreggo = Math.max(+slave.pornTypePreggo, 0) || 0; - slave.pornTypeBBW = Math.max(+slave.pornTypeBBW, 0) || 0; - slave.pornTypeGainer = Math.max(+slave.pornTypeGainer, 0) || 0; - slave.pornTypeStud = Math.max(+slave.pornTypeStud, 0) || 0; - slave.pornTypeLoli = Math.max(+slave.pornTypeLoli, 0) || 0; - slave.pornTypeDeepThroat = Math.max(+slave.pornTypeDeepThroat, 0) || 0; - slave.pornTypeStruggleFuck = Math.max(+slave.pornTypeStruggleFuck, 0) || 0; - slave.pornTypePainal = Math.max(+slave.pornTypePainal, 0) || 0; - slave.pornTypeTease = Math.max(+slave.pornTypeTease, 0) || 0; - slave.pornTypeRomantic = Math.max(+slave.pornTypeRomantic, 0) || 0; - slave.pornTypePervert = Math.max(+slave.pornTypePervert, 0) || 0; - slave.pornTypeCaring = Math.max(+slave.pornTypeCaring, 0) || 0; - slave.pornTypeUnflinching = Math.max(+slave.pornTypeUnflinching, 0) || 0; - slave.pornTypeSizeQueen = Math.max(+slave.pornTypeSizeQueen, 0) || 0; - slave.pornTypeNeglectful = Math.max(+slave.pornTypeNeglectful, 0) || 0; - slave.pornTypeCumAddict = Math.max(+slave.pornTypeCumAddict, 0) || 0; - slave.pornTypeAnalAddict = Math.max(+slave.pornTypeAnalAddict, 0) || 0; - slave.pornTypeAttentionWhore = Math.max(+slave.pornTypeAttentionWhore, 0) || 0; - slave.pornTypeBreastGrowth = Math.max(+slave.pornTypeBreastGrowth, 0) || 0; - slave.pornTypeAbusive = Math.max(+slave.pornTypeAbusive, 0) || 0; - slave.pornTypeMalicious = Math.max(+slave.pornTypeMalicious, 0) || 0; - slave.pornTypeSelfHating = Math.max(+slave.pornTypeSelfHating, 0) || 0; - slave.pornTypeBreeder = Math.max(+slave.pornTypeBreeder, 0) || 0; - slave.pornTypeSub = Math.max(+slave.pornTypeSub, 0) || 0; - slave.pornTypeCumSlut = Math.max(+slave.pornTypeCumSlut, 0) || 0; - slave.pornTypeAnal = Math.max(+slave.pornTypeAnal, 0) || 0; - slave.pornTypeHumiliation = Math.max(+slave.pornTypeHumiliation, 0) || 0; - slave.pornTypeBoobs = Math.max(+slave.pornTypeBoobs, 0) || 0; - slave.pornTypeDom = Math.max(+slave.pornTypeDom, 0) || 0; - slave.pornTypeSadist = Math.max(+slave.pornTypeSadist, 0) || 0; - slave.pornTypeMasochist = Math.max(+slave.pornTypeMasochist, 0) || 0; - slave.pornTypePregnancy = Math.max(+slave.pornTypePregnancy, 0) || 0; -}; - -window.slaveRelationDatatypeCleanup = function slaveRelationDatatypeCleanup(slave) { - slave.mother = +slave.mother || 0; - slave.father = +slave.father || 0; - if (State.variables.familyTesting == 0) { - slave.relationTarget = Math.max(+slave.relationTarget, 0) || 0; - } - slave.canRecruit = Math.clamp(+slave.canRecruit, 0, 1) || 0; - slave.relationship = Math.clamp(+slave.relationship, -3, 5) || 0; - slave.relationshipTarget = Math.max(+slave.relationshipTarget, 0) || 0; - slave.rivalryTarget = Math.max(+slave.rivalryTarget, 0) || 0; - slave.rivalry = Math.clamp(+slave.rivalry, 0, 3) || 0; - slave.cloneID = +slave.cloneID || 0; -}; - -window.slaveSkillsDatatypeCleanup = function slaveSkillsDatatypeCleanup(slave) { - slave.oralSkill = Math.clamp(+slave.oralSkill, 0, 100) || 0; - slave.vaginalSkill = Math.clamp(+slave.vaginalSkill, 0, 100) || 0; - slave.analSkill = Math.clamp(+slave.analSkill, 0, 100) || 0; - slave.whoreSkill = Math.clamp(+slave.whoreSkill, 0, 100) || 0; - slave.entertainSkill = Math.clamp(+slave.entertainSkill, 0, 100) || 0; - slave.combatSkill = Math.clamp(+slave.combatSkill, 0, 1) || 0; - slave.skillHG = Math.clamp(+slave.skillHG, 0, 200) || 0; - slave.skillRC = Math.clamp(+slave.skillRC, 0, 200) || 0; - slave.skillBG = Math.clamp(+slave.skillBG, 0, 200) || 0; - slave.skillMD = Math.clamp(+slave.skillMD, 0, 200) || 0; - slave.skillDJ = Math.clamp(+slave.skillDJ, 0, 200) || 0; - slave.skillNU = Math.clamp(+slave.skillNU, 0, 200) || 0; - slave.skillTE = Math.clamp(+slave.skillTE, 0, 200) || 0; - slave.skillAT = Math.clamp(+slave.skillAT, 0, 200) || 0; - slave.skillMT = Math.clamp(+slave.skillMT, 0, 200) || 0; - slave.skillST = Math.clamp(+slave.skillST, 0, 200) || 0; - slave.skillMM = Math.clamp(+slave.skillMM, 0, 200) || 0; - slave.skillFA = Math.clamp(+slave.skillFA, 0, 200) || 0; - slave.skillWA = Math.clamp(+slave.skillWA, 0, 200) || 0; - slave.skillS = Math.clamp(+slave.skillS, 0, 200) || 0; - slave.skillE = Math.clamp(+slave.skillE, 0, 200) || 0; - slave.skillW = Math.clamp(+slave.skillW, 0, 200) || 0; -}; - -window.slaveStatCountDatatypeCleanup = function slaveStatCountDatatypeCleanup(slave) { - slave.oralCount = Math.max(+slave.oralCount, 0) || 0; - slave.vaginalCount = Math.max(+slave.vaginalCount, 0) || 0; - slave.analCount = Math.max(+slave.analCount, 0) || 0; - slave.publicCount = Math.max(+slave.publicCount, 0) || 0; - slave.mammaryCount = Math.max(+slave.mammaryCount, 0) || 0; - slave.penetrativeCount = Math.max(+slave.penetrativeCount, 0) || 0; - slave.pitKills = Math.max(+slave.pitKills, 0) || 0; - slave.milk = Math.max(+slave.milk, 0) || 0; - slave.cum = Math.max(+slave.cum, 0) || 0; - slave.births = Math.max(+slave.births, 0) || 0; - slave.birthsTotal = Math.max(+slave.birthsTotal, 0) || slave.births; - slave.laborCount = Math.max(+slave.laborCount, 0) || slave.birthsTotal; - slave.slavesFathered = Math.max(+slave.slavesFathered, 0) || 0; - slave.PCChildrenFathered = Math.max(+slave.PCChildrenFathered, 0) || 0; - slave.slavesKnockedUp = Math.max(+slave.slavesKnockedUp, 0) || 0; - slave.PCKnockedUp = Math.max(+slave.PCKnockedUp, 0) || 0; - slave.bodySwap = Math.max(+slave.bodySwap, 0) || 0; -}; - -window.slavePreferencesDatatypeCleanup = function slavePreferencesDatatypeCleanup(slave) { - slave.energy = Math.clamp(+slave.energy, 0, 100) || 0; - slave.need = Math.max(+slave.need, 0) || 0; - slave.attrXY = Math.clamp(+slave.attrXY, 0, 100) || 0; - slave.attrXX = Math.clamp(+slave.attrXX, 0, 100) || 0; - slave.attrKnown = Math.clamp(+slave.attrKnown, 0, 1) || 0; - slave.fetishStrength = Math.clamp(+slave.fetishStrength, 0, 100) || 0; - slave.fetishKnown = Math.clamp(+slave.fetishKnown, 0, 1) || 0; -}; - -window.slaveRulesDatatypeCleanup = function slaveRulesDatatypeCleanup(slave) { - if (typeof slave.standardPunishment !== "string") { - slave.standardPunishment = "situational"; - } - if (typeof slave.standardReward !== "string") { - slave.standardReward = "situational"; - } - if (slave.useRulesAssistant !== 0) { - slave.useRulesAssistant = 1; - } - slave.choosesOwnAssignment = Math.clamp(+slave.choosesOwnAssignment, 0) || 0; - slave.HGExclude = Math.clamp(+slave.HGExclude, 0, 1) || 0; - slave.choosesOwnChastity = Math.clamp(+slave.choosesOwnChastity, 0, 1) || 0; - slave.breedingMark = Math.clamp(+slave.breedingMark, 0, 1) || 0; - slave.rudeTitle = Math.clamp(+slave.rudeTitle, 0, 1) || 0; -}; - -window.slaveCustomStatsDatatypeCleanup = function slaveCustomStatsDatatypeCleanup(slave) { - if (typeof slave.customLabel !== "string") { - slave.customLabel = ""; - } - if (typeof slave.customDesc !== "string") { - slave.customDesc = ""; - } - if (typeof slave.customTitle !== "string") { - slave.customTitle = ""; - } - if (typeof slave.customTitleLisp !== "string") { - slave.customTitleLisp = ""; - } - if (typeof slave.customImage !== "string") { - slave.customImage = 0; - } -}; - -window.slaveMiscellaneousDatatypeCleanup = function slaveMiscellaneousDatatypeCleanup(slave) { - slave.weekAcquired = Math.max(+slave.weekAcquired, 0) || 0; - slave.newGamePlus = Math.clamp(+slave.newGamePlus, 0, 1) || 0; - slave.prestige = Math.clamp(+slave.prestige, 0, 3) || 0; - slave.devotion = Math.clamp(+slave.devotion, -100, 100) || 0; - slave.oldDevotion = Math.clamp(+slave.oldDevotion, -100, 100) || 0; - slave.trust = Math.clamp(+slave.trust, -100, 100) || 0; - slave.oldTrust = Math.clamp(+slave.oldTrust, -100, 100) || 0; - slave.fuckdoll = Math.clamp(+slave.fuckdoll, 0, 100) || 0; - slave.chem = Math.max(+slave.chem, 0) || 0; - slave.addict = Math.max(+slave.addict, 0) || 0; - slave.intelligence = Math.clamp(+slave.intelligence, -100, 100) || 0; - slave.intelligenceImplant = Math.clamp(+slave.intelligenceImplant, 0, 30) || 0; - slave.premature = Math.clamp(+slave.premature, 0, 1) || 0; - slave.tankBaby = Math.clamp(+slave.tankBaby, 0, 2) || 0; - slave.subTarget = Math.max(+slave.subTarget, 0) || 0; - slave.sentence = Math.max(+slave.sentence, 0) || 0; - slave.training = Math.clamp(+slave.training, 0, 150) || 0; - if (slave.indenture !== 0) { - slave.indenture = Math.max(+slave.indenture, -1) || -1; - } - slave.indentureRestrictions = Math.clamp(+slave.indentureRestriction, 0, 2) || 0; - slave.tired = Math.clamp(+slave.tired, 0, 1) || 0; - slave.hears = Math.clamp(+slave.hears, -2, 0) || 0; - if (typeof slave.earwear !== "string") { - slave.earwear = "none"; - } - slave.heels = Math.clamp(+slave.heels, 0, 1) || 0; - slave.amp = Math.clamp(+slave.amp, -5, 1) || 0; - slave.PLimb = Math.clamp(+slave.PLimb, 0, 1) || 0; - if (slave.voice !== 0) { - slave.voice = Math.clamp(+slave.voice, 0, 3) || 1; - } - slave.electrolarynx = Math.clamp(+slave.electrolarynx, 0, 1) || 0; - slave.accent = Math.clamp(+slave.accent, 0, 3) || 0; - slave.missingEyes = Math.clamp(+slave.missingEyes, 0, 3) || 0; - slave.missingArms = Math.clamp(+slave.missingArms, 0, 3) || 0; - slave.missingLegs = Math.clamp(+slave.missingLegs, 0, 3) || 0; - if (typeof slave.ballType !== "string") { - slave.ballType = "human"; - } - if (typeof slave.eggType !== "string") { - slave.eggType = "human"; - } - if (typeof slave.origBodyOwner !== "string") { - slave.origBodyOwner = ""; - } - slave.origBodyOwnerID = Math.max(+slave.origBodyOwnerID, 0) || 0; - if (typeof slave.death !== "string") { - slave.death = ""; - } - if (slave.slaveCost !== 0) { - slave.slaveCost = Math.min(+slave.slaveCost, 1) || 1; - } - slave.lifetimeCashExpenses = Math.max(+slave.lifetimeCashExpenses, 0) || 0; - slave.lifetimeCashIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; - slave.lastWeeksCashIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; - slave.lifetimeRepExpenses = Math.max(+slave.lifetimeCashExpenses, 0) || 0; - slave.lifetimeRepIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; - slave.lastWeeksRepIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; -}; - -/* a lot of this may need to be removed */ -window.ChildDatatypeCleanup = function ChildDatatypeCleanup(child) { - childAgeDatatypeCleanup(child); - childPhysicalDatatypeCleanup(child); - childFaceDatatypeCleanup(child); - childHairDatatypeCleanup(child); - childBoobsDatatypeCleanup(child); - childButtDatatypeCleanup(child); - childPregnancyDatatypeCleanup(child); - childBellyDatatypeCleanup(child); - childGenitaliaDatatypeCleanup(child); - childImplantsDatatypeCleanup(child); - childPiercingsDatatypeCleanup(child); - childTattooDatatypeCleanup(child); - childCosmeticsDatatypeCleanup(child); - childDietDatatypeCleanup(child); - childPornDatatypeCleanup(child); - childRelationDatatypeCleanup(child); - childSkillsDatatypeCleanup(child); - childStatCountDatatypeCleanup(child); - childPreferencesDatatypeCleanup(child); - childRulesDatatypeCleanup(child); - childCustomStatsDatatypeCleanup(child); - childMiscellaneousDatatypeCleanup(child); - generatePronouns(child); -}; - -window.childAgeDatatypeCleanup = function childAgeDatatypeCleanup(child) { - const V = State.variables; - - child.birthWeek = Math.clamp(+child.birthWeek, 0, 51) || 0; - if (child.age > 0) { - child.actualAge = Math.clamp(+child.actualAge, V.minimumChildAge, Infinity) || child.age; /* if undefined, this sets to child.age */ - } else { - child.actualAge = Math.clamp(+child.actualAge, V.minimumChildAge, Infinity) || 18; - child.age = child.actualAge; - } - child.visualAge = Math.max(+child.visualAge, 0) || child.actualAge; - child.physicalAge = Math.max(+child.physicalAge, 0) || child.actualAge; - child.ovaryAge = Math.max(+child.ovaryAge, 0) || child.physicalAge; - child.pubertyAgeXX = Math.max(+child.pubertyAgeXX, 0) || V.fertilityAge; - child.pubertyAgeXY = Math.max(+child.pubertyAgeXY, 0) || V.potencyAge; -}; - -window.childPhysicalDatatypeCleanup = function childPhysicalDatatypeCleanup(child) { - if (typeof child.nationality !== "string") { - child.nationality = "child"; - } - if (typeof child.race !== "string") { - nationalityToRace(child); - } - if (typeof child.origRace !== "string") { - child.origRace = child.race; - } - if (typeof child.skin !== "string") { - child.skin = "light"; - } - if (typeof child.origSkin !== "string") { - child.origSkin = child.skin; - } - if (typeof child.minorInjury !== "string") { - child.minorInjury = 0; - } - child.health = Math.clamp(+child.health, -100, 100) || 0; - child.muscles = Math.clamp(+child.muscles, -100, 100) || 0; - child.weight = Math.clamp(+child.weight, -100, 200) || 0; - child.waist = Math.clamp(+child.waist, -100, 100) || 0; - child.height = Math.round(Math.max(+child.height, 0)) || Math.round(Height.mean(child)); - child.shoulders = Math.clamp(+child.shoulders, -2, 2) || 0; - child.hips = Math.clamp(+child.hips, -2, 3) || 0; -}; - -window.childFaceDatatypeCleanup = function childFaceDatatypeCleanup(child) { - child.face = Math.clamp(+child.face, -100, 100) || 0; - if (typeof child.faceShape !== "string") { - child.faceShape = "normal"; - } - child.eyes = Math.clamp(+child.eyes, -3, 1) || 1; /* if 0 or undefined, this sets to 1 */ - if (typeof child.eyeColor !== "string") { - child.eyeColor = "brown"; - } - if (typeof child.origEye !== "string") { - child.origEye = child.eyeColor; - } - if (typeof child.pupil !== "string") { - child.pupil = "circular"; - } - if (typeof child.sclerae !== "string") { - child.sclerae = "white"; - } - if (child.lips !== 0) { - child.lips = Math.clamp(+child.lips, 0, 100) || 15; - } -}; - -window.childHairDatatypeCleanup = function childHairDatatypeCleanup(child) { - if (typeof child.hColor !== "string") { - child.hColor = "brown"; - } - if (typeof child.origHColor !== "string") { - child.origHColor = child.hColor; - } - if (child.hLength !== 0) { - child.hLength = Math.clamp(+child.hLength, 0, 300) || 60; - } - if (typeof child.hStyle !== "string") { - child.hStyle = "long"; - } - child.haircuts = Math.clamp(+child.haircuts, 0, 1) || 0; - child.bald = Math.clamp(+child.bald, 0, 1) || 0; - if (typeof child.pubicHColor !== "string") { - child.pubicHColor = child.hColor; - } - if (typeof child.pubicHStyle !== "string") { - child.pubicHStyle = "neat"; - } - if (typeof child.underArmHColor !== "string") { - child.underArmHColor = "child.hColor"; - } - if (typeof child.underArmHStyle !== "string") { - child.underArmHStyle = "waxed"; - } - if (typeof child.eyebrowHColor !== "string") { - child.eyebrowHColor = "child.hColor"; - } - if (typeof child.eyebrowHStyle !== "string") { - child.eyebrowHStyle = "natural"; - } - if (typeof child.eyebrowFullness !== "string") { - child.eyebrowFullness = "natural"; - } -}; - -window.childBoobsDatatypeCleanup = function childBoobsDatatypeCleanup(child) { - child.boobs = Math.max(+child.boobs, 100) || 200; - if (typeof child.boobShape !== "string") { - child.boobShape = "normal"; - } - if (typeof child.nipples !== "string") { - child.nipples = "cute"; - } - if (typeof child.nipplesAccessory !== "string") { - child.nipplesAccessory = "none"; - } - child.areolae = Math.clamp(+child.areolae, 0, 3) || 0; - if (typeof child.areolaeShape !== "string") { - child.areolaeShape = "circle"; - } - child.lactation = Math.clamp(+child.lactation, 0, 2) || 0; - child.lactationAdaptation = Math.clamp(+child.lactationAdaptation, 0, 100) || 0; -}; - -window.childButtDatatypeCleanup = function childButtDatatypeCleanup(child) { - if (child.butt !== 0) { - child.butt = Math.clamp(+child.butt, 0, 20) || 1; - } - child.anus = Math.clamp(+child.anus, 0, 4) || 0; - child.analArea = Math.max(+child.analArea, 0) || 0; -}; - -window.childPregnancyDatatypeCleanup = function childPregnancyDatatypeCleanup(child) { - child.induce = Math.clamp(+child.induce, 0, 1) || 0; - child.labor = Math.clamp(+child.labor, 0, 1) || 0; - child.cSec = Math.clamp(+child.cSec, 0, 1) || 0; - child.prematureBirth = Math.clamp(+child.prematureBirth, 0, 1) || 0; - child.ovaries = Math.clamp(+child.ovaries, 0, 1) || 0; - child.vasectomy = Math.clamp(+child.vasectomy, 0, 1) || 0; - child.mpreg = Math.clamp(+child.mpreg, 0, 1) || 0; - if (child.pregAdaptation !== 0) { - child.pregAdaptation = Math.max(+child.pregAdaptation, 0) || 50; - } - child.pregSource = +child.pregSource || 0; - if (typeof child.pregControl !== "string") { - child.pregControl = "none"; - } - WombNormalizePreg(child); -}; - -window.childBellyDatatypeCleanup = function childBellyDatatypeCleanup(child) { - child.bellySag = Math.max(+child.bellySag, 0) || 0; - child.bellySagPreg = Math.max(+child.bellySagPreg, 0) || child.bellySag; - SetBellySize(child); -}; - -window.childGenitaliaDatatypeCleanup = function childGenitaliaDatatypeCleanup(child) { - child.vagina = Math.clamp(+child.vagina, -1, 10) || 0; - child.vaginaLube = Math.clamp(+child.vaginaLube, 0, 2) || 0; - child.labia = Math.clamp(+child.labia, 0, 3) || 0; - child.clit = Math.clamp(+child.clit, 0, 5) || 0; - child.foreskin = Math.max(+child.foreskin, 0) || 0; - child.dick = Math.max(+child.dick, 0) || 0; - if (child.dick && child.prostate !== 0) { - child.prostate = Math.clamp(+child.prostate, 0, 3) || 1; - } else { - child.prostate = Math.clamp(+child.prostate, 0, 3) || 0; - } - child.balls = Math.max(+child.balls, 0) || 0; - if (child.scrotum !== 0) { - child.scrotum = Math.max(+child.scrotum, 0) || child.balls; - } -}; - -window.childImplantsDatatypeCleanup = function childImplantsDatatypeCleanup(child) { - child.ageImplant = Math.clamp(+child.ageImplant, 0, 1) || 0; - child.faceImplant = Math.clamp(+child.faceImplant, 0, 100) || 0; - child.lipsImplant = Math.clamp(+child.lipsImplant, 0, 100) || 0; - child.voiceImplant = Math.clamp(+child.voiceImplant, -1, 1) || 0; - child.boobsImplant = Math.max(+child.boobsImplant, 0) || 0; - child.boobsImplantType = Math.clamp(+child.boobsImplantType, 0, 1) || 0; - child.breastMesh = Math.clamp(+child.breastMesh, 0, 1) || 0; - child.buttImplant = Math.clamp(+child.buttImplant, 0, 3) || 0; - child.buttImplantType = Math.clamp(+child.buttImplantType, 0, 1) || 0; - child.earImplant = Math.clamp(+child.earImplant, 0, 1) || 0; -}; - -window.childPiercingsDatatypeCleanup = function childPiercingsDatatypeCleanup(child) { - child.earPiercing = Math.clamp(+child.earPiercing, 0, 2) || 0; - child.nosePiercing = Math.clamp(+child.nosePiercing, 0, 2) || 0; - child.eyebrowPiercing = Math.clamp(+child.eyebrowPiercing, 0, 2) || 0; - child.lipsPiercing = Math.clamp(+child.lipsPiercing, 0, 2) || 0; - child.tonguePiercing = Math.clamp(+child.tonguePiercing, 0, 2) || 0; - child.nipplesPiercing = Math.clamp(+child.nipplesPiercing, 0, 2) || 0; - child.areolaePiercing = Math.clamp(+child.areolaePiercing, 0, 2) || 0; - child.corsetPiercing = Math.clamp(+child.corsetPiercing, 0, 1) || 0; - child.navelPiercing = Math.clamp(+child.navelPiercing, 0, 2) || 0; - child.clitPiercing = Math.clamp(+child.clitPiercing, 0, 3) || 0; - child.vaginaPiercing = Math.clamp(+child.vaginaPiercing, 0, 2) || 0; - child.dickPiercing = Math.clamp(+child.dickPiercing, 0, 2) || 0; - child.anusPiercing = Math.clamp(+child.anusPiercing, 0, 2) || 0; -}; - -window.childTattooDatatypeCleanup = function childTattooDatatypeCleanup(child) { - if (typeof child.shouldersTat !== "string") { - child.shouldersTat = 0; - } - if (typeof child.lipsTat !== "string") { - child.lipsTat = 0; - } - if (typeof child.boobsTat !== "string") { - child.boobsTat = 0; - } - if (typeof child.armsTat !== "string") { - child.armsTat = 0; - } - if (typeof child.backTat !== "string") { - child.backTat = 0; - } - if (typeof child.stampTat !== "string") { - child.stampTat = 0; - } - if (typeof child.buttTat !== "string") { - child.buttTat = 0; - } - if (typeof child.vaginaTat !== "string") { - child.vaginaTat = 0; - } - if (typeof child.dickTat !== "string") { - child.dickTat = 0; - } - if (typeof child.anusTat !== "string") { - child.anusTat = 0; - } - if (typeof child.legsTat !== "string") { - child.legsTat = 0; - } - if (typeof child.bellyTat !== "string") { - child.bellyTat = 0; - } - if (typeof child.customTat !== "string") { - child.customTat = ""; - } -}; - -window.childCosmeticsDatatypeCleanup = function childCosmeticsDatatypeCleanup(child) { - child.makeup = Math.clamp(+child.makeup, 0, 8) || 0; - child.nails = Math.clamp(+child.nails, 0, 9) || 0; - child.scars = Math.clamp(+child.scars, 0, 6) || 0; - child.choosesOwnClothes = Math.clamp(+child.choosesOwnClothes, 0, 1) || 0; - if (typeof child.clothes !== "string") { - child.clothes = "no clothing"; - } - if (typeof child.collar !== "string") { - child.collar = "none"; - } - if (typeof child.shoes !== "string") { - child.shoes = "none"; - } - if (typeof child.eyewear !== "string") { - child.eyewear = "none"; - } - child.brand = Math.clamp(+child.brand, 0, 1) || 0; - if (typeof child.brandLocation !== "string") { - child.brandLocation = 0; - } - if (typeof child.markings !== "string") { - child.markings = "none"; - } - if (typeof child.bellyAccessory !== "string") { - child.bellyAccessory = "none"; - } - if (typeof child.vaginalAccessory !== "string") { - child.vaginalAccessory = "none"; - } - if (typeof child.dickAccessory !== "string") { - child.dickAccessory = "none"; - } - if (typeof child.legAccessory !== "string") { - child.legAccessory = "none"; - } - if (typeof child.buttplug !== "string") { - child.buttplug = "none"; - } - if (typeof child.buttplugAttachment !== "string") { - child.buttplugAttachment = "none"; - } - if (typeof child.headAccessory !== "string") { - child.headAccessory = "none"; - } - if (typeof child.rearAccessory !== "string") { - child.rearAccessory = "none"; - } - if (typeof child.backAccessory !== "string") { - child.backAccessory = "none"; - } -}; - -window.childDietDatatypeCleanup = function childDietDatatypeCleanup(child) { - if (typeof child.diet !== "string") { - child.diet = "healthy"; - } - child.dietCum = Math.clamp(+child.dietCum, 0, 2) || 0; - child.dietMilk = Math.clamp(+child.dietMilk, 0, 2) || 0; - child.onDiet = Math.clamp(+child.onDiet, 0, 1) || 0; - child.hormones = Math.clamp(+child.hormones, -2, 2) || 0; - child.hormoneBalance = Math.clamp(+child.hormoneBalance, -400, 400) || 0; - if (typeof child.drugs !== "string") { - child.drugs = "no drugs"; - } - child.aphrodisiacs = Math.clamp(+child.aphrodisiacs, 0, 2) || 0; - child.curatives = Math.clamp(+child.curatives, 0, 2) || 0; -}; - -window.childPornDatatypeCleanup = function childPornDatatypeCleanup(child) { - child.pornFeed = Math.clamp(+child.pornFeed, 0, 1) || 0; - child.pornFame = Math.max(+child.pornFame, 0) || 0; - child.pornFameSpending = Math.max(+child.pornFameSpending, 0) || 0; - child.pornPrestige = Math.clamp(+child.pornPrestige, 0, 3) || 0; - if (typeof child.pornPrestigeDesc !== "string") { - child.pornPrestigeDesc = 0; - } - if (typeof child.pornFameType !== "string") { - child.pornFameType = "none"; - } - if (typeof child.pornFocus !== "string") { - child.pornFocus = "none"; - } - child.pornTypeGeneral = Math.max(+child.pornTypeGeneral, 0) || 0; - child.pornTypeFuckdoll = Math.max(+child.pornTypeFuckdoll, 0) || 0; - child.pornTypeRape = Math.max(+child.pornTypeRape, 0) || 0; - child.pornTypePreggo = Math.max(+child.pornTypePreggo, 0) || 0; - child.pornTypeBBW = Math.max(+child.pornTypeBBW, 0) || 0; - child.pornTypeGainer = Math.max(+child.pornTypeGainer, 0) || 0; - child.pornTypeStud = Math.max(+child.pornTypeStud, 0) || 0; - child.pornTypeLoli = Math.max(+child.pornTypeLoli, 0) || 0; - child.pornTypeDeepThroat = Math.max(+child.pornTypeDeepThroat, 0) || 0; - child.pornTypeStruggleFuck = Math.max(+child.pornTypeStruggleFuck, 0) || 0; - child.pornTypePainal = Math.max(+child.pornTypePainal, 0) || 0; - child.pornTypeTease = Math.max(+child.pornTypeTease, 0) || 0; - child.pornTypeRomantic = Math.max(+child.pornTypeRomantic, 0) || 0; - child.pornTypePervert = Math.max(+child.pornTypePervert, 0) || 0; - child.pornTypeCaring = Math.max(+child.pornTypeCaring, 0) || 0; - child.pornTypeUnflinching = Math.max(+child.pornTypeUnflinching, 0) || 0; - child.pornTypeSizeQueen = Math.max(+child.pornTypeSizeQueen, 0) || 0; - child.pornTypeNeglectful = Math.max(+child.pornTypeNeglectful, 0) || 0; - child.pornTypeCumAddict = Math.max(+child.pornTypeCumAddict, 0) || 0; - child.pornTypeAnalAddict = Math.max(+child.pornTypeAnalAddict, 0) || 0; - child.pornTypeAttentionWhore = Math.max(+child.pornTypeAttentionWhore, 0) || 0; - child.pornTypeBreastGrowth = Math.max(+child.pornTypeBreastGrowth, 0) || 0; - child.pornTypeAbusive = Math.max(+child.pornTypeAbusive, 0) || 0; - child.pornTypeMalicious = Math.max(+child.pornTypeMalicious, 0) || 0; - child.pornTypeSelfHating = Math.max(+child.pornTypeSelfHating, 0) || 0; - child.pornTypeBreeder = Math.max(+child.pornTypeBreeder, 0) || 0; - child.pornTypeSub = Math.max(+child.pornTypeSub, 0) || 0; - child.pornTypeCumSlut = Math.max(+child.pornTypeCumSlut, 0) || 0; - child.pornTypeAnal = Math.max(+child.pornTypeAnal, 0) || 0; - child.pornTypeHumiliation = Math.max(+child.pornTypeHumiliation, 0) || 0; - child.pornTypeBoobs = Math.max(+child.pornTypeBoobs, 0) || 0; - child.pornTypeDom = Math.max(+child.pornTypeDom, 0) || 0; - child.pornTypeSadist = Math.max(+child.pornTypeSadist, 0) || 0; - child.pornTypeMasochist = Math.max(+child.pornTypeMasochist, 0) || 0; - child.pornTypePregnancy = Math.max(+child.pornTypePregnancy, 0) || 0; -}; - -window.childRelationDatatypeCleanup = function childRelationDatatypeCleanup(child) { - child.mother = +child.mother || 0; - child.father = +child.father || 0; - if (State.variables.familyTesting == 0) { - child.relationTarget = Math.max(+child.relationTarget, 0) || 0; - } - child.canRecruit = Math.clamp(+child.canRecruit, 0, 1) || 0; - child.relationship = Math.clamp(+child.relationship, -3, 5) || 0; - child.relationshipTarget = Math.max(+child.relationshipTarget, 0) || 0; - child.rivalryTarget = Math.max(+child.rivalryTarget, 0) || 0; - child.rivalry = Math.clamp(+child.rivalry, 0, 3) || 0; -}; - -window.childSkillsDatatypeCleanup = function childSkillsDatatypeCleanup(child) { - child.oralSkill = Math.clamp(+child.oralSkill, 0, 100) || 0; - child.vaginalSkill = Math.clamp(+child.vaginalSkill, 0, 100) || 0; - child.analSkill = Math.clamp(+child.analSkill, 0, 100) || 0; - child.whoreSkill = Math.clamp(+child.whoreSkill, 0, 100) || 0; - child.entertainSkill = Math.clamp(+child.entertainSkill, 0, 100) || 0; - child.combatSkill = Math.clamp(+child.combatSkill, 0, 1) || 0; - child.skillHG = Math.clamp(+child.skillHG, 0, 200) || 0; - child.skillRC = Math.clamp(+child.skillRC, 0, 200) || 0; - child.skillBG = Math.clamp(+child.skillBG, 0, 200) || 0; - child.skillMD = Math.clamp(+child.skillMD, 0, 200) || 0; - child.skillDJ = Math.clamp(+child.skillDJ, 0, 200) || 0; - child.skillNU = Math.clamp(+child.skillNU, 0, 200) || 0; - child.skillTE = Math.clamp(+child.skillTE, 0, 200) || 0; - child.skillAT = Math.clamp(+child.skillAT, 0, 200) || 0; - child.skillMT = Math.clamp(+child.skillMT, 0, 200) || 0; - child.skillST = Math.clamp(+child.skillST, 0, 200) || 0; - child.skillMM = Math.clamp(+child.skillMM, 0, 200) || 0; - child.skillFA = Math.clamp(+child.skillFA, 0, 200) || 0; - child.skillWA = Math.clamp(+child.skillWA, 0, 200) || 0; - child.skillS = Math.clamp(+child.skillS, 0, 200) || 0; - child.skillE = Math.clamp(+child.skillE, 0, 200) || 0; - child.skillW = Math.clamp(+child.skillW, 0, 200) || 0; -}; - -window.childStatCountDatatypeCleanup = function childStatCountDatatypeCleanup(child) { - child.oralCount = Math.max(+child.oralCount, 0) || 0; - child.vaginalCount = Math.max(+child.vaginalCount, 0) || 0; - child.analCount = Math.max(+child.analCount, 0) || 0; - child.publicCount = Math.max(+child.publicCount, 0) || 0; - child.mammaryCount = Math.max(+child.mammaryCount, 0) || 0; - child.penetrativeCount = Math.max(+child.penetrativeCount, 0) || 0; - child.pitKills = Math.max(+child.pitKills, 0) || 0; - child.milk = Math.max(+child.milk, 0) || 0; - child.cum = Math.max(+child.cum, 0) || 0; - child.births = Math.max(+child.births, 0) || 0; - child.birthsTotal = Math.max(+child.birthsTotal, 0) || child.births; - child.laborCount = Math.max(+child.laborCount, 0) || child.birthsTotal; - child.childsFathered = Math.max(+child.childsFathered, 0) || 0; - child.PCChildrenFathered = Math.max(+child.PCChildrenFathered, 0) || 0; - child.childsKnockedUp = Math.max(+child.childsKnockedUp, 0) || 0; - child.PCKnockedUp = Math.max(+child.PCKnockedUp, 0) || 0; - child.bodySwap = Math.max(+child.bodySwap, 0) || 0; -}; - -window.childPreferencesDatatypeCleanup = function childPreferencesDatatypeCleanup(child) { - child.energy = Math.clamp(+child.energy, 0, 100) || 0; - child.need = Math.max(+child.need, 0) || 0; - child.attrXY = Math.clamp(+child.attrXY, 0, 100) || 0; - child.attrXX = Math.clamp(+child.attrXX, 0, 100) || 0; - child.attrKnown = Math.clamp(+child.attrKnown, 0, 1) || 0; - child.fetishStrength = Math.clamp(+child.fetishStrength, 0, 100) || 0; - child.fetishKnown = Math.clamp(+child.fetishKnown, 0, 1) || 0; -}; - -window.childRulesDatatypeCleanup = function childRulesDatatypeCleanup(child) { - child.breedingMark = Math.clamp(+child.breedingMark, 0, 1) || 0; - child.rudeTitle = Math.clamp(+child.rudeTitle, 0, 1) || 0; -}; - -window.childCustomStatsDatatypeCleanup = function childCustomStatsDatatypeCleanup(child) { - if (typeof child.customLabel !== "string") { - child.customLabel = ""; - } - if (typeof child.customDesc !== "string") { - child.customDesc = ""; - } - if (typeof child.customTitle !== "string") { - child.customTitle = ""; - } - if (typeof child.customTitleLisp !== "string") { - child.customTitleLisp = ""; - } - if (typeof child.customImage !== "string") { - child.customImage = 0; - } -}; - -window.childMiscellaneousDatatypeCleanup = function childMiscellaneousDatatypeCleanup(child) { - child.weekAcquired = Math.max(+child.weekAcquired, 0) || 0; - child.prestige = Math.clamp(+child.prestige, 0, 3) || 0; - child.devotion = Math.clamp(+child.devotion, -100, 100) || 0; - child.oldDevotion = Math.clamp(+child.oldDevotion, -100, 100) || 0; - child.trust = Math.clamp(+child.trust, -100, 100) || 0; - child.oldTrust = Math.clamp(+child.oldTrust, -100, 100) || 0; - child.chem = Math.max(+child.chem, 0) || 0; - child.addict = Math.max(+child.addict, 0) || 0; - child.intelligence = Math.clamp(+child.intelligence, -100, 100) || 0; - child.intelligenceImplant = Math.clamp(+child.intelligenceImplant, 0, 30) || 0; - child.premature = Math.clamp(+child.premature, 0, 1) || 0; - child.training = Math.clamp(+child.training, 0, 150) || 0; - child.tired = Math.clamp(+child.tired, 0, 1) || 0; - child.hears = Math.clamp(+child.hears, -2, 0) || 0; - if (typeof child.earwear !== "string") { - child.earwear = "none"; - } - if (child.voice !== 0) { - child.voice = Math.clamp(+child.voice, 0, 3) || 1; - } - child.electrolarynx = Math.clamp(+child.electrolarynx, 0, 1) || 0; - child.accent = Math.clamp(+child.accent, 0, 3) || 0; -}; - -window.PCDatatypeCleanup = function PCDatatypeCleanup() { - const V = State.variables; - const PC = V.PC; - - if (PC.title !== 0) { - PC.title = Math.clamp(+PC.title, 0, 1) || 1; - } - if (PC.dick !== 0) { - PC.dick = Math.clamp(+PC.dick, 0, 1) || 1; - } - PC.vagina = Math.clamp(+PC.vagina, 0, 1) || 0; - PC.belly = Math.max(+PC.belly, 0) || 0; - PC.pregMood = Math.clamp(+PC.pregMood, 0, 2) || 0; - PC.labor = Math.clamp(+PC.labor, 0, 1) || 0; - PC.births = Math.max(+PC.births, 0) || 0; - PC.boobs = Math.clamp(+PC.boobs, 0, 1) || 0; - PC.boobsBonus = Math.clamp(+PC.boobsBonus, -3, 3) || 0; - PC.boobsImplant = Math.clamp(+PC.boobsImplant, 0, 1) || 0; - PC.butt = Math.clamp(+PC.butt, 0, 3) || 0; - PC.buttImplant = Math.clamp(+PC.buttImplant, 0, 1) || 0; - PC.balls = Math.clamp(+PC.balls, 0, 3) || 0; - PC.ballsImplant = Math.clamp(+PC.ballsImplant, 0, 4) || 0; - PC.degeneracy = Math.max(+PC.degeneracy, 0) || 0; - PC.birthWeek = Math.clamp(+PC.birthWeek, 0, 51) || 0; - if (PC.sexualEnergy !== 0 ) { - PC.sexualEnergy = +PC.sexualEnergy || 4; - } - PC.refreshmentType = Math.clamp(+PC.refreshmentType, 0, 6) || 0; - PC.trading = Math.clamp(+PC.trading, -100, 100) || 0; - PC.warfare = Math.clamp(+PC.warfare, -100, 100) || 0; - PC.slaving = Math.clamp(+PC.slaving, -100, 100) || 0; - PC.engineering = Math.clamp(+PC.engineering, -100, 100) || 0; - PC.medicine = Math.clamp(+PC.medicine, -100, 100) || 0; - PC.hacking = Math.clamp(+PC.hacking, -100, 100) || 0; - PC.cumTap = Math.max(+PC.cumTap, 0) || 0; - PC.mother = +PC.mother || 0; - PC.father = +PC.father || 0; - PC.birthElite = Math.max(+PC.birthElite, 0) || 0; - PC.birthMaster = Math.max(+PC.birthMaster, 0) || 0; - PC.birthDegenerate = Math.max(+PC.birthDegenerate, 0) || 0; - PC.birthClient = Math.max(+PC.birthClient, 0) || 0; - PC.birthOther = Math.max(+PC.birthOther, 0) || 0; - PC.birthArcOwner = Math.max(+PC.birthArcOwner, 0) || 0; - PC.birthCitizen = Math.max(+PC.birthCitizen, 0) || 0; - PC.birthSelf = Math.max(+PC.birthSelf, 0) || 0; - PC.birthLab = Math.max(+PC.birthLab, 0) || 0; - PC.slavesFathered = Math.max(+PC.slavesFathered, 0) || 0; - PC.slavesKnockedUp = Math.max(+PC.slavesKnockedUp, 0) || 0; - PC.intelligence = 100; - PC.face = 100; - PC.actualAge = Math.clamp(+PC.actualAge, 14, 80) || 35; - PC.physicalAge = Math.clamp(+PC.physicalAge, 14, 80) || PC.actualAge; - PC.visualAge = Math.clamp(+PC.visualAge, 14, 80) || PC.actualAge; - PC.ovaryAge = Math.clamp(+PC.ovaryAge, 14, 80) || PC.physicalAge; - if (V.playerAging !== 0) { - V.playerAging = Math.clamp(+V.playerAging, 0, 2) || 2; - } - PC.newVag = Math.clamp(+PC.newVag, 0, 1) || 0; - PC.fertDrugs = Math.clamp(+PC.fertDrugs, 0, 1) || 0; - PC.forcedFertDrugs = Math.max(+PC.forcedFertDrugs, 0) || 0; - PC.staminaPills = Math.clamp(+PC.staminaPills, 0, 1) || 0; - PC.storedCum = Math.max(+PC.storedCum, 0) || 0; - PC.mpreg = 0; /* So knockMeUp() may be used with the PC */ - PC.lactation = Math.max(+PC.lactation, 0) || 0; - PC.lactationDuration = Math.max(+PC.lactationDuration, 0) || 0; - generatePlayerPronouns(PC); - - if (PC.age !== undefined) { - delete PC.age; - } - if (PC.indenture !== undefined) { - delete PC.indenture; - } - if (PC.indentureRestrictions !== undefined) { - delete PC.indentureRestrictions; - } - - /* None of these are in use */ - PC.bellyPreg = PC.belly; - PC.ageImplant = 0; - PC.voiceImplant = 0; - PC.accent = 0; - PC.shoulders = 0; - PC.shouldersImplant = 0; -}; - -window.EconomyDatatypeCleanup = function EconomyDatatypeCleanup() { - const V = State.variables; - - V.economy = Math.max(+V.economy, 20) || 100; - V.difficultySwitch = Math.clamp(+V.difficultySwitch, 0, 1) || 0; - V.localEcon = Math.max(+V.localEcon, 20) || V.economy; - V.econRate = Math.clamp(+V.econRate, 1, 4) || 2; - V.slaveCostFactor = Math.max(+V.slaveCostFactor, 0) || 1; - if (V.menialSupplyFactor !== 0) { - V.menialSupplyFactor = Math.clamp(+V.menialSupplyFactor, -50000, 50000) || (1 - V.slaveCostFactor) * 400 * 1000 * 0.5; /* (1 - slaveCostFactor) * price elasticity * base price * 0.5 */ - } - if (V.menialDemandFactor !== 0) { - V.menialDemandFactor = Math.clamp(+V.menialDemandFactor, -50000, 50000) || -V.menialSupplyFactor; - } - V.slaveCostRandom = Math.clamp(+V.slaveCostRandom, -3, 3) || 0; - V.demandTimer = Math.max(+V.demandTimer, 0) || 0; - V.elapsedDemandTimer = Math.max(+V.elapsedDemandTimer, 0) || 0; - V.supplyTimer = Math.max(+V.supplyTimer, 0) || 0; - V.elapsedSupplyTimer = Math.max(+V.elapsedSupplyTimer, 0) || 0; - V.deltaSupply = Math.clamp(+V.deltaSupply, -3000, 3000) || 0; - V.deltaDemand = Math.clamp(+V.deltaDemand, -3000, 3000) || 0; - V.econWeatherDamage = Math.max(+V.econWeatherDamage, 0) || 0; - V.disasterResponse = Math.clamp(+V.disasterResponse, 0, 2) || 0; - V.antiWeatherFreeze = Math.clamp(+V.antiWeatherFreeze, 0, 2) || 0; - V.GDP = Math.max(+V.GDP, 1) || 278.6; - V.NPCSlaves = Math.max(+V.NPCSlaves, 0) || 0; - V.visitors = Math.max(+V.visitors, 0) || 0; - - V.LSCBase = Math.max(+V.LSCBase, 0) || 800; /* nowhere modified */ - V.rentEffectL = Math.max(+V.rentEffectL, 0) || 1; - if (V.lowerClass !== 0) { - V.lowerClass = Math.max(+V.lowerClass, 0) || 3120; - } - if (V.LCRent !== 0) { - V.LCRent = Math.max(+V.LCRent, 0) || 20; - } - - V.MCBase = Math.max(+V.MCBase, 0) || 200; /* nowhere modified */ - V.rentEffectM = Math.max(+V.rentEffectM, 0) || 1; - if (V.middleClass !== 0) { - V.middleClass = Math.max(+V.middleClass, 0) || 890; - } - if (V.MCRent !== 0) { - V.MCRent = Math.max(+V.MCRent, 0) || 50; - } - - V.UCBase = Math.max(+V.UCBase, 0) || 40; /* nowhere modified */ - V.rentEffectU = Math.max(+V.rentEffectU, 0) || 1; - if (V.upperClass !== 0) { - V.upperClass = Math.max(+V.upperClass, 0) || 200; - } - if (V.UCRent !== 0) { - V.UCRent = Math.max(+V.UCRent, 0) || 175; - } - - V.TCBase = Math.max(+V.TCBase, 0) || 20; /* nowhere modified */ - V.rentEffectT = Math.max(+V.rentEffectT, 0) || 1; - if (V.topClass !== 0) { - V.topClass = Math.max(+V.topClass, 0) || 38; - } - if (V.TCRent !== 0) { - V.TCRent = Math.max(+V.TCRent, 0) || 650; - } -}; - -window.ArcologyDatatypeCleanup = function ArcologyDatatypeCleanup() { - const V = State.variables; - - V.arcologies[0].prosperity = Math.clamp(+V.arcologies[0].prosperity, 1, 300) || 1; - V.AProsperityCap = Math.max(+V.AProsperityCap, 0) || 0; - V.arcologies[0].ownership = Math.clamp(+V.arcologies[0].ownership, 0, 100) || 0; - V.arcologies[0].minority = Math.clamp(+V.arcologies[0].minority, 0, 100) || 0; - - V.menials = Math.max(+V.menials, 0) || 0; - V.fuckdolls = Math.max(+V.fuckdolls, 0) || 0; - V.menialBioreactors = Math.max(+V.menialBioreactors, 0) || 0; - - V.ACitizens = Math.max(+V.ACitizens, 0) || 0; - V.ASlaves = Math.max(+V.ASlaves, 0) || V.NPCSlaves + V.menials + V.fuckdolls + V.menialBioreactors; - V.shelterAbuse = Math.max(+V.shelterAbuse, 0) || 0; - - V.assistant = Math.clamp(+V.assistant, 0, 1) || 0; - if (typeof V.assistantPronouns != "object") { - V.assistantPronouns = {}; - } - if (typeof V.marketAssistantPronouns != "object") { - V.marketAssistantPronouns = {}; - } - generateAssistantPronouns(); - - V.foodCost = Math.trunc(2500/V.economy); - V.drugsCost = Math.trunc(10000/V.economy); - V.rulesCost = Math.trunc(10000/V.economy); - V.modCost = Math.trunc(5000/V.economy); - V.surgeryCost = Math.trunc(30000/V.economy); - V.facilityCost = +V.facilityCost || 100; - V.policyCost = +V.policyCost || 5000; - - V.TSS.studentsBought = Math.max(+V.TSS.studentsBought, 0) || 0; - V.TSS.schoolProsperity = Math.clamp(+V.TSS.schoolProsperity, -10, 10) || 0; - V.GRI.studentsBought = Math.max(+V.GRI.studentsBought, 0) || 0; - V.GRI.schoolProsperity = Math.clamp(+V.GRI.schoolProsperity, -10, 10) || 0; - V.SCP.studentsBought = Math.max(+V.SCP.studentsBought, 0) || 0; - V.SCP.schoolProsperity = Math.clamp(+V.SCP.schoolProsperity, -10, 10) || 0; - V.LDE.studentsBought = Math.max(+V.LDE.studentsBought, 0) || 0; - V.LDE.schoolProsperity = Math.clamp(+V.LDE.schoolProsperity, -10, 10) || 0; - V.TGA.studentsBought = Math.max(+V.TGA.studentsBought, 0) || 0; - V.TGA.schoolProsperity = Math.clamp(+V.TGA.schoolProsperity, -10, 10) || 0; - V.HA.studentsBought = Math.max(+V.HA.studentsBought, 0) || 0; - V.HA.schoolProsperity = Math.clamp(+V.HA.schoolProsperity, -10, 10) || 0; - V.TCR.studentsBought = Math.max(+V.TCR.studentsBought, 0) || 0; - V.TCR.schoolProsperity = Math.clamp(+V.TCR.schoolProsperity, -10, 10) || 0; - V.TFS.studentsBought = Math.max(+V.TFS.studentsBought, 0) || 0; - V.TFS.schoolProsperity = Math.clamp(+V.TFS.schoolProsperity, -10, 10) || 0; -}; - -window.FacilityNameCleanup = function FacilityNameCleanup() { - const V = State.variables; - V.arcologies[0].name = V.arcologies[0].name || "Arcology X-4"; - V.brothelName = V.brothelName || "the Brothel"; - V.brothelNameCaps = V.brothelNameCaps || "The Brothel"; - V.dairyName = V.dairyName || "the Dairy"; - V.dairyNameCaps = V.dairyNameCaps || "The Dairy"; - V.clubName = V.clubName || "the Club"; - V.clubNameCaps = V.clubNameCaps || "The Club"; - V.servantsQuartersName = V.servantsQuartersName || "the Servants' Quarters"; - V.servantsQuartersNameCaps = V.servantsQuartersNameCaps || "The Servants' Quarters"; - V.schoolroomName = V.schoolroomName || "the Schoolroom"; - V.schoolroomNameCaps = V.schoolroomNameCaps || "The Schoolroom"; - V.spaName = V.spaName || "the Spa"; - V.spaNameCaps = V.spaNameCaps || "The Spa"; - V.nurseryName = V.nurseryName || "the Nursery"; - V.nurseryNameCaps = V.nurseryNameCaps || "The Nursery"; - V.clinicName = V.clinicName || "the Clinic"; - V.clinicNameCaps = V.clinicNameCaps || "The Clinic"; - V.arcadeName = V.arcadeName || "the Arcade"; - V.arcadeNameCaps = V.arcadeNameCaps || "The Arcade"; - V.cellblockName = V.cellblockName || "the Cellblock"; - V.cellblockNameCaps = V.cellblockNameCaps || "The Cellblock"; - V.masterSuiteName = V.masterSuiteName || "the Master Suite"; - V.masterSuiteNameCaps = V.masterSuiteNameCaps || "The Master Suite"; - V.HGSuiteName = V.HGSuiteName || "the Head Girl Suite"; - V.HGSuiteNameCaps = V.HGSuiteNameCaps || "The Head Girl Suite"; - V.pitName = V.pitName || "the Pit"; - V.pitNameCaps = V.pitNameCaps || "The Pit"; - V.incubatorName = V.incubatorName || "the Incubator"; - V.incubatorNameCaps = V.incubatorNameCaps || "The Incubator"; - V.farmyardName = V.farmyardName || "the Farmyard"; - V.farmyardNameCaps = V.farmyardNameCaps || "The Farmyard"; -}; diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js new file mode 100644 index 0000000000000000000000000000000000000000..17e94be3fb6a06098e5eef4501dc5e7605a5d0d5 --- /dev/null +++ b/src/js/datatypeCleanupJS.js @@ -0,0 +1,1522 @@ +/* + This function does not ensure values make sense. For example, it does not fix weird relations/relationships/rivalries/pregnancies/prosthetics. + It only makes sure most datatypes are correct, and sets to default if not. Number values are clamped to the correct bounds. + Any values that are supposed to be objects or arrays are not handled (yet). + + A tutorial on how to add to this passage: + The || operator can be very useful for setting default values. To be precise, + x = y || z + is the same thing as + if (y) {x = y} + else {x = z} + This means that if z is the default value, in the ideal case you could write x = x || z. If x is already in use, this won't change it, and if x is not defined it will set it to z. + However, for example, if x is 0 but the default is -1 this will actually set x to -1! So care must be taken. + + Let's say you want to add slave.value to this function, and you want it to be a number. + First, you need to take whatever slave.value currently is, and turn it into a number. You can use either +slave.value or Number(slave.value) to do this. + Second, you need to determine what range to restrict slave.value to. You'll either use Math.max, Math.min, Math.clamp, or none of them. + Finally, you need to consider the default value if the .max/.min/.clamp returned 0 (or NaN). To make a long story short, + Use slave.value = Math.max(+slave.value, a) || default; if you need slave.value >= a. + Use slave.value = Math.min(+slave.value, a) || default; if you need slave.value <= a. + Use slave.value = Math.clamp(+slave.value, a, b) || default; if you need a <= slave.value <= b. + Use slave.value = +slave.value || default; if slave.value can be any number. + The exception to this is if the default != 0. In this case, it's usually good enough to just check if slave.value !== 0 first. The strict equality is important! + + If you want slave.value to be a string, there's no easy tricks to make sure it's already an accepted value. The simplest way is the following + if (typeof slave.value !== "string") slave.value = default; +*/ +window.SlaveDatatypeCleanup = (function SlaveDatatypeCleanup() { + "use strict"; + let V; + return SlaveDatatypeCleanup; + + function SlaveDatatypeCleanup(slave) { + V = State.variables; + slaveAgeDatatypeCleanup(slave); + slavePhysicalDatatypeCleanup(slave); + slaveFaceDatatypeCleanup(slave); + slaveHairDatatypeCleanup(slave); + slaveBoobsDatatypeCleanup(slave); + slaveButtDatatypeCleanup(slave); + slavePregnancyDatatypeCleanup(slave); + slaveBellyDatatypeCleanup(slave); + slaveGenitaliaDatatypeCleanup(slave); + slaveImplantsDatatypeCleanup(slave); + slavePiercingsDatatypeCleanup(slave); + slaveTattooDatatypeCleanup(slave); + slaveCosmeticsDatatypeCleanup(slave); + slaveDietDatatypeCleanup(slave); + slavePornDatatypeCleanup(slave); + slaveRelationDatatypeCleanup(slave); + slaveSkillsDatatypeCleanup(slave); + slaveStatCountDatatypeCleanup(slave); + slavePreferencesDatatypeCleanup(slave); + slaveRulesDatatypeCleanup(slave); + slaveCustomStatsDatatypeCleanup(slave); + slaveMiscellaneousDatatypeCleanup(slave); + generatePronouns(slave); + } + + function slaveAgeDatatypeCleanup(slave) { + slave.birthWeek = Math.clamp(+slave.birthWeek, 0, 51) || 0; + if (slave.age > 0) { + slave.actualAge = Math.clamp(+slave.actualAge, V.minimumSlaveAge, Infinity) || slave.age; /* if undefined, this sets to slave.age */ + } else { + slave.actualAge = Math.clamp(+slave.actualAge, V.minimumSlaveAge, Infinity) || 18; + slave.age = slave.actualAge; + } + slave.visualAge = Math.max(+slave.visualAge, 0) || slave.actualAge; + slave.physicalAge = Math.max(+slave.physicalAge, 0) || slave.actualAge; + slave.ovaryAge = Math.max(+slave.ovaryAge, 0) || slave.physicalAge; + slave.pubertyAgeXX = Math.max(+slave.pubertyAgeXX, 0) || V.fertilityAge; + slave.pubertyAgeXY = Math.max(+slave.pubertyAgeXY, 0) || V.potencyAge; + slave.ageAdjust = Math.clamp(+slave.ageAdjust, -40, 40) || 0; + slave.NCSyouthening = Math.max(+slave.NCSyouthening, 0) || 0; + } + + function slavePhysicalDatatypeCleanup(slave) { + if (typeof slave.nationality !== "string") { + slave.nationality = "slave"; + } + if (typeof slave.race !== "string") { + nationalityToRace(slave); + } + if (typeof slave.origRace !== "string") { + slave.origRace = slave.race; + } + if (typeof slave.skin !== "string") { + slave.skin = "light"; + } + if (typeof slave.origSkin !== "string") { + slave.origSkin = slave.skin; + } + if (typeof slave.minorInjury !== "string") { + slave.minorInjury = 0; + } + slave.health = Math.clamp(+slave.health, -100, 100) || 0; + slave.muscles = Math.clamp(+slave.muscles, -100, 100) || 0; + slave.weight = Math.clamp(+slave.weight, -100, 200) || 0; + slave.waist = Math.clamp(+slave.waist, -100, 100) || 0; + slave.height = Math.round(Math.max(+slave.height, 0)) || Math.round(Height.mean(slave)); + slave.shoulders = Math.clamp(+slave.shoulders, -2, 2) || 0; + slave.hips = Math.clamp(+slave.hips, -2, 3) || 0; + } + + function slaveFaceDatatypeCleanup(slave) { + slave.face = Math.clamp(+slave.face, -100, 100) || 0; + if (typeof slave.faceShape !== "string") { + slave.faceShape = "normal"; + } + slave.eyes = Math.clamp(+slave.eyes, -3, 1) || 1; /* if 0 or undefined, this sets to 1 */ + if (typeof slave.eyeColor !== "string") { + slave.eyeColor = "brown"; + } + if (typeof slave.origEye !== "string") { + slave.origEye = slave.eyeColor; + } + if (typeof slave.pupil !== "string") { + slave.pupil = "circular"; + } + if (typeof slave.sclerae !== "string") { + slave.sclerae = "white"; + } + if (slave.lips !== 0) { + slave.lips = Math.clamp(+slave.lips, 0, 100) || 15; + } + } + + function slaveHairDatatypeCleanup(slave) { + if (typeof slave.hColor !== "string") { + slave.hColor = "brown"; + } + if (typeof slave.origHColor !== "string") { + slave.origHColor = slave.hColor; + } + if (slave.hLength !== 0) { + slave.hLength = Math.clamp(+slave.hLength, 0, 300) || 60; + } + if (typeof slave.hStyle !== "string") { + slave.hStyle = "long"; + } + slave.haircuts = Math.clamp(+slave.haircuts, 0, 1) || 0; + slave.bald = Math.clamp(+slave.bald, 0, 1) || 0; + if (typeof slave.pubicHColor !== "string") { + slave.pubicHColor = slave.hColor; + } + if (typeof slave.pubicHStyle !== "string") { + slave.pubicHStyle = "neat"; + } + if (typeof slave.underArmHColor !== "string") { + slave.underArmHColor = "slave.hColor"; + } + if (typeof slave.underArmHStyle !== "string") { + slave.underArmHStyle = "waxed"; + } + if (typeof slave.eyebrowHColor !== "string") { + slave.eyebrowHColor = "slave.hColor"; + } + if (typeof slave.eyebrowHStyle !== "string") { + slave.eyebrowHStyle = "natural"; + } + if (typeof slave.eyebrowFullness !== "string") { + slave.eyebrowFullness = "natural"; + } + } + + function slaveBoobsDatatypeCleanup(slave) { + slave.boobs = Math.max(+slave.boobs, 100) || 200; + if (typeof slave.boobShape !== "string") { + slave.boobShape = "normal"; + } + if (typeof slave.nipples !== "string") { + slave.nipples = "cute"; + } + if (typeof slave.nipplesAccessory !== "string") { + slave.nipplesAccessory = "none"; + } + slave.areolae = Math.clamp(+slave.areolae, 0, 3) || 0; + if (typeof slave.areolaeShape !== "string") { + slave.areolaeShape = "circle"; + } + slave.lactation = Math.clamp(+slave.lactation, 0, 2) || 0; + slave.boobsMilk = Math.max(+slave.boobsMilk, 0) || 0; + slave.lactationAdaptation = Math.clamp(+slave.lactationAdaptation, 0, 100) || 0; + } + + function slaveButtDatatypeCleanup(slave) { + if (slave.butt !== 0) { + slave.butt = Math.clamp(+slave.butt, 0, 20) || 1; + } + slave.anus = Math.clamp(+slave.anus, 0, 4) || 0; + slave.analArea = Math.max(+slave.analArea, 0) || 0; + } + + function slavePregnancyDatatypeCleanup(slave) { + slave.induce = Math.clamp(+slave.induce, 0, 1) || 0; + slave.labor = Math.clamp(+slave.labor, 0, 1) || 0; + slave.cSec = Math.clamp(+slave.cSec, 0, 1) || 0; + slave.prematureBirth = Math.clamp(+slave.prematureBirth, 0, 1) || 0; + slave.ovaries = Math.clamp(+slave.ovaries, 0, 1) || 0; + slave.vasectomy = Math.clamp(+slave.vasectomy, 0, 1) || 0; + slave.mpreg = Math.clamp(+slave.mpreg, 0, 1) || 0; + if (slave.pregAdaptation !== 0) { + slave.pregAdaptation = Math.max(+slave.pregAdaptation, 0) || 50; + } + slave.ovaImplant = Math.clamp(+slave.ovaImplant, -1, 2) || 0; + slave.broodmother = Math.clamp(+slave.broodmother, 0, 3) || 0; + slave.broodmotherFetuses = Math.max(+slave.broodmotherFetuses, 0) || 0; + slave.broodmotherOnHold = Math.clamp(+slave.broodmotherOnHold, 0, 1) || 0; + slave.pregSource = +slave.pregSource || 0; + if (typeof slave.pregControl !== "string") { + slave.pregControl = "none"; + } + WombNormalizePreg(slave); + } + + function slaveBellyDatatypeCleanup(slave) { + slave.inflation = Math.clamp(+slave.inflation, 0, 3) || 0; + if (typeof slave.inflationType !== "string") { + slave.inflationType = "none"; + } + slave.inflationMethod = Math.clamp(+slave.inflationMethod, 0, 3) || 0; + slave.milkSource = Math.max(+slave.milkSource, 0) || 0; + slave.cumSource = Math.max(+slave.cumSource, 0) || 0; + slave.burst = Math.clamp(+slave.burst, 0, 1) || 0; + if (slave.bellyImplant !== 0) { + slave.bellyImplant = Math.max(+slave.bellyImplant, -1) || -1; + } + slave.cervixImplant = Math.clamp(+slave.cervixImplant, 0, 3) || 0; + slave.bellySag = Math.max(+slave.bellySag, 0) || 0; + slave.bellySagPreg = Math.max(+slave.bellySagPreg, 0) || slave.bellySag; + slave.bellyPain = Math.clamp(+slave.bellyPain, 0, 2) || 0; + SetBellySize(slave); + } + + function slaveGenitaliaDatatypeCleanup(slave) { + slave.vagina = Math.clamp(+slave.vagina, -1, 10) || 0; + slave.vaginaLube = Math.clamp(+slave.vaginaLube, 0, 2) || 0; + slave.labia = Math.clamp(+slave.labia, 0, 3) || 0; + slave.clit = Math.clamp(+slave.clit, 0, 5) || 0; + slave.foreskin = Math.max(+slave.foreskin, 0) || 0; + slave.dick = Math.max(+slave.dick, 0) || 0; + if (slave.dick && slave.prostate !== 0) { + slave.prostate = Math.clamp(+slave.prostate, 0, 3) || 1; + } else { + slave.prostate = Math.clamp(+slave.prostate, 0, 3) || 0; + } + slave.balls = Math.max(+slave.balls, 0) || 0; + if (slave.scrotum !== 0) { + slave.scrotum = Math.max(+slave.scrotum, 0) || slave.balls; + } + } + + function slaveImplantsDatatypeCleanup(slave) { + slave.ageImplant = Math.clamp(+slave.ageImplant, 0, 1) || 0; + slave.faceImplant = Math.clamp(+slave.faceImplant, 0, 100) || 0; + slave.lipsImplant = Math.clamp(+slave.lipsImplant, 0, 100) || 0; + slave.voiceImplant = Math.clamp(+slave.voiceImplant, -1, 1) || 0; + slave.boobsImplant = Math.max(+slave.boobsImplant, 0) || 0; + slave.boobsImplantType = Math.clamp(+slave.boobsImplantType, 0, 1) || 0; + slave.breastMesh = Math.clamp(+slave.breastMesh, 0, 1) || 0; + slave.buttImplant = Math.clamp(+slave.buttImplant, 0, 3) || 0; + slave.buttImplantType = Math.clamp(+slave.buttImplantType, 0, 1) || 0; + slave.heightImplant = Math.clamp(+slave.heightImplant, -1, 1) || 0; + slave.earImplant = Math.clamp(+slave.earImplant, 0, 1) || 0; + slave.shouldersImplant = Math.clamp(+slave.shouldersImplant, -1, 1) || 0; + slave.hipsImplant = Math.clamp(+slave.hipsImplant, -1, 1) || 0; + } + + function slavePiercingsDatatypeCleanup(slave) { + slave.earPiercing = Math.clamp(+slave.earPiercing, 0, 2) || 0; + slave.nosePiercing = Math.clamp(+slave.nosePiercing, 0, 2) || 0; + slave.eyebrowPiercing = Math.clamp(+slave.eyebrowPiercing, 0, 2) || 0; + slave.lipsPiercing = Math.clamp(+slave.lipsPiercing, 0, 2) || 0; + slave.tonguePiercing = Math.clamp(+slave.tonguePiercing, 0, 2) || 0; + slave.nipplesPiercing = Math.clamp(+slave.nipplesPiercing, 0, 2) || 0; + slave.areolaePiercing = Math.clamp(+slave.areolaePiercing, 0, 2) || 0; + slave.corsetPiercing = Math.clamp(+slave.corsetPiercing, 0, 1) || 0; + slave.navelPiercing = Math.clamp(+slave.navelPiercing, 0, 2) || 0; + slave.clitPiercing = Math.clamp(+slave.clitPiercing, 0, 3) || 0; + slave.vaginaPiercing = Math.clamp(+slave.vaginaPiercing, 0, 2) || 0; + slave.dickPiercing = Math.clamp(+slave.dickPiercing, 0, 2) || 0; + slave.anusPiercing = Math.clamp(+slave.anusPiercing, 0, 2) || 0; + } + + function slaveTattooDatatypeCleanup(slave) { + if (typeof slave.shouldersTat !== "string") { + slave.shouldersTat = 0; + } + if (typeof slave.lipsTat !== "string") { + slave.lipsTat = 0; + } + if (typeof slave.boobsTat !== "string") { + slave.boobsTat = 0; + } + if (typeof slave.armsTat !== "string") { + slave.armsTat = 0; + } + if (typeof slave.backTat !== "string") { + slave.backTat = 0; + } + if (typeof slave.stampTat !== "string") { + slave.stampTat = 0; + } + if (typeof slave.buttTat !== "string") { + slave.buttTat = 0; + } + if (typeof slave.vaginaTat !== "string") { + slave.vaginaTat = 0; + } + if (typeof slave.dickTat !== "string") { + slave.dickTat = 0; + } + if (typeof slave.anusTat !== "string") { + slave.anusTat = 0; + } + if (typeof slave.legsTat !== "string") { + slave.legsTat = 0; + } + if (typeof slave.bellyTat !== "string") { + slave.bellyTat = 0; + } + if (typeof slave.customTat !== "string") { + slave.customTat = ""; + } + } + + function slaveCosmeticsDatatypeCleanup(slave) { + slave.makeup = Math.clamp(+slave.makeup, 0, 8) || 0; + slave.nails = Math.clamp(+slave.nails, 0, 9) || 0; + slave.scars = Math.clamp(+slave.scars, 0, 6) || 0; + slave.choosesOwnClothes = Math.clamp(+slave.choosesOwnClothes, 0, 1) || 0; + if (typeof slave.clothes !== "string") { + slave.clothes = "no clothing"; + } + if (typeof slave.collar !== "string") { + slave.collar = "none"; + } + if (typeof slave.shoes !== "string") { + slave.shoes = "none"; + } + if (typeof slave.eyewear !== "string") { + slave.eyewear = "none"; + } + slave.brand = Math.clamp(+slave.brand, 0, 1) || 0; + if (typeof slave.brandLocation !== "string") { + slave.brandLocation = 0; + } + if (typeof slave.markings !== "string") { + slave.markings = "none"; + } + if (typeof slave.bellyAccessory !== "string") { + slave.bellyAccessory = "none"; + } + if (typeof slave.vaginalAccessory !== "string") { + slave.vaginalAccessory = "none"; + } + if (typeof slave.dickAccessory !== "string") { + slave.dickAccessory = "none"; + } + if (typeof slave.legAccessory !== "string") { + slave.legAccessory = "none"; + } + if (typeof slave.buttplug !== "string") { + slave.buttplug = "none"; + } + if (typeof slave.buttplugAttachment !== "string") { + slave.buttplugAttachment = "none"; + } + if (typeof slave.headAccessory !== "string") { + slave.headAccessory = "none"; + } + if (typeof slave.rearAccessory !== "string") { + slave.rearAccessory = "none"; + } + if (typeof slave.backAccessory !== "string") { + slave.backAccessory = "none"; + } + } + + function slaveDietDatatypeCleanup(slave) { + if (typeof slave.diet !== "string") { + slave.diet = "healthy"; + } + slave.dietCum = Math.clamp(+slave.dietCum, 0, 2) || 0; + slave.dietMilk = Math.clamp(+slave.dietMilk, 0, 2) || 0; + slave.onDiet = Math.clamp(+slave.onDiet, 0, 1) || 0; + slave.hormones = Math.clamp(+slave.hormones, -2, 2) || 0; + slave.hormoneBalance = Math.clamp(+slave.hormoneBalance, -400, 400) || 0; + if (typeof slave.drugs !== "string") { + slave.drugs = "no drugs"; + } + slave.aphrodisiacs = Math.clamp(+slave.aphrodisiacs, 0, 2) || 0; + slave.curatives = Math.clamp(+slave.curatives, 0, 2) || 0; + } + + function slavePornDatatypeCleanup(slave) { + slave.pornFeed = Math.clamp(+slave.pornFeed, 0, 1) || 0; + slave.pornFame = Math.max(+slave.pornFame, 0) || 0; + slave.pornFameSpending = Math.max(+slave.pornFameSpending, 0) || 0; + slave.pornPrestige = Math.clamp(+slave.pornPrestige, 0, 3) || 0; + if (typeof slave.pornPrestigeDesc !== "string") { + slave.pornPrestigeDesc = 0; + } + if (typeof slave.pornFameType !== "string") { + slave.pornFameType = "none"; + } + if (typeof slave.pornFocus !== "string") { + slave.pornFocus = "none"; + } + slave.pornTypeGeneral = Math.max(+slave.pornTypeGeneral, 0) || 0; + slave.pornTypeFuckdoll = Math.max(+slave.pornTypeFuckdoll, 0) || 0; + slave.pornTypeRape = Math.max(+slave.pornTypeRape, 0) || 0; + slave.pornTypePreggo = Math.max(+slave.pornTypePreggo, 0) || 0; + slave.pornTypeBBW = Math.max(+slave.pornTypeBBW, 0) || 0; + slave.pornTypeGainer = Math.max(+slave.pornTypeGainer, 0) || 0; + slave.pornTypeStud = Math.max(+slave.pornTypeStud, 0) || 0; + slave.pornTypeLoli = Math.max(+slave.pornTypeLoli, 0) || 0; + slave.pornTypeDeepThroat = Math.max(+slave.pornTypeDeepThroat, 0) || 0; + slave.pornTypeStruggleFuck = Math.max(+slave.pornTypeStruggleFuck, 0) || 0; + slave.pornTypePainal = Math.max(+slave.pornTypePainal, 0) || 0; + slave.pornTypeTease = Math.max(+slave.pornTypeTease, 0) || 0; + slave.pornTypeRomantic = Math.max(+slave.pornTypeRomantic, 0) || 0; + slave.pornTypePervert = Math.max(+slave.pornTypePervert, 0) || 0; + slave.pornTypeCaring = Math.max(+slave.pornTypeCaring, 0) || 0; + slave.pornTypeUnflinching = Math.max(+slave.pornTypeUnflinching, 0) || 0; + slave.pornTypeSizeQueen = Math.max(+slave.pornTypeSizeQueen, 0) || 0; + slave.pornTypeNeglectful = Math.max(+slave.pornTypeNeglectful, 0) || 0; + slave.pornTypeCumAddict = Math.max(+slave.pornTypeCumAddict, 0) || 0; + slave.pornTypeAnalAddict = Math.max(+slave.pornTypeAnalAddict, 0) || 0; + slave.pornTypeAttentionWhore = Math.max(+slave.pornTypeAttentionWhore, 0) || 0; + slave.pornTypeBreastGrowth = Math.max(+slave.pornTypeBreastGrowth, 0) || 0; + slave.pornTypeAbusive = Math.max(+slave.pornTypeAbusive, 0) || 0; + slave.pornTypeMalicious = Math.max(+slave.pornTypeMalicious, 0) || 0; + slave.pornTypeSelfHating = Math.max(+slave.pornTypeSelfHating, 0) || 0; + slave.pornTypeBreeder = Math.max(+slave.pornTypeBreeder, 0) || 0; + slave.pornTypeSub = Math.max(+slave.pornTypeSub, 0) || 0; + slave.pornTypeCumSlut = Math.max(+slave.pornTypeCumSlut, 0) || 0; + slave.pornTypeAnal = Math.max(+slave.pornTypeAnal, 0) || 0; + slave.pornTypeHumiliation = Math.max(+slave.pornTypeHumiliation, 0) || 0; + slave.pornTypeBoobs = Math.max(+slave.pornTypeBoobs, 0) || 0; + slave.pornTypeDom = Math.max(+slave.pornTypeDom, 0) || 0; + slave.pornTypeSadist = Math.max(+slave.pornTypeSadist, 0) || 0; + slave.pornTypeMasochist = Math.max(+slave.pornTypeMasochist, 0) || 0; + slave.pornTypePregnancy = Math.max(+slave.pornTypePregnancy, 0) || 0; + } + + function slaveRelationDatatypeCleanup(slave) { + slave.mother = +slave.mother || 0; + slave.father = +slave.father || 0; + if (V.familyTesting == 0) { + slave.relationTarget = Math.max(+slave.relationTarget, 0) || 0; + } + slave.canRecruit = Math.clamp(+slave.canRecruit, 0, 1) || 0; + slave.relationship = Math.clamp(+slave.relationship, -3, 5) || 0; + slave.relationshipTarget = Math.max(+slave.relationshipTarget, 0) || 0; + slave.rivalryTarget = Math.max(+slave.rivalryTarget, 0) || 0; + slave.rivalry = Math.clamp(+slave.rivalry, 0, 3) || 0; + slave.cloneID = +slave.cloneID || 0; + } + + function slaveSkillsDatatypeCleanup(slave) { + slave.oralSkill = Math.clamp(+slave.oralSkill, 0, 100) || 0; + slave.vaginalSkill = Math.clamp(+slave.vaginalSkill, 0, 100) || 0; + slave.analSkill = Math.clamp(+slave.analSkill, 0, 100) || 0; + slave.whoreSkill = Math.clamp(+slave.whoreSkill, 0, 100) || 0; + slave.entertainSkill = Math.clamp(+slave.entertainSkill, 0, 100) || 0; + slave.combatSkill = Math.clamp(+slave.combatSkill, 0, 1) || 0; + slave.skillHG = Math.clamp(+slave.skillHG, 0, 200) || 0; + slave.skillRC = Math.clamp(+slave.skillRC, 0, 200) || 0; + slave.skillBG = Math.clamp(+slave.skillBG, 0, 200) || 0; + slave.skillMD = Math.clamp(+slave.skillMD, 0, 200) || 0; + slave.skillDJ = Math.clamp(+slave.skillDJ, 0, 200) || 0; + slave.skillNU = Math.clamp(+slave.skillNU, 0, 200) || 0; + slave.skillTE = Math.clamp(+slave.skillTE, 0, 200) || 0; + slave.skillAT = Math.clamp(+slave.skillAT, 0, 200) || 0; + slave.skillMT = Math.clamp(+slave.skillMT, 0, 200) || 0; + slave.skillST = Math.clamp(+slave.skillST, 0, 200) || 0; + slave.skillMM = Math.clamp(+slave.skillMM, 0, 200) || 0; + slave.skillFA = Math.clamp(+slave.skillFA, 0, 200) || 0; + slave.skillWA = Math.clamp(+slave.skillWA, 0, 200) || 0; + slave.skillS = Math.clamp(+slave.skillS, 0, 200) || 0; + slave.skillE = Math.clamp(+slave.skillE, 0, 200) || 0; + slave.skillW = Math.clamp(+slave.skillW, 0, 200) || 0; + } + + function slaveStatCountDatatypeCleanup(slave) { + slave.oralCount = Math.max(+slave.oralCount, 0) || 0; + slave.vaginalCount = Math.max(+slave.vaginalCount, 0) || 0; + slave.analCount = Math.max(+slave.analCount, 0) || 0; + slave.publicCount = Math.max(+slave.publicCount, 0) || 0; + slave.mammaryCount = Math.max(+slave.mammaryCount, 0) || 0; + slave.penetrativeCount = Math.max(+slave.penetrativeCount, 0) || 0; + slave.pitKills = Math.max(+slave.pitKills, 0) || 0; + slave.milk = Math.max(+slave.milk, 0) || 0; + slave.cum = Math.max(+slave.cum, 0) || 0; + slave.births = Math.max(+slave.births, 0) || 0; + slave.birthsTotal = Math.max(+slave.birthsTotal, 0) || slave.births; + slave.laborCount = Math.max(+slave.laborCount, 0) || slave.birthsTotal; + slave.slavesFathered = Math.max(+slave.slavesFathered, 0) || 0; + slave.PCChildrenFathered = Math.max(+slave.PCChildrenFathered, 0) || 0; + slave.slavesKnockedUp = Math.max(+slave.slavesKnockedUp, 0) || 0; + slave.PCKnockedUp = Math.max(+slave.PCKnockedUp, 0) || 0; + slave.bodySwap = Math.max(+slave.bodySwap, 0) || 0; + } + + function slavePreferencesDatatypeCleanup(slave) { + slave.energy = Math.clamp(+slave.energy, 0, 100) || 0; + slave.need = Math.max(+slave.need, 0) || 0; + slave.attrXY = Math.clamp(+slave.attrXY, 0, 100) || 0; + slave.attrXX = Math.clamp(+slave.attrXX, 0, 100) || 0; + slave.attrKnown = Math.clamp(+slave.attrKnown, 0, 1) || 0; + slave.fetishStrength = Math.clamp(+slave.fetishStrength, 0, 100) || 0; + slave.fetishKnown = Math.clamp(+slave.fetishKnown, 0, 1) || 0; + } + + function slaveRulesDatatypeCleanup(slave) { + if (typeof slave.standardPunishment !== "string") { + slave.standardPunishment = "situational"; + } + if (typeof slave.standardReward !== "string") { + slave.standardReward = "situational"; + } + if (slave.useRulesAssistant !== 0) { + slave.useRulesAssistant = 1; + } + slave.choosesOwnAssignment = Math.clamp(+slave.choosesOwnAssignment, 0) || 0; + slave.HGExclude = Math.clamp(+slave.HGExclude, 0, 1) || 0; + slave.choosesOwnChastity = Math.clamp(+slave.choosesOwnChastity, 0, 1) || 0; + slave.breedingMark = Math.clamp(+slave.breedingMark, 0, 1) || 0; + slave.rudeTitle = Math.clamp(+slave.rudeTitle, 0, 1) || 0; + } + + function slaveCustomStatsDatatypeCleanup(slave) { + if (typeof slave.customLabel !== "string") { + slave.customLabel = ""; + } + if (typeof slave.customDesc !== "string") { + slave.customDesc = ""; + } + if (typeof slave.customTitle !== "string") { + slave.customTitle = ""; + } + if (typeof slave.customTitleLisp !== "string") { + slave.customTitleLisp = ""; + } + if (typeof slave.customImage !== "string") { + slave.customImage = 0; + } + } + + function slaveMiscellaneousDatatypeCleanup(slave) { + slave.weekAcquired = Math.max(+slave.weekAcquired, 0) || 0; + slave.newGamePlus = Math.clamp(+slave.newGamePlus, 0, 1) || 0; + slave.prestige = Math.clamp(+slave.prestige, 0, 3) || 0; + slave.devotion = Math.clamp(+slave.devotion, -100, 100) || 0; + slave.oldDevotion = Math.clamp(+slave.oldDevotion, -100, 100) || 0; + slave.trust = Math.clamp(+slave.trust, -100, 100) || 0; + slave.oldTrust = Math.clamp(+slave.oldTrust, -100, 100) || 0; + slave.fuckdoll = Math.clamp(+slave.fuckdoll, 0, 100) || 0; + slave.chem = Math.max(+slave.chem, 0) || 0; + slave.addict = Math.max(+slave.addict, 0) || 0; + slave.intelligence = Math.clamp(+slave.intelligence, -100, 100) || 0; + slave.intelligenceImplant = Math.clamp(+slave.intelligenceImplant, 0, 30) || 0; + slave.premature = Math.clamp(+slave.premature, 0, 1) || 0; + slave.tankBaby = Math.clamp(+slave.tankBaby, 0, 2) || 0; + slave.subTarget = Math.max(+slave.subTarget, 0) || 0; + slave.sentence = Math.max(+slave.sentence, 0) || 0; + slave.training = Math.clamp(+slave.training, 0, 150) || 0; + if (slave.indenture !== 0) { + slave.indenture = Math.max(+slave.indenture, -1) || -1; + } + slave.indentureRestrictions = Math.clamp(+slave.indentureRestriction, 0, 2) || 0; + slave.tired = Math.clamp(+slave.tired, 0, 1) || 0; + slave.hears = Math.clamp(+slave.hears, -2, 0) || 0; + if (typeof slave.earwear !== "string") { + slave.earwear = "none"; + } + slave.heels = Math.clamp(+slave.heels, 0, 1) || 0; + slave.amp = Math.clamp(+slave.amp, -5, 1) || 0; + slave.PLimb = Math.clamp(+slave.PLimb, 0, 1) || 0; + if (slave.voice !== 0) { + slave.voice = Math.clamp(+slave.voice, 0, 3) || 1; + } + slave.electrolarynx = Math.clamp(+slave.electrolarynx, 0, 1) || 0; + slave.accent = Math.clamp(+slave.accent, 0, 3) || 0; + slave.missingEyes = Math.clamp(+slave.missingEyes, 0, 3) || 0; + slave.missingArms = Math.clamp(+slave.missingArms, 0, 3) || 0; + slave.missingLegs = Math.clamp(+slave.missingLegs, 0, 3) || 0; + if (typeof slave.ballType !== "string") { + slave.ballType = "human"; + } + if (typeof slave.eggType !== "string") { + slave.eggType = "human"; + } + if (typeof slave.origBodyOwner !== "string") { + slave.origBodyOwner = ""; + } + slave.origBodyOwnerID = Math.max(+slave.origBodyOwnerID, 0) || 0; + if (typeof slave.death !== "string") { + slave.death = ""; + } + if (slave.slaveCost !== 0) { + slave.slaveCost = Math.min(+slave.slaveCost, 1) || 1; + } + slave.lifetimeCashExpenses = Math.min(+slave.lifetimeCashExpenses, 0) || 0; + slave.lifetimeCashIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; + slave.lastWeeksCashIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; + slave.lifetimeRepExpenses = Math.min(+slave.lifetimeCashExpenses, 0) || 0; + slave.lifetimeRepIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; + slave.lastWeeksRepIncome = Math.max(+slave.lifetimeCashIncome, 0) || 0; + } +})(); + +/* a lot of this may need to be removed */ +window.ChildDatatypeCleanup = function ChildDatatypeCleanup(child) { + childAgeDatatypeCleanup(child); + childPhysicalDatatypeCleanup(child); + childFaceDatatypeCleanup(child); + childHairDatatypeCleanup(child); + childBoobsDatatypeCleanup(child); + childButtDatatypeCleanup(child); + childPregnancyDatatypeCleanup(child); + childBellyDatatypeCleanup(child); + childGenitaliaDatatypeCleanup(child); + childImplantsDatatypeCleanup(child); + childPiercingsDatatypeCleanup(child); + childTattooDatatypeCleanup(child); + childCosmeticsDatatypeCleanup(child); + childDietDatatypeCleanup(child); + childPornDatatypeCleanup(child); + childRelationDatatypeCleanup(child); + childSkillsDatatypeCleanup(child); + childStatCountDatatypeCleanup(child); + childPreferencesDatatypeCleanup(child); + childRulesDatatypeCleanup(child); + childCustomStatsDatatypeCleanup(child); + childMiscellaneousDatatypeCleanup(child); + generatePronouns(child); +}; + +window.childAgeDatatypeCleanup = function childAgeDatatypeCleanup(child) { + const V = State.variables; + + child.birthWeek = Math.clamp(+child.birthWeek, 0, 51) || 0; + if (child.age > 0) { + child.actualAge = Math.clamp(+child.actualAge, V.minimumChildAge, Infinity) || child.age; /* if undefined, this sets to child.age */ + } else { + child.actualAge = Math.clamp(+child.actualAge, V.minimumChildAge, Infinity) || 18; + child.age = child.actualAge; + } + child.visualAge = Math.max(+child.visualAge, 0) || child.actualAge; + child.physicalAge = Math.max(+child.physicalAge, 0) || child.actualAge; + child.ovaryAge = Math.max(+child.ovaryAge, 0) || child.physicalAge; + child.pubertyAgeXX = Math.max(+child.pubertyAgeXX, 0) || V.fertilityAge; + child.pubertyAgeXY = Math.max(+child.pubertyAgeXY, 0) || V.potencyAge; +}; + +window.childPhysicalDatatypeCleanup = function childPhysicalDatatypeCleanup(child) { + if (typeof child.nationality !== "string") { + child.nationality = "child"; + } + if (typeof child.race !== "string") { + nationalityToRace(child); + } + if (typeof child.origRace !== "string") { + child.origRace = child.race; + } + if (typeof child.skin !== "string") { + child.skin = "light"; + } + if (typeof child.origSkin !== "string") { + child.origSkin = child.skin; + } + if (typeof child.minorInjury !== "string") { + child.minorInjury = 0; + } + child.health = Math.clamp(+child.health, -100, 100) || 0; + child.muscles = Math.clamp(+child.muscles, -100, 100) || 0; + child.weight = Math.clamp(+child.weight, -100, 200) || 0; + child.waist = Math.clamp(+child.waist, -100, 100) || 0; + child.height = Math.round(Math.max(+child.height, 0)) || Math.round(Height.mean(child)); + child.shoulders = Math.clamp(+child.shoulders, -2, 2) || 0; + child.hips = Math.clamp(+child.hips, -2, 3) || 0; +}; + +window.childFaceDatatypeCleanup = function childFaceDatatypeCleanup(child) { + child.face = Math.clamp(+child.face, -100, 100) || 0; + if (typeof child.faceShape !== "string") { + child.faceShape = "normal"; + } + child.eyes = Math.clamp(+child.eyes, -3, 1) || 1; /* if 0 or undefined, this sets to 1 */ + if (typeof child.eyeColor !== "string") { + child.eyeColor = "brown"; + } + if (typeof child.origEye !== "string") { + child.origEye = child.eyeColor; + } + if (typeof child.pupil !== "string") { + child.pupil = "circular"; + } + if (typeof child.sclerae !== "string") { + child.sclerae = "white"; + } + if (child.lips !== 0) { + child.lips = Math.clamp(+child.lips, 0, 100) || 15; + } +}; + +window.childHairDatatypeCleanup = function childHairDatatypeCleanup(child) { + if (typeof child.hColor !== "string") { + child.hColor = "brown"; + } + if (typeof child.origHColor !== "string") { + child.origHColor = child.hColor; + } + if (child.hLength !== 0) { + child.hLength = Math.clamp(+child.hLength, 0, 300) || 60; + } + if (typeof child.hStyle !== "string") { + child.hStyle = "long"; + } + child.haircuts = Math.clamp(+child.haircuts, 0, 1) || 0; + child.bald = Math.clamp(+child.bald, 0, 1) || 0; + if (typeof child.pubicHColor !== "string") { + child.pubicHColor = child.hColor; + } + if (typeof child.pubicHStyle !== "string") { + child.pubicHStyle = "neat"; + } + if (typeof child.underArmHColor !== "string") { + child.underArmHColor = "child.hColor"; + } + if (typeof child.underArmHStyle !== "string") { + child.underArmHStyle = "waxed"; + } + if (typeof child.eyebrowHColor !== "string") { + child.eyebrowHColor = "child.hColor"; + } + if (typeof child.eyebrowHStyle !== "string") { + child.eyebrowHStyle = "natural"; + } + if (typeof child.eyebrowFullness !== "string") { + child.eyebrowFullness = "natural"; + } +}; + +window.childBoobsDatatypeCleanup = function childBoobsDatatypeCleanup(child) { + child.boobs = Math.max(+child.boobs, 100) || 200; + if (typeof child.boobShape !== "string") { + child.boobShape = "normal"; + } + if (typeof child.nipples !== "string") { + child.nipples = "cute"; + } + if (typeof child.nipplesAccessory !== "string") { + child.nipplesAccessory = "none"; + } + child.areolae = Math.clamp(+child.areolae, 0, 3) || 0; + if (typeof child.areolaeShape !== "string") { + child.areolaeShape = "circle"; + } + child.lactation = Math.clamp(+child.lactation, 0, 2) || 0; + child.lactationAdaptation = Math.clamp(+child.lactationAdaptation, 0, 100) || 0; +}; + +window.childButtDatatypeCleanup = function childButtDatatypeCleanup(child) { + if (child.butt !== 0) { + child.butt = Math.clamp(+child.butt, 0, 20) || 1; + } + child.anus = Math.clamp(+child.anus, 0, 4) || 0; + child.analArea = Math.max(+child.analArea, 0) || 0; +}; + +window.childPregnancyDatatypeCleanup = function childPregnancyDatatypeCleanup(child) { + child.induce = Math.clamp(+child.induce, 0, 1) || 0; + child.labor = Math.clamp(+child.labor, 0, 1) || 0; + child.cSec = Math.clamp(+child.cSec, 0, 1) || 0; + child.prematureBirth = Math.clamp(+child.prematureBirth, 0, 1) || 0; + child.ovaries = Math.clamp(+child.ovaries, 0, 1) || 0; + child.vasectomy = Math.clamp(+child.vasectomy, 0, 1) || 0; + child.mpreg = Math.clamp(+child.mpreg, 0, 1) || 0; + if (child.pregAdaptation !== 0) { + child.pregAdaptation = Math.max(+child.pregAdaptation, 0) || 50; + } + child.pregSource = +child.pregSource || 0; + if (typeof child.pregControl !== "string") { + child.pregControl = "none"; + } + WombNormalizePreg(child); +}; + +window.childBellyDatatypeCleanup = function childBellyDatatypeCleanup(child) { + child.bellySag = Math.max(+child.bellySag, 0) || 0; + child.bellySagPreg = Math.max(+child.bellySagPreg, 0) || child.bellySag; + SetBellySize(child); +}; + +window.childGenitaliaDatatypeCleanup = function childGenitaliaDatatypeCleanup(child) { + child.vagina = Math.clamp(+child.vagina, -1, 10) || 0; + child.vaginaLube = Math.clamp(+child.vaginaLube, 0, 2) || 0; + child.labia = Math.clamp(+child.labia, 0, 3) || 0; + child.clit = Math.clamp(+child.clit, 0, 5) || 0; + child.foreskin = Math.max(+child.foreskin, 0) || 0; + child.dick = Math.max(+child.dick, 0) || 0; + if (child.dick && child.prostate !== 0) { + child.prostate = Math.clamp(+child.prostate, 0, 3) || 1; + } else { + child.prostate = Math.clamp(+child.prostate, 0, 3) || 0; + } + child.balls = Math.max(+child.balls, 0) || 0; + if (child.scrotum !== 0) { + child.scrotum = Math.max(+child.scrotum, 0) || child.balls; + } +}; + +window.childImplantsDatatypeCleanup = function childImplantsDatatypeCleanup(child) { + child.ageImplant = Math.clamp(+child.ageImplant, 0, 1) || 0; + child.faceImplant = Math.clamp(+child.faceImplant, 0, 100) || 0; + child.lipsImplant = Math.clamp(+child.lipsImplant, 0, 100) || 0; + child.voiceImplant = Math.clamp(+child.voiceImplant, -1, 1) || 0; + child.boobsImplant = Math.max(+child.boobsImplant, 0) || 0; + child.boobsImplantType = Math.clamp(+child.boobsImplantType, 0, 1) || 0; + child.breastMesh = Math.clamp(+child.breastMesh, 0, 1) || 0; + child.buttImplant = Math.clamp(+child.buttImplant, 0, 3) || 0; + child.buttImplantType = Math.clamp(+child.buttImplantType, 0, 1) || 0; + child.earImplant = Math.clamp(+child.earImplant, 0, 1) || 0; +}; + +window.childPiercingsDatatypeCleanup = function childPiercingsDatatypeCleanup(child) { + child.earPiercing = Math.clamp(+child.earPiercing, 0, 2) || 0; + child.nosePiercing = Math.clamp(+child.nosePiercing, 0, 2) || 0; + child.eyebrowPiercing = Math.clamp(+child.eyebrowPiercing, 0, 2) || 0; + child.lipsPiercing = Math.clamp(+child.lipsPiercing, 0, 2) || 0; + child.tonguePiercing = Math.clamp(+child.tonguePiercing, 0, 2) || 0; + child.nipplesPiercing = Math.clamp(+child.nipplesPiercing, 0, 2) || 0; + child.areolaePiercing = Math.clamp(+child.areolaePiercing, 0, 2) || 0; + child.corsetPiercing = Math.clamp(+child.corsetPiercing, 0, 1) || 0; + child.navelPiercing = Math.clamp(+child.navelPiercing, 0, 2) || 0; + child.clitPiercing = Math.clamp(+child.clitPiercing, 0, 3) || 0; + child.vaginaPiercing = Math.clamp(+child.vaginaPiercing, 0, 2) || 0; + child.dickPiercing = Math.clamp(+child.dickPiercing, 0, 2) || 0; + child.anusPiercing = Math.clamp(+child.anusPiercing, 0, 2) || 0; +}; + +window.childTattooDatatypeCleanup = function childTattooDatatypeCleanup(child) { + if (typeof child.shouldersTat !== "string") { + child.shouldersTat = 0; + } + if (typeof child.lipsTat !== "string") { + child.lipsTat = 0; + } + if (typeof child.boobsTat !== "string") { + child.boobsTat = 0; + } + if (typeof child.armsTat !== "string") { + child.armsTat = 0; + } + if (typeof child.backTat !== "string") { + child.backTat = 0; + } + if (typeof child.stampTat !== "string") { + child.stampTat = 0; + } + if (typeof child.buttTat !== "string") { + child.buttTat = 0; + } + if (typeof child.vaginaTat !== "string") { + child.vaginaTat = 0; + } + if (typeof child.dickTat !== "string") { + child.dickTat = 0; + } + if (typeof child.anusTat !== "string") { + child.anusTat = 0; + } + if (typeof child.legsTat !== "string") { + child.legsTat = 0; + } + if (typeof child.bellyTat !== "string") { + child.bellyTat = 0; + } + if (typeof child.customTat !== "string") { + child.customTat = ""; + } +}; + +window.childCosmeticsDatatypeCleanup = function childCosmeticsDatatypeCleanup(child) { + child.makeup = Math.clamp(+child.makeup, 0, 8) || 0; + child.nails = Math.clamp(+child.nails, 0, 9) || 0; + child.scars = Math.clamp(+child.scars, 0, 6) || 0; + child.choosesOwnClothes = Math.clamp(+child.choosesOwnClothes, 0, 1) || 0; + if (typeof child.clothes !== "string") { + child.clothes = "no clothing"; + } + if (typeof child.collar !== "string") { + child.collar = "none"; + } + if (typeof child.shoes !== "string") { + child.shoes = "none"; + } + if (typeof child.eyewear !== "string") { + child.eyewear = "none"; + } + child.brand = Math.clamp(+child.brand, 0, 1) || 0; + if (typeof child.brandLocation !== "string") { + child.brandLocation = 0; + } + if (typeof child.markings !== "string") { + child.markings = "none"; + } + if (typeof child.bellyAccessory !== "string") { + child.bellyAccessory = "none"; + } + if (typeof child.vaginalAccessory !== "string") { + child.vaginalAccessory = "none"; + } + if (typeof child.dickAccessory !== "string") { + child.dickAccessory = "none"; + } + if (typeof child.legAccessory !== "string") { + child.legAccessory = "none"; + } + if (typeof child.buttplug !== "string") { + child.buttplug = "none"; + } + if (typeof child.buttplugAttachment !== "string") { + child.buttplugAttachment = "none"; + } + if (typeof child.headAccessory !== "string") { + child.headAccessory = "none"; + } + if (typeof child.rearAccessory !== "string") { + child.rearAccessory = "none"; + } + if (typeof child.backAccessory !== "string") { + child.backAccessory = "none"; + } +}; + +window.childDietDatatypeCleanup = function childDietDatatypeCleanup(child) { + if (typeof child.diet !== "string") { + child.diet = "healthy"; + } + child.dietCum = Math.clamp(+child.dietCum, 0, 2) || 0; + child.dietMilk = Math.clamp(+child.dietMilk, 0, 2) || 0; + child.onDiet = Math.clamp(+child.onDiet, 0, 1) || 0; + child.hormones = Math.clamp(+child.hormones, -2, 2) || 0; + child.hormoneBalance = Math.clamp(+child.hormoneBalance, -400, 400) || 0; + if (typeof child.drugs !== "string") { + child.drugs = "no drugs"; + } + child.aphrodisiacs = Math.clamp(+child.aphrodisiacs, 0, 2) || 0; + child.curatives = Math.clamp(+child.curatives, 0, 2) || 0; +}; + +window.childPornDatatypeCleanup = function childPornDatatypeCleanup(child) { + child.pornFeed = Math.clamp(+child.pornFeed, 0, 1) || 0; + child.pornFame = Math.max(+child.pornFame, 0) || 0; + child.pornFameSpending = Math.max(+child.pornFameSpending, 0) || 0; + child.pornPrestige = Math.clamp(+child.pornPrestige, 0, 3) || 0; + if (typeof child.pornPrestigeDesc !== "string") { + child.pornPrestigeDesc = 0; + } + if (typeof child.pornFameType !== "string") { + child.pornFameType = "none"; + } + if (typeof child.pornFocus !== "string") { + child.pornFocus = "none"; + } + child.pornTypeGeneral = Math.max(+child.pornTypeGeneral, 0) || 0; + child.pornTypeFuckdoll = Math.max(+child.pornTypeFuckdoll, 0) || 0; + child.pornTypeRape = Math.max(+child.pornTypeRape, 0) || 0; + child.pornTypePreggo = Math.max(+child.pornTypePreggo, 0) || 0; + child.pornTypeBBW = Math.max(+child.pornTypeBBW, 0) || 0; + child.pornTypeGainer = Math.max(+child.pornTypeGainer, 0) || 0; + child.pornTypeStud = Math.max(+child.pornTypeStud, 0) || 0; + child.pornTypeLoli = Math.max(+child.pornTypeLoli, 0) || 0; + child.pornTypeDeepThroat = Math.max(+child.pornTypeDeepThroat, 0) || 0; + child.pornTypeStruggleFuck = Math.max(+child.pornTypeStruggleFuck, 0) || 0; + child.pornTypePainal = Math.max(+child.pornTypePainal, 0) || 0; + child.pornTypeTease = Math.max(+child.pornTypeTease, 0) || 0; + child.pornTypeRomantic = Math.max(+child.pornTypeRomantic, 0) || 0; + child.pornTypePervert = Math.max(+child.pornTypePervert, 0) || 0; + child.pornTypeCaring = Math.max(+child.pornTypeCaring, 0) || 0; + child.pornTypeUnflinching = Math.max(+child.pornTypeUnflinching, 0) || 0; + child.pornTypeSizeQueen = Math.max(+child.pornTypeSizeQueen, 0) || 0; + child.pornTypeNeglectful = Math.max(+child.pornTypeNeglectful, 0) || 0; + child.pornTypeCumAddict = Math.max(+child.pornTypeCumAddict, 0) || 0; + child.pornTypeAnalAddict = Math.max(+child.pornTypeAnalAddict, 0) || 0; + child.pornTypeAttentionWhore = Math.max(+child.pornTypeAttentionWhore, 0) || 0; + child.pornTypeBreastGrowth = Math.max(+child.pornTypeBreastGrowth, 0) || 0; + child.pornTypeAbusive = Math.max(+child.pornTypeAbusive, 0) || 0; + child.pornTypeMalicious = Math.max(+child.pornTypeMalicious, 0) || 0; + child.pornTypeSelfHating = Math.max(+child.pornTypeSelfHating, 0) || 0; + child.pornTypeBreeder = Math.max(+child.pornTypeBreeder, 0) || 0; + child.pornTypeSub = Math.max(+child.pornTypeSub, 0) || 0; + child.pornTypeCumSlut = Math.max(+child.pornTypeCumSlut, 0) || 0; + child.pornTypeAnal = Math.max(+child.pornTypeAnal, 0) || 0; + child.pornTypeHumiliation = Math.max(+child.pornTypeHumiliation, 0) || 0; + child.pornTypeBoobs = Math.max(+child.pornTypeBoobs, 0) || 0; + child.pornTypeDom = Math.max(+child.pornTypeDom, 0) || 0; + child.pornTypeSadist = Math.max(+child.pornTypeSadist, 0) || 0; + child.pornTypeMasochist = Math.max(+child.pornTypeMasochist, 0) || 0; + child.pornTypePregnancy = Math.max(+child.pornTypePregnancy, 0) || 0; +}; + +window.childRelationDatatypeCleanup = function childRelationDatatypeCleanup(child) { + child.mother = +child.mother || 0; + child.father = +child.father || 0; + if (State.variables.familyTesting == 0) { + child.relationTarget = Math.max(+child.relationTarget, 0) || 0; + } + child.canRecruit = Math.clamp(+child.canRecruit, 0, 1) || 0; + child.relationship = Math.clamp(+child.relationship, -3, 5) || 0; + child.relationshipTarget = Math.max(+child.relationshipTarget, 0) || 0; + child.rivalryTarget = Math.max(+child.rivalryTarget, 0) || 0; + child.rivalry = Math.clamp(+child.rivalry, 0, 3) || 0; +}; + +window.childSkillsDatatypeCleanup = function childSkillsDatatypeCleanup(child) { + child.oralSkill = Math.clamp(+child.oralSkill, 0, 100) || 0; + child.vaginalSkill = Math.clamp(+child.vaginalSkill, 0, 100) || 0; + child.analSkill = Math.clamp(+child.analSkill, 0, 100) || 0; + child.whoreSkill = Math.clamp(+child.whoreSkill, 0, 100) || 0; + child.entertainSkill = Math.clamp(+child.entertainSkill, 0, 100) || 0; + child.combatSkill = Math.clamp(+child.combatSkill, 0, 1) || 0; + child.skillHG = Math.clamp(+child.skillHG, 0, 200) || 0; + child.skillRC = Math.clamp(+child.skillRC, 0, 200) || 0; + child.skillBG = Math.clamp(+child.skillBG, 0, 200) || 0; + child.skillMD = Math.clamp(+child.skillMD, 0, 200) || 0; + child.skillDJ = Math.clamp(+child.skillDJ, 0, 200) || 0; + child.skillNU = Math.clamp(+child.skillNU, 0, 200) || 0; + child.skillTE = Math.clamp(+child.skillTE, 0, 200) || 0; + child.skillAT = Math.clamp(+child.skillAT, 0, 200) || 0; + child.skillMT = Math.clamp(+child.skillMT, 0, 200) || 0; + child.skillST = Math.clamp(+child.skillST, 0, 200) || 0; + child.skillMM = Math.clamp(+child.skillMM, 0, 200) || 0; + child.skillFA = Math.clamp(+child.skillFA, 0, 200) || 0; + child.skillWA = Math.clamp(+child.skillWA, 0, 200) || 0; + child.skillS = Math.clamp(+child.skillS, 0, 200) || 0; + child.skillE = Math.clamp(+child.skillE, 0, 200) || 0; + child.skillW = Math.clamp(+child.skillW, 0, 200) || 0; +}; + +window.childStatCountDatatypeCleanup = function childStatCountDatatypeCleanup(child) { + child.oralCount = Math.max(+child.oralCount, 0) || 0; + child.vaginalCount = Math.max(+child.vaginalCount, 0) || 0; + child.analCount = Math.max(+child.analCount, 0) || 0; + child.publicCount = Math.max(+child.publicCount, 0) || 0; + child.mammaryCount = Math.max(+child.mammaryCount, 0) || 0; + child.penetrativeCount = Math.max(+child.penetrativeCount, 0) || 0; + child.pitKills = Math.max(+child.pitKills, 0) || 0; + child.milk = Math.max(+child.milk, 0) || 0; + child.cum = Math.max(+child.cum, 0) || 0; + child.births = Math.max(+child.births, 0) || 0; + child.birthsTotal = Math.max(+child.birthsTotal, 0) || child.births; + child.laborCount = Math.max(+child.laborCount, 0) || child.birthsTotal; + child.childsFathered = Math.max(+child.childsFathered, 0) || 0; + child.PCChildrenFathered = Math.max(+child.PCChildrenFathered, 0) || 0; + child.childsKnockedUp = Math.max(+child.childsKnockedUp, 0) || 0; + child.PCKnockedUp = Math.max(+child.PCKnockedUp, 0) || 0; + child.bodySwap = Math.max(+child.bodySwap, 0) || 0; +}; + +window.childPreferencesDatatypeCleanup = function childPreferencesDatatypeCleanup(child) { + child.energy = Math.clamp(+child.energy, 0, 100) || 0; + child.need = Math.max(+child.need, 0) || 0; + child.attrXY = Math.clamp(+child.attrXY, 0, 100) || 0; + child.attrXX = Math.clamp(+child.attrXX, 0, 100) || 0; + child.attrKnown = Math.clamp(+child.attrKnown, 0, 1) || 0; + child.fetishStrength = Math.clamp(+child.fetishStrength, 0, 100) || 0; + child.fetishKnown = Math.clamp(+child.fetishKnown, 0, 1) || 0; +}; + +window.childRulesDatatypeCleanup = function childRulesDatatypeCleanup(child) { + child.breedingMark = Math.clamp(+child.breedingMark, 0, 1) || 0; + child.rudeTitle = Math.clamp(+child.rudeTitle, 0, 1) || 0; +}; + +window.childCustomStatsDatatypeCleanup = function childCustomStatsDatatypeCleanup(child) { + if (typeof child.customLabel !== "string") { + child.customLabel = ""; + } + if (typeof child.customDesc !== "string") { + child.customDesc = ""; + } + if (typeof child.customTitle !== "string") { + child.customTitle = ""; + } + if (typeof child.customTitleLisp !== "string") { + child.customTitleLisp = ""; + } + if (typeof child.customImage !== "string") { + child.customImage = 0; + } +}; + +window.childMiscellaneousDatatypeCleanup = function childMiscellaneousDatatypeCleanup(child) { + child.weekAcquired = Math.max(+child.weekAcquired, 0) || 0; + child.prestige = Math.clamp(+child.prestige, 0, 3) || 0; + child.devotion = Math.clamp(+child.devotion, -100, 100) || 0; + child.oldDevotion = Math.clamp(+child.oldDevotion, -100, 100) || 0; + child.trust = Math.clamp(+child.trust, -100, 100) || 0; + child.oldTrust = Math.clamp(+child.oldTrust, -100, 100) || 0; + child.chem = Math.max(+child.chem, 0) || 0; + child.addict = Math.max(+child.addict, 0) || 0; + child.intelligence = Math.clamp(+child.intelligence, -100, 100) || 0; + child.intelligenceImplant = Math.clamp(+child.intelligenceImplant, 0, 30) || 0; + child.premature = Math.clamp(+child.premature, 0, 1) || 0; + child.training = Math.clamp(+child.training, 0, 150) || 0; + child.tired = Math.clamp(+child.tired, 0, 1) || 0; + child.hears = Math.clamp(+child.hears, -2, 0) || 0; + if (typeof child.earwear !== "string") { + child.earwear = "none"; + } + if (child.voice !== 0) { + child.voice = Math.clamp(+child.voice, 0, 3) || 1; + } + child.electrolarynx = Math.clamp(+child.electrolarynx, 0, 1) || 0; + child.accent = Math.clamp(+child.accent, 0, 3) || 0; +}; + +window.PCDatatypeCleanup = function PCDatatypeCleanup() { + const V = State.variables; + const PC = V.PC; + + if (PC.title !== 0) { + PC.title = Math.clamp(+PC.title, 0, 1) || 1; + } + if (PC.dick !== 0) { + PC.dick = Math.clamp(+PC.dick, 0, 1) || 1; + } + PC.vagina = Math.clamp(+PC.vagina, 0, 1) || 0; + PC.belly = Math.max(+PC.belly, 0) || 0; + PC.pregMood = Math.clamp(+PC.pregMood, 0, 2) || 0; + PC.labor = Math.clamp(+PC.labor, 0, 1) || 0; + PC.births = Math.max(+PC.births, 0) || 0; + PC.boobs = Math.clamp(+PC.boobs, 0, 1) || 0; + PC.boobsBonus = Math.clamp(+PC.boobsBonus, -3, 3) || 0; + PC.boobsImplant = Math.clamp(+PC.boobsImplant, 0, 1) || 0; + PC.butt = Math.clamp(+PC.butt, 0, 3) || 0; + PC.buttImplant = Math.clamp(+PC.buttImplant, 0, 1) || 0; + PC.balls = Math.clamp(+PC.balls, 0, 3) || 0; + PC.ballsImplant = Math.clamp(+PC.ballsImplant, 0, 4) || 0; + PC.degeneracy = Math.max(+PC.degeneracy, 0) || 0; + PC.birthWeek = Math.clamp(+PC.birthWeek, 0, 51) || 0; + if (PC.sexualEnergy !== 0 ) { + PC.sexualEnergy = +PC.sexualEnergy || 4; + } + PC.refreshmentType = Math.clamp(+PC.refreshmentType, 0, 6) || 0; + PC.trading = Math.clamp(+PC.trading, -100, 100) || 0; + PC.warfare = Math.clamp(+PC.warfare, -100, 100) || 0; + PC.slaving = Math.clamp(+PC.slaving, -100, 100) || 0; + PC.engineering = Math.clamp(+PC.engineering, -100, 100) || 0; + PC.medicine = Math.clamp(+PC.medicine, -100, 100) || 0; + PC.hacking = Math.clamp(+PC.hacking, -100, 100) || 0; + PC.cumTap = Math.max(+PC.cumTap, 0) || 0; + PC.mother = +PC.mother || 0; + PC.father = +PC.father || 0; + PC.birthElite = Math.max(+PC.birthElite, 0) || 0; + PC.birthMaster = Math.max(+PC.birthMaster, 0) || 0; + PC.birthDegenerate = Math.max(+PC.birthDegenerate, 0) || 0; + PC.birthClient = Math.max(+PC.birthClient, 0) || 0; + PC.birthOther = Math.max(+PC.birthOther, 0) || 0; + PC.birthArcOwner = Math.max(+PC.birthArcOwner, 0) || 0; + PC.birthCitizen = Math.max(+PC.birthCitizen, 0) || 0; + PC.birthSelf = Math.max(+PC.birthSelf, 0) || 0; + PC.birthLab = Math.max(+PC.birthLab, 0) || 0; + PC.slavesFathered = Math.max(+PC.slavesFathered, 0) || 0; + PC.slavesKnockedUp = Math.max(+PC.slavesKnockedUp, 0) || 0; + PC.intelligence = 100; + PC.face = 100; + PC.actualAge = Math.clamp(+PC.actualAge, 14, 80) || 35; + PC.physicalAge = Math.clamp(+PC.physicalAge, 14, 80) || PC.actualAge; + PC.visualAge = Math.clamp(+PC.visualAge, 14, 80) || PC.actualAge; + PC.ovaryAge = Math.clamp(+PC.ovaryAge, 14, 80) || PC.physicalAge; + if (V.playerAging !== 0) { + V.playerAging = Math.clamp(+V.playerAging, 0, 2) || 2; + } + PC.newVag = Math.clamp(+PC.newVag, 0, 1) || 0; + PC.fertDrugs = Math.clamp(+PC.fertDrugs, 0, 1) || 0; + PC.forcedFertDrugs = Math.max(+PC.forcedFertDrugs, 0) || 0; + PC.staminaPills = Math.clamp(+PC.staminaPills, 0, 1) || 0; + PC.storedCum = Math.max(+PC.storedCum, 0) || 0; + PC.mpreg = 0; /* So knockMeUp() may be used with the PC */ + PC.lactation = Math.max(+PC.lactation, 0) || 0; + PC.lactationDuration = Math.max(+PC.lactationDuration, 0) || 0; + generatePlayerPronouns(PC); + + if (PC.age !== undefined) { + delete PC.age; + } + if (PC.indenture !== undefined) { + delete PC.indenture; + } + if (PC.indentureRestrictions !== undefined) { + delete PC.indentureRestrictions; + } + + /* None of these are in use */ + PC.bellyPreg = PC.belly; + PC.ageImplant = 0; + PC.voiceImplant = 0; + PC.accent = 0; + PC.shoulders = 0; + PC.shouldersImplant = 0; +}; + +window.EconomyDatatypeCleanup = function EconomyDatatypeCleanup() { + const V = State.variables; + + V.ACitizens = Math.max(+V.ACitizens, 0) || 0; + V.ASlaves = Math.max(+V.ASlaves, 0) || 0; + V.shelterAbuse = Math.max(+V.shelterAbuse, 0) || 0; + + V.arcologies[0].prosperity = Math.clamp(+V.arcologies[0].prosperity, 1, 300) || 1; + V.AProsperityCap = Math.max(+V.AProsperityCap, 0) || 0; + V.arcologies[0].ownership = Math.clamp(+V.arcologies[0].ownership, 0, 100) || 0; + V.arcologies[0].minority = Math.clamp(+V.arcologies[0].minority, 0, 100) || 0; + + V.food = Math.max(+V.food, 0) || 0; + + V.economy = Math.max(+V.economy, 20) || 100; + V.difficultySwitch = Math.clamp(+V.difficultySwitch, 0, 1) || 0; + V.localEcon = Math.max(+V.localEcon, 20) || V.economy; + V.econRate = Math.clamp(+V.econRate, 1, 4) || 2; + V.slaveCostFactor = Math.max(+V.slaveCostFactor, 0) || 1; + if (V.menialSupplyFactor !== 0) { + V.menialSupplyFactor = Math.clamp(+V.menialSupplyFactor, -50000, 50000) || (1 - V.slaveCostFactor) * 400 * 1000 * 0.5; /* (1 - slaveCostFactor) * price elasticity * base price * 0.5 */ + } + if (V.menialDemandFactor !== 0) { + V.menialDemandFactor = Math.clamp(+V.menialDemandFactor, -50000, 50000) || -V.menialSupplyFactor; + } + V.slaveCostRandom = Math.clamp(+V.slaveCostRandom, -3, 3) || 0; + V.demandTimer = Math.max(+V.demandTimer, 0) || 0; + V.elapsedDemandTimer = Math.max(+V.elapsedDemandTimer, 0) || 0; + V.supplyTimer = Math.max(+V.supplyTimer, 0) || 0; + V.elapsedSupplyTimer = Math.max(+V.elapsedSupplyTimer, 0) || 0; + V.deltaSupply = Math.clamp(+V.deltaSupply, -3000, 3000) || 0; + V.deltaDemand = Math.clamp(+V.deltaDemand, -3000, 3000) || 0; + V.econWeatherDamage = Math.max(+V.econWeatherDamage, 0) || 0; + V.disasterResponse = Math.clamp(+V.disasterResponse, 0, 2) || 0; + V.antiWeatherFreeze = Math.clamp(+V.antiWeatherFreeze, 0, 2) || 0; + V.GDP = Math.max(+V.GDP, 1) || 278.6; + V.NPCSlaves = Math.max(+V.NPCSlaves, 0) || 0; + V.visitors = Math.max(+V.visitors, 0) || 0; + + V.LSCBase = Math.max(+V.LSCBase, 0) || 800; /* nowhere modified */ + V.rentEffectL = Math.max(+V.rentEffectL, 0) || 1; + if (V.lowerClass !== 0) { + V.lowerClass = Math.max(+V.lowerClass, 0) || 3120; + } + if (V.LCRent !== 0) { + V.LCRent = Math.max(+V.LCRent, 0) || 20; + } + + V.MCBase = Math.max(+V.MCBase, 0) || 200; /* nowhere modified */ + V.rentEffectM = Math.max(+V.rentEffectM, 0) || 1; + if (V.middleClass !== 0) { + V.middleClass = Math.max(+V.middleClass, 0) || 890; + } + if (V.MCRent !== 0) { + V.MCRent = Math.max(+V.MCRent, 0) || 50; + } + + V.UCBase = Math.max(+V.UCBase, 0) || 40; /* nowhere modified */ + V.rentEffectU = Math.max(+V.rentEffectU, 0) || 1; + if (V.upperClass !== 0) { + V.upperClass = Math.max(+V.upperClass, 0) || 200; + } + if (V.UCRent !== 0) { + V.UCRent = Math.max(+V.UCRent, 0) || 175; + } + + V.TCBase = Math.max(+V.TCBase, 0) || 20; /* nowhere modified */ + V.rentEffectT = Math.max(+V.rentEffectT, 0) || 1; + if (V.topClass !== 0) { + V.topClass = Math.max(+V.topClass, 0) || 38; + } + if (V.TCRent !== 0) { + V.TCRent = Math.max(+V.TCRent, 0) || 650; + } +}; + +window.ArcologyDatatypeCleanup = function ArcologyDatatypeCleanup() { + const V = State.variables; + + V.arcologies[0].prosperity = Math.clamp(+V.arcologies[0].prosperity, 1, 300) || 1; + V.AProsperityCap = Math.max(+V.AProsperityCap, 0) || 0; + V.arcologies[0].ownership = Math.clamp(+V.arcologies[0].ownership, 0, 100) || 0; + V.arcologies[0].minority = Math.clamp(+V.arcologies[0].minority, 0, 100) || 0; + + V.menials = Math.max(+V.menials, 0) || 0; + V.fuckdolls = Math.max(+V.fuckdolls, 0) || 0; + V.menialBioreactors = Math.max(+V.menialBioreactors, 0) || 0; + + V.ACitizens = Math.max(+V.ACitizens, 0) || 0; + V.ASlaves = Math.max(+V.ASlaves, 0) || V.NPCSlaves + V.menials + V.fuckdolls + V.menialBioreactors; + V.shelterAbuse = Math.max(+V.shelterAbuse, 0) || 0; + + V.assistant = Math.clamp(+V.assistant, 0, 1) || 0; + if (typeof V.assistantPronouns != "object") { + V.assistantPronouns = {}; + } + if (typeof V.marketAssistantPronouns != "object") { + V.marketAssistantPronouns = {}; + } + generateAssistantPronouns(); + + V.foodCost = Math.trunc(2500/V.economy); + V.drugsCost = Math.trunc(10000/V.economy); + V.rulesCost = Math.trunc(10000/V.economy); + V.modCost = Math.trunc(5000/V.economy); + V.surgeryCost = Math.trunc(30000/V.economy); + V.facilityCost = +V.facilityCost || 100; + V.policyCost = +V.policyCost || 5000; + + V.TSS.studentsBought = Math.max(+V.TSS.studentsBought, 0) || 0; + V.TSS.schoolProsperity = Math.clamp(+V.TSS.schoolProsperity, -10, 10) || 0; + V.GRI.studentsBought = Math.max(+V.GRI.studentsBought, 0) || 0; + V.GRI.schoolProsperity = Math.clamp(+V.GRI.schoolProsperity, -10, 10) || 0; + V.SCP.studentsBought = Math.max(+V.SCP.studentsBought, 0) || 0; + V.SCP.schoolProsperity = Math.clamp(+V.SCP.schoolProsperity, -10, 10) || 0; + V.LDE.studentsBought = Math.max(+V.LDE.studentsBought, 0) || 0; + V.LDE.schoolProsperity = Math.clamp(+V.LDE.schoolProsperity, -10, 10) || 0; + V.TGA.studentsBought = Math.max(+V.TGA.studentsBought, 0) || 0; + V.TGA.schoolProsperity = Math.clamp(+V.TGA.schoolProsperity, -10, 10) || 0; + V.HA.studentsBought = Math.max(+V.HA.studentsBought, 0) || 0; + V.HA.schoolProsperity = Math.clamp(+V.HA.schoolProsperity, -10, 10) || 0; + V.TCR.studentsBought = Math.max(+V.TCR.studentsBought, 0) || 0; + V.TCR.schoolProsperity = Math.clamp(+V.TCR.schoolProsperity, -10, 10) || 0; + V.TFS.studentsBought = Math.max(+V.TFS.studentsBought, 0) || 0; + V.TFS.schoolProsperity = Math.clamp(+V.TFS.schoolProsperity, -10, 10) || 0; +}; + +window.FacilityDatatypeCleanup = (function() { + "use strict"; + let V; + return FacilityDatatypeCleanup; + + function FacilityDatatypeCleanup() { + V = State.variables; + /* common variables */ + FacilityIDArrayCleanup(); + FacilityDecorationCleanup(); + FacilityNameCleanup(); + /* facility specific variables */ + BrothelDatatypeCleanup(); + DairyDatatypeCleanup(); + ClubDatatypeCleanup(); + ServantsQuartersDatatypeCleanup(); + SchoolroomDatatypeCleanup(); + } + + function FacilityIDArrayCleanup() { + function helperFunction(facilityIDArray) { + if (!Array.isArray(facilityIDArray)) + facilityIDArray = []; + else if (typeof facilityIDArray[0] === "object") + facilityIDArray = facilityIDArray.map(function(a) { return a.ID; }); + } + helperFunction(V.BrothiIDs); + helperFunction(V.DairyiIDs); + helperFunction(V.ClubiIDs); + helperFunction(V.ServQiIDs); + helperFunction(V.SchlRiIDs); + helperFunction(V.SpaiIDs); + helperFunction(V.CliniciIDs); + helperFunction(V.ArcadeiIDs); + helperFunction(V.CellBiIDs); + helperFunction(V.MastSiIDs); + helperFunction(V.HGSuiteiIDs); + helperFunction(V.NurseryiIDs); + helperFunction(V.FarmyardiIDs); + } + + function FacilityDecorationCleanup() { + 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"; + } + + function FacilityNameCleanup() { + V.arcologies[0].name = V.arcologies[0].name || "Arcology X-4"; + V.brothelName = V.brothelName || "the Brothel"; + V.brothelNameCaps = V.brothelNameCaps || "The Brothel"; + V.dairyName = V.dairyName || "the Dairy"; + V.dairyNameCaps = V.dairyNameCaps || "The Dairy"; + V.clubName = V.clubName || "the Club"; + V.clubNameCaps = V.clubNameCaps || "The Club"; + V.servantsQuartersName = V.servantsQuartersName || "the Servants' Quarters"; + V.servantsQuartersNameCaps = V.servantsQuartersNameCaps || "The Servants' Quarters"; + V.schoolroomName = V.schoolroomName || "the Schoolroom"; + V.schoolroomNameCaps = V.schoolroomNameCaps || "The Schoolroom"; + V.spaName = V.spaName || "the Spa"; + V.spaNameCaps = V.spaNameCaps || "The Spa"; + V.nurseryName = V.nurseryName || "the Nursery"; + V.nurseryNameCaps = V.nurseryNameCaps || "The Nursery"; + V.clinicName = V.clinicName || "the Clinic"; + V.clinicNameCaps = V.clinicNameCaps || "The Clinic"; + V.arcadeName = V.arcadeName || "the Arcade"; + V.arcadeNameCaps = V.arcadeNameCaps || "The Arcade"; + V.cellblockName = V.cellblockName || "the Cellblock"; + V.cellblockNameCaps = V.cellblockNameCaps || "The Cellblock"; + V.masterSuiteName = V.masterSuiteName || "the Master Suite"; + V.masterSuiteNameCaps = V.masterSuiteNameCaps || "The Master Suite"; + V.HGSuiteName = V.HGSuiteName || "the Head Girl Suite"; + V.HGSuiteNameCaps = V.HGSuiteNameCaps || "The Head Girl Suite"; + V.pitName = V.pitName || "the Pit"; + V.pitNameCaps = V.pitNameCaps || "The Pit"; + V.incubatorName = V.incubatorName || "the Incubator"; + V.incubatorNameCaps = V.incubatorNameCaps || "The Incubator"; + V.farmyardName = V.farmyardName || "the Farmyard"; + V.farmyardNameCaps = V.farmyardNameCaps || "The Farmyard"; + } + + function BrothelDatatypeCleanup() { + /* ads */ + V.brothelAdsSpending = Math.clamp(+V.brothelAdsSpending, 0, 5000) || 0; + V.brothelAdsStacked = Math.clamp(+V.brothelAdsStacked, -1, 1) || 0; + V.brothelAdsImplanted = Math.clamp(+V.brothelAdsImplanted, -1, 1) || 0; + V.brothelAdsModded = Math.clamp(+V.brothelAdsModded, -1, 1) || 0; + V.brothelAdsPreg = Math.clamp(+V.brothelAdsPreg, -1, 1) || 0; + V.brothelAdsOld = Math.clamp(+V.brothelAdsOld, -3, 1) || 0; + V.brothelAdsXX = Math.clamp(+V.brothelAdsXX, -1, 1) || 0; + /* upgrades */ + V.brothel = Math.max(+V.brothel, 0) || 0; + V.brothelUpgradeDrugs = Math.clamp(+V.brothelUpgradeDrugs, 0, 2) || 0; + /* madam */ + V.Madam = V.slaves.find(function(s) { return s.assignment === "be the Madam"; }) || 0; + V.MadamIgnoresFlaws = Math.clamp(+V.MadamIgnoresFlaws, 0, 1) || 0; + } + + function DairyDatatypeCleanup() { + /* upgrades */ + V.dairy = Math.max(+V.dairy, 0) || 0; + V.dairyFeedersUpgrade = Math.clamp(+V.dairyFeedersUpgrade, 0, 1) || 0; + V.dairyFeedersSetting = Math.clamp(+V.dairyFeedersSetting, 0, 2) || 0; + V.dairyPregUpgrade = Math.clamp(+V.dairyPregUpgrade, 0, 1) || 0; + V.dairyPregSetting = Math.clamp(+V.dairyPregSetting, 0, 3) || 0; + V.dairyStimulatorsUpgrade = Math.clamp(+V.dairyStimulatorsUpgrade, 0, 1) || 0; + V.dairyStimulatorsSetting = Math.clamp(+V.dairyStimulatorsSetting, 0, 2) || 0; + V.dairyRestraintsUpgrade = Math.clamp(+V.dairyRestraintsUpgrade, 0, 1) || 0; + V.dairyRestraintsSetting = Math.clamp(+V.dairyRestraintsSetting, 0, 2) || 0; + V.dairySlimMaintainUpgrade = Math.clamp(+V.dairySlimMaintainUpgrade, 0, 1) || 0; + V.dairySlimMaintain = Math.clamp(+V.dairySlimMaintain, 0, 1) || 0; + V.dairyPrepUpgrade = Math.clamp(+V.dairyPrepUpgrade, 0, 1) || 0; + V.dairyHyperPregRemodel = Math.clamp(+V.dairyHyperPregRemodel, 0, 1) || 0; + V.dairyImplantsSetting = Math.clamp(+V.dairyImplantsSetting, 0, 3) || 0; + V.dairyWeightSetting = Math.clamp(+V.dairyWeightSetting, 0, 4) || 0; + /* bioreactors */ + V.bioreactorsAnnounced = Math.clamp(+V.bioreactorsAnnounced, 0, 1) || 0; + V.createBioreactors = Math.clamp(+V.createBioreactors, 0, 1) || 0; + V.dairyUpgradeMenials = Math.clamp(+V.dairyUpgradeMenials, 0, 1) || 0; + V.bioreactorsHerm = Math.max(+V.bioreactorsHerm, 0) || 0; + V.bioreactorsXX = Math.max(+V.bioreactorsXX, 0) || 0; + V.bioreactorsXY = Math.max(+V.bioreactorsXY, 0) || 0; + V.bioreactorsBarren = Math.max(+V.bioreactorsBarren, 0) || 0; + /* milkmaid */ + V.Milkmaid = V.slaves.find(function(s) { return s.assignment === "be the Milkmaid"; }) || 0; + V.milkmaidImpregnates = Math.clamp(+V.milkmaidImpregnates, 0, 1) || 0; + } + + function ClubDatatypeCleanup() { + /* ads */ + V.clubAdsSpending = Math.clamp(+V.clubAdsSpending, 0, 5000) || 0; + V.clubAdsStacked = Math.clamp(+V.clubAdsStacked, -1, 1) || 0; + V.clubAdsImplanted = Math.clamp(+V.clubAdsImplanted, -1, 1) || 0; + V.clubAdsModded = Math.clamp(+V.clubAdsModded, -1, 1) || 0; + V.clubAdsPreg = Math.clamp(+V.clubAdsPreg, -1, 1) || 0; + V.clubAdsOld = Math.clamp(+V.clubAdsOld, -3, 1) || 0; + V.clubAdsXX = Math.clamp(+V.clubAdsXX, -1, 1) || 0; + /* upgrades */ + V.club = Math.max(+V.club, 0) || 0; + V.clubUpgradePDAs = Math.clamp(+V.clubUpgradePDAs, 0, 1) || 0; + /* madam */ + V.DJ = V.slaves.find(function(s) { return s.assignment === "be the DJ"; }) || 0; + V.DJignoresFlaws = Math.clamp(+V.DJignoresFlaws, 0, 1) || 0; + } + + function ServantsQuartersDatatypeCleanup() { + /* upgrades */ + V.servantsQuarters = Math.max(+V.servantsQuarters, 0) || 0; + V.servantsQuartersUpgradeMonitoring = Math.clamp(+V.servantsQuartersUpgradeMonitoring, 0, 1) || 0; + /* stewardess */ + V.Stewardess = V.slaves.find(function(s) { return s.assignment === "be the Stewardess"; }) || 0; + V.stewardessImpregnates = Math.clamp(+V.stewardessImpregnates, 0, 1) || 0; + } + + function SchoolroomDatatypeCleanup() { + /* upgrades */ + V.schoolroom = Math.max(+V.schoolroom, 0) || 0; + V.schoolroomUpgradeSkills = Math.clamp(+V.schoolroomUpgradeSkills, 0, 1) || 0; + V.schoolroomUpgradeLanguage = Math.clamp(+V.schoolroomUpgradeLanguage, 0, 1) || 0; + V.schoolroomUpgradeRemedial = Math.clamp(+V.schoolroomUpgradeRemedial, 0, 1) || 0; + /* stewardess */ + V.Schoolteacher = V.slaves.find(function(s) { return s.assignment === "be the Schoolteacher"; }) || 0; + } +})(); diff --git a/src/js/economy.js b/src/js/economyJS.js similarity index 86% rename from src/js/economy.js rename to src/js/economyJS.js index 95842384a555c762ac218e4613244ae90fac39ba..4c2fe7f505f5590a69bbc160df17b12d23f0cc9b 100644 --- a/src/js/economy.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 @@ -966,8 +1110,14 @@ The third category, the "slave slot" is completely optional. Sometimes you just window.cashX = function(cost, what, who) { const V = State.variables; - if(isNaN(cost)){ - V.lastWeeksErrors += `NaN: "${cost}" at ${what}, + if (typeof cost !== "number") { + V.lastWeeksErrors += `"${cost}" at ${what} is not of type "number", + `; + } else if (Number.isNaN(cost)) { + V.lastWeeksErrors += `"${cost}" at ${what} is NaN, + `; + } else if (cost === -Infinity || cost === Infinity) { + V.lastWeeksErrors += `"${cost}" at ${what} is infinity, `; } else { diff --git a/src/js/eventSelection.js b/src/js/eventSelectionJS.js similarity index 100% rename from src/js/eventSelection.js rename to src/js/eventSelectionJS.js diff --git a/src/js/extendedFamilyMode.js b/src/js/extendedFamilyModeJS.js similarity index 100% rename from src/js/extendedFamilyMode.js rename to src/js/extendedFamilyModeJS.js diff --git a/src/js/familyTree.js b/src/js/familyTreeJS.js similarity index 100% rename from src/js/familyTree.js rename to src/js/familyTreeJS.js diff --git a/src/js/food.js b/src/js/food.js new file mode 100644 index 0000000000000000000000000000000000000000..dfb8e3d043c51a6836a2bc2a7deafeefd0cdd888 --- /dev/null +++ b/src/js/food.js @@ -0,0 +1,317 @@ +window.foodAmount = function (slave) { + const V = State.variables + var food = 400; //kg / food produced by base slave / week + if (!slave) { + return null; + } else { + if (V.Farmer !== 0) { //if a farmer is assigned + food *= 1.1; //TODO: expand this to account for farmer XP and skill + if (V.Farmer.skillFA >= V.masteredXP) { //if farmer is master + food *= 1.1; + } + } + if (slave.devotion > 50) { + food *= 1.1; + } else if (slave.devotion < -50) { + food *= 0.8; + } + if (slave.health > 50) { //slave is extremely healthy or more + food *= 1.1; + } else if (slave.health < -50) { //slave is unhealthy or less + food *= 0.8; + } + if (slave.muscles > 30) { //slave is muscular or more + food *= 1.1; + } else if (slave.muscles <= -6) { //slave is weak or less + food *= 0.8; + } + if (slave.weight > 95) { //slave is overweight or more + food *= 0.9; + } else if (slave.weight > 130) { //slave is fat or more + food *= 0.8; + } else if (slave.weight > 160) { //slave is obese or more + food *= 0.7; + } else if (slave.weight > 190) { //slave is very obese or more + food *= 0.6; + } + if (slave.eyes === -1) { //slave is nearsighted + food *= 0.8; + } else if (slave.eyes < -1) { //slave is blind + food *= 0.6; + } + if (slave.hears == -1) { //slave is hard of hearing + food *= 0.8; + } else if (slave.hears < -1) { //slave is deaf + food *= 0.6; + } + if (slave.tired == 1) { //slave is tired + food *= 0.8; + } + food = Math.trunc(food); + food = Math.clamp(food, 1, 1000000000000000000); + return food; + } +}; + +window.farmShowsIncome = function (slave) { + //TODO: incorporate farmyardRestraints + const V = State.variables; + let arcology = V.arcologies[0] + let cash = 999 //TODO: this is just a placeholder + if (!slave) { + return null; + } else { + if (V.Farmer !== 0) { //farmer is assigned + cash *= 1.1 + if (V.Farmer.skillFA >= V.masteredXP) { //farmer is master + cash *= 1.1 + } + } + /* OPEN FS EFFECTS */ + if (arcology.FSSupremacist != "unset") { + if (slave.race === arcology.FSSupremacistRace) { //slave is of supreme race + cash *= 0.9 //TODO: should supreme race slaves receive a penalty? + V.rep -= 10 //TODO: should this cause a rep loss + } + } + if (arcology.FSSubjugationist != "unset") { + if (slave.race == arcology.FSSubjugationistRace) { //slave is of subjugated race + cash *= 1.1 + V.rep += 10 //TODO: should this cause a rep gain? + } else { + cash *= 0.9 //TODO: should unsubjugated race slaves receive a penalty? + } + } + if (arcology.FSRepopulationFocus != "unset") { + if (slave.pregWeek > 16) { //slave is visibly pregnant + if (slave.eggType != "human") { //with a non-human + cash *= 1.1 + } + cash *= 1.2 + } else { //slave is not visibly pregnant + cash *= 0.8 //TODO: should non-pregnant slaves receieve a penalty? + } + } + if (arcology.FSRestart != "unset") { + if (slave.pregWeek > 16) { //slave is visibly pregnant + if (slave.eggType != "human") { //with a non-human + cash *= 0.9 + rep -= 15 + } + cash *= 0.6 + rep -= 10 + } + } + if (arcology.FSGenderRadicalist != "unset") { + if (slave.genes == "XY") { //TODO: does this make sense? + cash *= 1.1 + } else { + cash *= 0.8 + } + } + if (arcology.FSGenderFundamentalist != "unset") { + if (slave.genes == "XX") { + cash *= 1.1 //TODO: does this make sense? + } else { + cash *= 0.8 + } + } + if (arcology.FSPaternalist != "unset") { + if (V.seeBestiality === 1) { + if (V.farmyardBreeding === 1) { //slaves are being bred + cash *= 0.8 + } else { //slaves are putting on shows + cash *= 0.9 + } + } + } + if (arcology.FSDegradationist != "unset") { + if (V.seeBestiality === 1) { + if (V.farmyardBreeding === 1) { //slaves are being bred + cash *= 1.2 + } else { //slaves are putting on shows + cash *= 1.1 + } + } + } + if (arcology.FSBodyPurist != "unset") { + if (slave.boobsImplant > 0) { //slave has breast implants + cash *= 0.9 + } + if (slave.buttImplant > 0) { //slave has butt implants + cash *= 0.9 + } + if (slave.faceImplant > 0) { //slave has had facial surgery + cash *= 0.9 + } + if (slave.lipsImplant > 0) { //slave has lip implants + cash *= 0.9 + } + } + if (arcology.FSTransformationFetishist != "unset") { + if (slave.boobsImplant > 0) { //slave has breast implants + cash *= 1.1 + } + if (slave.buttImplant > 0) { //slave has butt implants + cash *= 1.1 + } + if (slave.faceImplant > 0) { //slave has had facial surgery + cash *= 1.1 + } + if (slave.lipsImplant > 0) { //slave has lip implants + cash *= 1.1 + } + } + if (arcology.FSYouthPreferentialist != "unset") { + if (slave.visualAge > 25) { //slave looks older than 25 + cash *= 0.8 //TODO: not sure what age this should be + } else { + cash *= 1.2 + } + } + if (arcology.FSMaturityPreferentialist != "unset") { + if (slave.visualAge > 25) { //slave looks older than 25 + cash *= 1.2 //TODO: not sure what age this should be + } else { + cash *= 0.8 + } + } + if (arcology.FSSlimnessEnthusiast != "unset") { + if (slave.weight > 10) { //slave is curvy or more + cash *= 0.9 //TODO: not sure what weight this should be + } //TODO: should implants affect income? + if (slave.boobs > 799) { //slave has larger than a D cup + cash *= 0.9 //TODO: should this be smaller? + } + if (slave.butt > 3) { //slave has bigger than a bubble butt + cash *= 0.9 + } + } + if (arcology.FSAssetExpanionist != "unset") { + if (slave.weight > 10) { //slave is curvy or more + cash *= 1.1 //TODO: not sure what weight this should be + } //TODO: should implants affect income? + if (slave.boobs > 799) { //slave has larger than a D cup + cash *= 1.1 //TODO: should this be smaller? + } + if (slave.butt > 3) { //slave has bigger than a bubble butt + cash *= 1.1 + } + } + if (arcology.FSPastoralist != "unset") { + if (slave.boobs > 799) { //slave has larger than a D cup + cash *= 1.2 + } + if (slave.lactation > 0) { //slave is lactating + cash *= 1.1 + } + } + if (arcology.FSPhysicalIdealist != "unset") { + if (slave.height > 169) { //slave is tall or taller + cash *= 1.1 + } else if (slave.height < 160) { //slave is short or shorter + cash *= 0.9 + } + } + if (arcology.FSHedonisticDecadence != "unset") { + if (slave.weight > 10) { //slave is curvy or fatter + cash *= 1.1 + } else if (slave.weight < -10) { //slave is thin or thinner + cash *= 0.9 + } + } + if (arcology.FSChattelReligionist != "unset") { //TODO: I don't know what to put for this one + if (slave.devotion < 21) { //if slave is careful or less + cash *= 0.9 + } + } + //TODO: should I add the ancient cultures FS? + /* CLOSE FS EFFECTS */ + if (setup.entertainmentCareers.includes(slave.career)) { + cash *= 1.1 + } else if (setup.farmerCareers.includes(slave.career)) { + cash *= 1.1 + } + if (slave.prestige === 1) { //slave is prestigious + cash *= 1.1 + } else if (slave.prestige === 2) { //slave is very prestigious + cash *= 1.2 + } else if (slave.prestige === 3) { //slave is extremely prestigious + cash *= 1.3 + } + if (slave.pornPrestige === 1) { //slave is prestigious from porn + cash *= 1.1 + } else if (slave.pornPrestige === 2) { //slave is very prestigious from porn + cash *= 1.2 + } else if (slave.pornPrestige === 3) { //slave is extremely prestigious from porn + cash *= 1.3 + } //TODO: add relationship checks + if (slave.health > 20) { //slave is very healthy or more + cash *= 1.1 + } else if (slave.health < -20) { //slave is less than unhealthy + cash *= 0.8 + } + if (slave.face > 10) { //slave is very pretty or more + cash *= 1.1 + } else if (slave.face < -10) { //slave is less than unattractive + cash *= 0.8 + } + if (slave.devotion > 50) { //slave is devoted or more + cash *= 1.1 + } else if (slave.devotion < -50) { //slave is reluctant or less + cash *= 0.8 + } + if (slave.trust > 50) { //slave is trusting or more + cash *= 1.1 + } else if (slave.trust < -50) { //slave is less than frightened + cash *= 0.8 //TODO: should trust be a factor? + } + if (slave.weight > 30) { //slave is curvy or more + cash *= 0.8 //TODO: tie in Hedonistic FS + } else if (slave.weight < -30) { //slave is very thin or less + cash *= 0.8 //TODO: put this on a scale + } + if (slave.muscles > 30) { //slave is muscular or more + cash *= 0.9 //TODO: tie in height eugenics policy + } else if (slave.muscles < -30) { //slave is very weak or less + cash *= 0.9 //TODO: should this be on a scale? + } + if (slave.eyes < 1) { //slaves eyesight is nearsighted or worse + cash *= 0.9 //TODO: should nearsighted and blind slaves receive a penalty? + } + if (slave.hears < 0) { //slave is hard of hearing or less + cash *= 0.9 //TODO: should hard of hearing slaves receive a penalty? + } + if (slave.boobs > 800) { //slave has a DD cup or bigger + cash *= 0.9 //TODO: would this make sense? + } + if (slave.butt > 4) { //slave has an enormous butt or bigger + cash *= 0.9 //TODO: would this make sense? + } + if (slave.preg < 0) { //slave is not fertile + cash *= 0.8 //TODO: not sure how to incorporate pregnancy + } //TODO: incorporate skills + if (slave.tired == 1) { //slave is tired + cash *= 0.9 + } + if (slave.chem > 10) { //slave has high genetic damage + cash *= 0.9 + } + if (slave.intelligence > 50) { //slave is very smart or better + cash *= 1.1 + } else if (slave.intelligence < -50) { //slave is very slow or less + cash *= 0.8 + } + if (slave.energy < 20) { //slave has poor sex drive or less + cash *= 0.9 + } + if (slave.fetish == "submissive") { + cash *= 1.1 + } else if (slave.fetish == "humiliation") { + cash *= 1.1 + } else if (slave.fetish == "masochist") { + cash *= 1.1 + } //TODO: tie in quirks and flaws + return cash + } +}; \ No newline at end of file diff --git a/src/js/foreachMacro.js b/src/js/foreachMacroJS.js similarity index 100% rename from src/js/foreachMacro.js rename to src/js/foreachMacroJS.js diff --git a/src/js/generateNewSlave.js b/src/js/generateNewSlaveJS.js similarity index 100% rename from src/js/generateNewSlave.js rename to src/js/generateNewSlaveJS.js diff --git a/src/js/hTagMacro.js b/src/js/hTagMacroJS.js similarity index 100% rename from src/js/hTagMacro.js rename to src/js/hTagMacroJS.js diff --git a/src/js/preg.js b/src/js/pregJS.js similarity index 100% rename from src/js/preg.js rename to src/js/pregJS.js diff --git a/src/js/quickList.js b/src/js/quickListJS.js similarity index 100% rename from src/js/quickList.js rename to src/js/quickListJS.js diff --git a/src/js/rbutton.js b/src/js/rbuttonJS.js similarity index 100% rename from src/js/rbutton.js rename to src/js/rbuttonJS.js diff --git a/src/js/removeActiveSlave.js b/src/js/removeActiveSlave.js index b28dc6a6760416185ae9760f12ebba966443083d..88ff9b9d5dc08e74b1e8547cc33596ce89b9753f 100644 --- a/src/js/removeActiveSlave.js +++ b/src/js/removeActiveSlave.js @@ -243,3 +243,120 @@ window.removeActiveSlave = function removeActiveSlave() { V.activeSlave = 0; } }; + +window.removeNonNGPSlave = function removeNonNGPSlave(removedSlave) { + "use strict"; + + const V = State.variables; + const ID = removedSlave.ID; + let LENGTH = V.slaves.length; + const INDEX = V.slaveIndices[ID]; + let missing = false; + + // Only bother if PC is being kept + if (V.freshPC !== 1) { + WombChangeID(V.PC, ID, V.missingParentID); + if (V.PC.pregSource === V.missingParentID) { + missing = true; + } + if (V.PC.mother === ID) { + V.PC.mother = V.missingParentID; + missing = true; + } + if (V.PC.father === ID) { + V.PC.father = V.missingParentID; + missing = true; + } + if (V.PC.sisters > 0) { + if (areSisters(V.PC, removedSlave) > 0) { + V.PC.sisters--; + } + } + if (V.PC.daughters > 0) { + if (removedSlave.father === -1 || removedSlave.mother === -1) { + V.PC.daughters--; + } + } + } + + if (INDEX >= 0 && INDEX < LENGTH) { + V.slaves.forEach(slave => { + if (slave.assignment == "be imported") { + WombChangeID(slave, ID, V.missingParentID); /* This check is complex, should be done in JS now, all needed will be done here. */ + WombChangeGeneID(slave, ID, V.missingParentID); + if (slave.pregSource === V.missingParentID) { + missing = true; + } + if (removedSlave.daughters > 0) { + if (slave.mother === ID) { + slave.mother = V.missingParentID; + } + if (slave.father === ID) { + slave.father = V.missingParentID; + } + missing = true; + } + if (slave.ID === removedSlave.relationTarget) { + slave.relation = 0; + slave.relationTarget = 0; + } + if (slave.milkSource !== 0) { + if (slave.milkSource === ID) { + slave.milkSource = 0; + slave.inflation = 0; + slave.inflationType = "none"; + slave.inflationMethod = 0; + } + } + if (slave.cumSource !== 0) { + if (slave.cumSource === ID) { + slave.cumSource = 0; + slave.inflation = 0; + slave.inflationType = "none"; + slave.inflationMethod = 0; + } + } + if (slave.ID === removedSlave.relationshipTarget) { + slave.relationship = 0; + slave.relationshipTarget = 0; + } + if (slave.ID === removedSlave.rivalryTarget) { + slave.rivalry = 0; + slave.rivalryTarget = 0; + } + } + }); + + + const _geneIndex = V.genePool.findIndex(function(s) { return s.ID === ID; }); + if (_geneIndex !== -1) { + let keep = false; + if (isImpregnatedBy(V.PC, removedSlave)) { /* did we impregnate the PC */ + keep = true; + } + if (!keep) { /* avoid going through this loop if possible */ + keep = V.slaves.some(slave => { + /* have we impregnated a slave that is not ourself? */ + return (slave.ID !== ID && isImpregnatedBy(slave, removedSlave)) + }); + } + if (!keep) { + V.genePool.deleteAt(_geneIndex); + } + } + if (missing) { + V.missingTable[V.missingParentID] = { + slaveName: removedSlave.slaveName, + slaveSurname: removedSlave.slaveSurname, + fullName: SlaveFullName(removedSlave), + dick : removedSlave.dick, + vagina : removedSlave.vagina, + ID : V.missingParentID + }; + V.missingParentID--; + } + + removeSlave(INDEX); + + } +}; \ No newline at end of file diff --git a/src/js/sexActs.js b/src/js/sexActsJS.js similarity index 100% rename from src/js/sexActs.js rename to src/js/sexActsJS.js diff --git a/src/js/slaveCost.js b/src/js/slaveCostJS.js similarity index 100% rename from src/js/slaveCost.js rename to src/js/slaveCostJS.js diff --git a/src/js/slaveGeneration.js b/src/js/slaveGenerationJS.js similarity index 100% rename from src/js/slaveGeneration.js rename to src/js/slaveGenerationJS.js diff --git a/src/js/spanMacro.js b/src/js/spanMacroJS.js similarity index 100% rename from src/js/spanMacro.js rename to src/js/spanMacroJS.js diff --git a/src/js/story.js b/src/js/storyJS.js similarity index 76% rename from src/js/story.js rename to src/js/storyJS.js index 2680a4e5a98391c16a0f453423b3b274db5546c9..947d512b49209f100330432edca264c6d9fd208a 100644 --- a/src/js/story.js +++ b/src/js/storyJS.js @@ -35,7 +35,7 @@ if (typeof interpolate == "undefined") { } }; window.interpolate = interpolate; -} +}; window.isFullyPotent = function(slave) { if (!slave) { @@ -47,126 +47,10 @@ window.isFullyPotent = function(slave) { } }; -/* mousetrap v1.5.3 craig.is/killing/mice */ -(function(C,r,g){function t(a,b,h){a.addEventListener?a.addEventListener(b,h,!1):a.attachEvent("on"+b,h)}function x(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return l[a.which]?l[a.which]:p[a.which]?p[a.which]:String.fromCharCode(a.which).toLowerCase()}function D(a){var b=[];a.shiftKey&&b.push("shift");a.altKey&&b.push("alt");a.ctrlKey&&b.push("ctrl");a.metaKey&&b.push("meta");return b}function u(a){return"shift"==a||"ctrl"==a||"alt"==a|| -"meta"==a}function y(a,b){var h,c,e,g=[];h=a;"+"===h?h=["+"]:(h=h.replace(/\+{2}/g,"+plus"),h=h.split("+"));for(e=0;e<h.length;++e)c=h[e],z[c]&&(c=z[c]),b&&"keypress"!=b&&A[c]&&(c=A[c],g.push("shift")),u(c)&&g.push(c);h=c;e=b;if(!e){if(!k){k={};for(var m in l)95<m&&112>m||l.hasOwnProperty(m)&&(k[l[m]]=m)}e=k[h]?"keydown":"keypress"}"keypress"==e&&g.length&&(e="keydown");return{key:c,modifiers:g,action:e}}function B(a,b){return null===a||a===r?!1:a===b?!0:B(a.parentNode,b)}function c(a){function b(a){a= -a||{};var b=!1,n;for(n in q)a[n]?b=!0:q[n]=0;b||(v=!1)}function h(a,b,n,f,c,h){var g,e,l=[],m=n.type;if(!d._callbacks[a])return[];"keyup"==m&&u(a)&&(b=[a]);for(g=0;g<d._callbacks[a].length;++g)if(e=d._callbacks[a][g],(f||!e.seq||q[e.seq]==e.level)&&m==e.action){var k;(k="keypress"==m&&!n.metaKey&&!n.ctrlKey)||(k=e.modifiers,k=b.sort().join(",")===k.sort().join(","));k&&(k=f&&e.seq==f&&e.level==h,(!f&&e.combo==c||k)&&d._callbacks[a].splice(g,1),l.push(e))}return l}function g(a,b,n,f){d.stopCallback(b, -b.target||b.srcElement,n,f)||!1!==a(b,n)||(b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0)}function e(a){"number"!==typeof a.which&&(a.which=a.keyCode);var b=x(a);b&&("keyup"==a.type&&w===b?w=!1:d.handleKey(b,D(a),a))}function l(a,c,n,f){function e(c){return function(){v=c;++q[a];clearTimeout(k);k=setTimeout(b,1E3)}}function h(c){g(n,c,a);"keyup"!==f&&(w=x(c));setTimeout(b,10)}for(var d=q[a]=0;d<c.length;++d){var p=d+1===c.length?h:e(f|| -y(c[d+1]).action);m(c[d],p,f,a,d)}}function m(a,b,c,f,e){d._directMap[a+":"+c]=b;a=a.replace(/\s+/g," ");var g=a.split(" ");1<g.length?l(a,g,b,c):(c=y(a,c),d._callbacks[c.key]=d._callbacks[c.key]||[],h(c.key,c.modifiers,{type:c.action},f,a,e),d._callbacks[c.key][f?"unshift":"push"]({callback:b,modifiers:c.modifiers,action:c.action,seq:f,level:e,combo:a}))}var d=this;a=a||r;if(!(d instanceof c))return new c(a);d.target=a;d._callbacks={};d._directMap={};var q={},k,w=!1,p=!1,v=!1;d._handleKey=function(a, -c,e){var f=h(a,c,e),d;c={};var k=0,l=!1;for(d=0;d<f.length;++d)f[d].seq&&(k=Math.max(k,f[d].level));for(d=0;d<f.length;++d)f[d].seq?f[d].level==k&&(l=!0,c[f[d].seq]=1,g(f[d].callback,e,f[d].combo,f[d].seq)):l||g(f[d].callback,e,f[d].combo);f="keypress"==e.type&&p;e.type!=v||u(a)||f||b(c);p=l&&"keydown"==e.type};d._bindMultiple=function(a,b,c){for(var d=0;d<a.length;++d)m(a[d],b,c)};t(a,"keypress",e);t(a,"keydown",e);t(a,"keyup",e)}var l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt", -20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},p={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},A={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},z={option:"alt",command:"meta","return":"enter", -escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k;for(g=1;20>g;++g)l[111+g]="f"+g;for(g=0;9>=g;++g)l[g+96]=g;c.prototype.bind=function(a,b,c){a=a instanceof Array?a:[a];this._bindMultiple.call(this,a,b,c);return this};c.prototype.unbind=function(a,b){return this.bind.call(this,a,function(){},b)};c.prototype.trigger=function(a,b){if(this._directMap[a+":"+b])this._directMap[a+":"+b]({},a);return this};c.prototype.reset=function(){this._callbacks={};this._directMap= -{};return this};c.prototype.stopCallback=function(a,b){return-1<(" "+b.className+" ").indexOf(" mousetrap ")||B(b,this.target)?!1:"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable};c.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};c.init=function(){var a=c(r),b;for(b in a)"_"!==b.charAt(0)&&(c[b]=function(b){return function(){return a[b].apply(a,arguments)}}(b))};c.init();C.Mousetrap=c;"undefined"!==typeof module&&module.exports&&(module.exports= -c);"function"===typeof define&&define.amd&&define(function(){return c})})(window,document); - -Mousetrap.bind("enter", function () { - $("#story-caption #endWeekButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("space", function () { - $("#story-caption #nextButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("c", function () { - $("#story-caption #manageArcology a.macro-link").trigger("click"); -}); -Mousetrap.bind("p", function () { - $("#story-caption #managePenthouse a.macro-link").trigger("click"); -}); -Mousetrap.bind("n", function () { - $("#story-caption #manageEconomy a.macro-link").trigger("click"); -}); -Mousetrap.bind("left", function () { - $("#prevSlave a.macro-link").trigger("click"); - $("#prevRule a").trigger("click"); - $("#prevChild a.macro-link").trigger("click"); -}); -Mousetrap.bind("q", function () { - $("#prevSlave a.macro-link").trigger("click"); - $("#prevRule a").trigger("click"); - $("#prevChild a.macro-link").trigger("click"); -}); -Mousetrap.bind("shift+left", function () { - $("#firstRule a").trigger("click"); -}); -Mousetrap.bind("shift+q", function () { - $("#firstRule a").trigger("click"); -}); -Mousetrap.bind("right", function () { - $("#nextSlave a.macro-link").trigger("click"); - $("#nextRule a").trigger("click"); - $("#nextChild a.macro-link").trigger("click"); -}); -Mousetrap.bind("shift+right", function () { - $("#lastRule a").trigger("click"); -}); -Mousetrap.bind("e", function () { - $("#nextSlave a.macro-link").trigger("click"); - $("#nextRule a").trigger("click"); - $("#nextChild a.macro-link").trigger("click"); -}); -Mousetrap.bind("shift+e", function () { - $("#lastRule a").trigger("click"); -}); -Mousetrap.bind("f", function () { - $("#walkpast a.macro-link").trigger("click"); -}); -Mousetrap.bind("h", function () { - $("#manageHG a.macro-link").trigger("click"); -}); -Mousetrap.bind("s", function () { - $("#buySlaves a.macro-link").trigger("click"); -}); -Mousetrap.bind("a", function () { - $("#managePA a.macro-link").trigger("click"); -}); -Mousetrap.bind("b", function () { - $("#manageBG a.macro-link").trigger("click"); -}); -Mousetrap.bind("u", function () { - $("#manageRecruiter a.macro-link").trigger("click"); -}); -Mousetrap.bind("o", function () { - $("#story-caption #optionsButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("y", function () { - $("#story-caption #policyButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("f", function () { - $("#story-caption #FSButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("t", function () { - $("#story-caption #PAOButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("v", function () { - $("#story-caption #URButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("r", function () { - $("#RAButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("x", function () { - $("#story-caption #managePerson a.macro-link").trigger("click"); -}); -Mousetrap.bind("z", function () { - $("#story-caption #SFMButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("d", function () { - $("#story-caption #edictButton a.macro-link").trigger("click"); -}); -Mousetrap.bind("shift+s", function () { - $("#story-caption #securityHQ a.macro-link").trigger("click"); -}); -Mousetrap.bind("shift+a", function () { - $("#story-caption #secBarracks a.macro-link").trigger("click"); -}); -Mousetrap.bind("shift+h", function () { - $("#story-caption #propHub a.macro-link").trigger("click"); -}); -Mousetrap.bind("shift+r", function () { - $("#story-caption #riotCenter a.macro-link").trigger("click"); -}); /** * BoobGenerator namespace. */ -if (typeof BoobGenerator == "undefined") { +if (typeof BoobGenerator === "undefined") { var BoobGenerator = { rollBreast: function (modif) { var volume = [0, 300, 500, 650, 800, 1000, 1200, 1400, 1600, 1800, 2050, 2300, 2600, 2900, 3250, 3600, 3950, 4300, 4700, 5100, 5500, 5900]; @@ -187,12 +71,12 @@ if (typeof BoobGenerator == "undefined") { }; // Raise namespace scope to Global. window.BoobGenerator = BoobGenerator; -}; +} /** * Slave checker namespace. */ -if (typeof SlaveStatsChecker == "undefined") { +if (typeof SlaveStatsChecker === "undefined") { var SlaveStatsChecker = { checkForLisp: function (slave) { /* Begin mod section: toggle whether slaves lisp. */ @@ -205,7 +89,7 @@ if (typeof SlaveStatsChecker == "undefined") { }; // Raise namespace scope to Global. window.SlaveStatsChecker = SlaveStatsChecker; -}; +} window.removeFromArray = function(arr, val) { for (var i = 0; i < arr.length; i++) { @@ -227,7 +111,7 @@ window.filterInPlace = function(arr, callback, thisArg) { return arr; }; -if (typeof FertilityAge == "undefined") { +if (typeof FertilityAge === "undefined") { var FertilityAge = { setAge: function (age) { age = Number(age); @@ -240,7 +124,7 @@ if (typeof FertilityAge == "undefined") { }; // Raise namespace scope to Global. window.FertilityAge = FertilityAge; -}; +} window.canGetPregnant = function(slave) { if (!slave) { @@ -792,7 +676,7 @@ window.ngUpdateGenePool = function(genePool) { result.ID += 1200000; return result; }); -} +}; window.ngUpdateMissingTable = function(missingTable) { var newTable = {}; @@ -842,7 +726,7 @@ window.nippleColor = function(slave) { return 'brown'; } } -} +}; window.overpowerCheck = function(slave, PC) { var strength; @@ -862,7 +746,7 @@ window.overpowerCheck = function(slave, PC) { strength -= (PC.belly/1000); return strength; -} +}; window.impregnatedBy = function(slave) { /* returns array of IDs of all characters who impregnated slave */ var IDArray = []; @@ -873,21 +757,21 @@ window.impregnatedBy = function(slave) { /* returns array of IDs of all characte IDArray.push(slave.womb[i].fatherID); } return IDArray; -} +}; window.isImpregnatedBy = function(mother, father) { /* returns true if mother was impregnated by father */ return impregnatedBy(mother).includes(father.ID); -} +}; window.jsAlert = function(obj) { alert(obj); -} +}; window.jsConsoleInfo = function(obj) { console.info(obj); -} +}; window.SoftenBehavioralFlaw = function SoftenBehavioralFlaw(slave) { switch (slave.behavioralFlaw) { @@ -982,6 +866,7 @@ window.removeFS = function(FS) { arcology.FSPhysicalIdealistLaw = 0; arcology.FSPhysicalIdealistSMR = 0; arcology.FSPhysicalIdealistStrongFat = 0; + break; case "FSHedonisticDecadence": arcology.FSHedonisticDecadenceLaw = 0; arcology.FSHedonisticDecadenceLaw2 = 0; @@ -997,6 +882,7 @@ window.removeFS = function(FS) { arcology[FSLaw] = 0; arcology[FSSMR] = 0; V.universalRulesChildrenBecomeBreeders = 0; + break; case "FSNull": break; default: /* all others have one law and one SMR */ diff --git a/src/js/textbox.js b/src/js/textboxJS.js similarity index 100% rename from src/js/textbox.js rename to src/js/textboxJS.js diff --git a/src/js/util.js b/src/js/utilJS.js similarity index 99% rename from src/js/util.js rename to src/js/utilJS.js index db4777860e71b7717a860efbe31c64ba23d13634..0b4178234b1e75d381ac2d858f0e58e63644942e 100644 --- a/src/js/util.js +++ b/src/js/utilJS.js @@ -489,6 +489,20 @@ window.cashFormat = function(s) { return "¤" + commaNum(Math.round(s * 100) / 100); }; +window.massFormat = function(s) { + if(!s) { s = 0; } + if(s >= 1000) { + s = commaNum(Math.trunc(s/1000)) + if(s != 1) { + return s+" tons"; + } else { + return s+" ton"; + } + } else { + return commaNum(s)+" kg"; + } +}; + window.isFloat = function(n){ return n === +n && n !== (n|0); }; diff --git a/src/js/vignettes.js b/src/js/vignettes.js index c9a0edd22f13cf4773e054ab1e854fe356f59aeb..1d1f480ac4571d00a22d9536ca9e826abeb499ea 100644 --- a/src/js/vignettes.js +++ b/src/js/vignettes.js @@ -3335,6 +3335,57 @@ window.GetVignette = function GetVignette(slave) { type: "rep", effect: 0, }); + } else if (slave.assignment === "work as a farmhand" || slave.assignment === window.Job.FARMYARD || slave.assignment === window.Job.FARMER) { + //TODO: add more vignettes + if ((V.farmyardShows == 1) && (V.seeBestiality == 1)) { + vignettes.push({ + text: `a citizen didn't realize how disgusting he found bestiality until he attended one of ${V.farmyardName}'s shows,`, + type: "rep", + effect: -1, + }); + vignettes.push({ + text: `a citizen attended one of ${V.farmyardName}'s shows and discovered he had a bestiality fetish,`, + type: "rep", + effect: 1, + }); + vignettes.push({ + text: `${he} dreamt that you decided to have ${him} do nothing but animals for the rest of ${his} life,`, + type: "devotion", + effect: -1 + }); + vignettes.push({ + text: `${he} dreamt that you wouldn't come to ${his} aid when one of ${his} bestial partners was getting overeager,`, + type: "trust", + effect: -1 + }); + if (V.canines.length > 0) { + vignettes.push({ + text: `an over-excited dog left scratch marks on ${his} legs,`, + type: "health", + effect: -1 + }); + } + if (V.hooved.length > 0) { + vignettes.push({ + text: `${he} was injured by a particularly well-endowed horse,`, + type: "health", + effect: -1 + }); + } + if (V.felines.length > 0) { + vignettes.push({ + text: `${he} managed to take two tigers at once, aweing the crowd,`, + type: "cash", + effect: 1 + }); + } + } else { + vignettes.push({ + text: `TODO: add a vignette here`, + type: "cash", + effect: 1, + }); + } } else if (slave.assignment === "rest" || slave.assignment === "rest in the spa") { switch (slave.behavioralFlaw) { case "anorexic": diff --git a/src/js/walkPast.js b/src/js/walkPastJS.js similarity index 100% rename from src/js/walkPast.js rename to src/js/walkPastJS.js diff --git a/src/js/womb.js b/src/js/wombJS.js similarity index 98% rename from src/js/womb.js rename to src/js/wombJS.js index 754a330c09054e476639c3dadd79023558278d12..977164cb95672fe0d040ba132e22457a92b41f5b 100644 --- a/src/js/womb.js +++ b/src/js/wombJS.js @@ -25,6 +25,7 @@ $slave.bellyPreg = WombGetWolume($slave) - return double, with current womb volu //Init womb system. window.WombInit = function(actor) { + let i; if (!Array.isArray(actor.womb)) { //alert("creating new womb"); //debugging @@ -51,7 +52,7 @@ window.WombInit = function(actor) { //backward compatibility setup. Fully accurate for normal pregnancy only. if (actor.womb.length > 0 && actor.womb[0].genetics == undefined && actor.eggType == "human") { - var i=0 + i=0; actor.womb.forEach(function(ft){ ft.genetics = generateGenetics(actor, actor.pregSource, i); i++; @@ -60,7 +61,7 @@ window.WombInit = function(actor) { WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg); } else if (actor.womb.length == 0 && actor.pregType > 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) { //sorry but for already present broodmothers it's impossible to calculate fully, approximation used. - var i, pw = actor.preg, bCount, bLeft; + var pw = actor.preg, bCount, bLeft; if (pw > actor.pregData.normalBirth) pw = actor.pregData.normalBirth; //to avoid disaster. bCount = Math.floor(actor.pregType/pw); bLeft = actor.pregType - (bCount*pw); @@ -186,7 +187,6 @@ window.WombImpregnateClone = function(actor, fCount, mother, motherOriginal, age }; window.WombProgress = function(actor, ageToAdd) { - var i, ft; ageToAdd = Math.ceil(ageToAdd*10)/10; try { actor.womb.forEach(ft => ft.age += ageToAdd); @@ -220,7 +220,6 @@ window.WombFlush = function(actor) { }; window.WombBirthReady = function(actor, readyAge) { - var i, ft; var readyCnt = 0; try { readyCnt += actor.womb.filter(ft => ft.age >= readyAge).length; @@ -279,12 +278,11 @@ window.WombGetVolume = function(actor) { //most legacy code from pregJS.tw with } function getVolByLen(actor){ + let phi = 1.618; + let targetData, targetLen; + let wombSize = 0; - try { - - var phi = 1.618; - var targetData, targetLen; - var wombSize = 0; + try { actor.womb.forEach(ft => { @@ -502,7 +500,6 @@ window.WombSort = function(actor) { //now function work with chance. Literary we give it "one from X" as chance. window.fetalSplit = function(actor, chance) { - var i, ft; var nft; actor.womb.forEach(function(s){ @@ -536,7 +533,7 @@ window.WombFetusCount = function(actor) { WombInit(actor); return actor.womb.length; -} +}; //give reference to fetus object, but not remove fetus, use for manipulation in the womb. window.WombGetFetus = function(actor, fetusNum) @@ -546,7 +543,7 @@ window.WombGetFetus = function(actor, fetusNum) return actor.womb[fetusNum]; else return null; -} +}; //give reference to fetus object, and remove it form the womb. window.WombRemoveFetus = function(actor, fetusNum) @@ -561,7 +558,7 @@ window.WombRemoveFetus = function(actor, fetusNum) } else return null; -} +}; /*to add fetus object in the womb. Be warned - you can add one single fetus to many wombs, or even add it many times to one womb. It's will not show error, but behavior become strange, as fetus object will be the same - it's reference, not full copies. If this not desired - use clone() on fetus before adding.*/ window.WombAddFetus = function(actor, fetus) @@ -569,21 +566,21 @@ window.WombAddFetus = function(actor, fetus) WombInit(actor); actor.womb.push(fetus); WombSort(actor); -} +}; // change property for all fetuses. Like fetus.age = X. window.WombChangeFetus = function(actor, propName, newValue) { WombInit(actor); actor.womb.forEach(ft => ft[propName] = newValue); -} +}; // change genetic property of all fetuses. Like fetus.genetic.intelligence = X window.WombChangeGene = function(actor, geneName, newValue) { WombInit(actor); actor.womb.forEach(ft => ft.genetics[geneName] = newValue); -} +}; // replaces untraceable fatherIDs with missingParentID. Required for concurrent pregnancy to differentiate between siblings. window.MissingParentIDCorrection = function(actor) { @@ -592,7 +589,7 @@ window.MissingParentIDCorrection = function(actor) { .filter(ft => (ft.genetics.father === 0 || (ft.genetics.father < -1 && ft.genetics.father >= -20 && ft.genetics.father !== -3))) .forEach(ft => ft.genetics.father = State.variables.missingParentID); State.variables.missingParentID--; -} +}; window.WombCleanYYFetuses = function(actor) { @@ -616,7 +613,7 @@ window.WombCleanYYFetuses = function(actor) actor.pregType = actor.womb.length; return reserved; -} +}; window.FetusGlobalReserveCount = function(reserveType) { @@ -639,7 +636,7 @@ window.FetusGlobalReserveCount = function(reserveType) }); return cnt; -} +}; window.WombSetGenericReserve = function(actor, type, count) { @@ -654,14 +651,14 @@ window.WombSetGenericReserve = function(actor, type, count) } }); -} +}; window.WombAddToGenericReserve = function(actor, type, count) { WombSetGenericReserve(actor, type, (WombReserveCount(actor, type)+count)); -} +}; window.WombChangeReserveType = function(actor, oldType, newType) { @@ -677,7 +674,7 @@ window.WombChangeReserveType = function(actor, oldType, newType) }); return count; -} +}; window.WombCleanGenericReserve = function(actor, type, count) { @@ -691,7 +688,7 @@ window.WombCleanGenericReserve = function(actor, type, count) } }); -} +}; window.WombReserveCount = function(actor, type) { @@ -708,7 +705,7 @@ window.WombReserveCount = function(actor, type) }); return cnt; -} +}; window.WombGetReservedFetuses = function(actor, type) { @@ -724,7 +721,7 @@ window.WombGetReservedFetuses = function(actor, type) }); return reserved; -} +}; window.WombRemoveReservedFetuses = function(actor, type) { @@ -747,7 +744,7 @@ window.WombRemoveReservedFetuses = function(actor, type) } return reserved; -} +}; window.WombCleanAllReserve = function(actor) { @@ -756,7 +753,7 @@ window.WombCleanAllReserve = function(actor) ft.reserve = ""; }); -} +}; window.BCReserveInit = function() { @@ -768,22 +765,21 @@ window.BCReserveInit = function() { if (typeof ft.reserve != 'string') ft.reserve = ""; - if (typeof ft.motherID != 'number') //setting missing biological mother ID for fetus. - ft.motherID = slave.ID; - - if (ft.ID == undefined) - ft.ID = generateNewID(); - + if (typeof ft.motherID != 'number') //setting missing biological mother ID for fetus. + ft.motherID = slave.ID; + if (ft.ID == undefined) + ft.ID = generateNewID(); }); }); SV.PC.womb.forEach(function(ft){ if (typeof ft.reserve != 'string') ft.reserve = ""; + if (typeof ft.motherID !== 'number') ft.motherID = SV.PC.ID; - }); + }); -} +}; /* alt window.fetalSplit = function(actor, chance) diff --git a/src/pregmod/beastFucked.tw b/src/pregmod/beastFucked.tw index f4269e11cc9bedfa07cca2a030d0028482318fa8..747875438796f5459f509077203ea334664a7ef4 100644 --- a/src/pregmod/beastFucked.tw +++ b/src/pregmod/beastFucked.tw @@ -3,8 +3,6 @@ <<run clearSummaryCache($activeSlave)>> <<setLocalPronouns $activeSlave>> -/*TODO: Add slave-animal impregnation*/ - <<if $animalType == "canine">> <<set _animal = $activeCanine>> <<elseif $animalType == "hooved">> @@ -22,94 +20,86 @@ <<if canDoVaginal($activeSlave)>> <<set _sexAct = "vaginal">> <<set _orifice = "pussy">> + <<set _hole = 0>> <<elseif canDoAnal($activeSlave)>> <<set _sexAct = "anal">> <<set _orifice = "asshole">> + <<set _hole = 1>> <<else>> <<set _sexAct = "oral">> <<set _orifice = "mouth">> <</if>> -<<set _fetishDescriptor = 0>> /*initializes variable*/ +<<set _used = {mouth: 0, vagina: 0, anus: 0}>> +<<if $activeSlave.vagina > 0>> + <<set _used.vagina = 1>> +<</if>> +<<if $activeSlave.anus > 0>> + <<set _used.anus = 1>> +<</if>> +<<if $activeSlave.oralCount > 0>> + <<set _used.mouth = 1>> +<</if>> + <<if $activeSlave.fetish == "masochist">> - <<set _fetishDescriptor = "painful", _activeQuirk = 1>> + <<set _fetishDesc = "committing such a painful act", _activeQuirk = 1>> <<elseif $activeSlave.fetish == "humiliation">> - <<set _fetishDescriptor = "humiliating", _activeQuirk = 1>> + <<set _fetishDesc = "committing such a humiliating act", _activeQuirk = 1>> <<elseif $activeSlave.sexualQuirk == "perverted">> - <<set _fetishDescriptor = "perverted", _activeQuirk = 1>> + <<set _fetishDesc = "committing such a perverted act", _activeQuirk = 1>> <<elseif $activeSlave.behavioralQuirk == "sinful">> - <<set _fetishDescriptor = "sinful", _activeQuirk = 1>> + <<set _fetishDesc = "committing such a sinful act", _activeQuirk = 1>> <<elseif $activeSlave.fetish == "cumslut">> - <<set _fetishDescriptor = "getting to drink more cum", _activeQuirk = 1>> + <<set _fetishDesc = "getting to drink more cum", _activeQuirk = 1>> <<elseif $activeSlave.sexualQuirk == "gagfuck queen">> - <<set _fetishDescriptor = "getting to suck more dick", _activeQuirk = 1>> + <<set _fetishDesc = "getting to suck more dick", _activeQuirk = 1>> <</if>> -<<if canWalk($activeSlave)>> - You call $him over and tell $him you want to watch $him <<switch _sexAct>><<case "vaginal" "anal">>get fucked by<<case "oral">>suck off<</switch>> <<print _a>> _animal.species. -<<else>> - You order another slave to bring $activeSlave.slaveName over. Once $he is situated, you tell $him that you want to watch $him <<switch _sexAct>><<case "vaginal" "anal">>get fucked by<<case "oral">>suck off<</switch>> a _animal.species. -<</if>> +<<if canWalk($activeSlave)>>You call $him over and<<else>>You order another slave to bring $activeSlave.slaveName over. Once $he is situated, you<</if>> tell $him you want to watch $him <<switch _sexAct>><<case "oral">>suck off<<default>>get fucked by<</switch>> <<print _a>> _animal.species. <<if ($activeSlave.fetish != "mindbroken")>> <<if ($activeSlave.devotion > 50)>> <<if _sexAct == "vaginal" || _sexAct == "anal">> - <<if ((_sexAct == "vaginal") && ($activeSlave.vagina > 0)) || ((_sexAct == "anal") && ($activeSlave.anus > 0))>> - <<if $activeSlave.fetishKnown == 1>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName's face visibly brightens at the thought of committing such a _fetishDescriptor act. - <<else>> - $activeSlave.slaveName looks visibly disturbed, but is so attentive to your will that $he quickly agrees. - <</if>> + <<if _used.vagina || _used.anus>> + <<if $activeSlave.fetishKnown == 1 && _activeQuirk>> + $activeSlave.slaveName's face visibly brightens at the thought of _fetishDesc. <<else>> $activeSlave.slaveName looks visibly disturbed, but is so attentive to your will that $he quickly agrees. <</if>> <<else>> - <<if $activeSlave.fetishKnown == 1>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName's face visibly brightens at the thought of committing such a _fetishDescriptor act, although $he seems a bit hesitant at the thought of giving $his <<if !canDoVaginal($activeSlave)>>anal<</if>> virginity to an animal. - <<else>> - $activeSlave.slaveName looks visibly shaken at the thought of having $his precious <<if !canDoVaginal($activeSlave)>>anal <</if>>virginity taken by an animal, but is so attentive to your will that $he agrees. - <</if>> + <<if $activeSlave.fetishKnown == 1 && _activeQuirk>> + $activeSlave.slaveName's face visibly brightens at the thought of _fetishDesc, although $he seems a bit hesitant at the thought of giving $his <<if _sexAct == "anal">>anal<</if>> virginity to an animal. <<else>> - $activeSlave.slaveName looks visibly shaken at the thought of having $his precious <<if !canDoVaginal($activeSlave)>>anal <</if>>virginity taken by an animal, but is so attentive to your will that $he agrees. + $activeSlave.slaveName looks visibly shaken at the thought of having $his precious <<if _sexAct == "anal">>anal <</if>>virginity taken by an animal, but is so attentive to your will that $he agrees. <</if>> <</if>> <<else>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName's face visibly brightens at the thought of _fetishDescriptor, even if it's a _animal.species's cum. + <<if _activeQuirk>> + $activeSlave.slaveName's face visibly brightens at the thought of _fetishDesc, even if it's <<print _a>> _animal.species's cum. <<else>> - $activeSlave.slaveName blanches at the thought of having to suck a _animal.species's dick, but $he is so devoted to you that $he reluctantly agrees. + $activeSlave.slaveName blanches at the thought of having to suck <<print _a>> _animal.species's dick, but $he is so devoted to you that $he reluctantly agrees. <</if>> <</if>> <</if>> <<if ($activeSlave.devotion > 20) && ($activeSlave.devotion <= 50)>> <<if _sexAct == "vaginal" || _sexAct == "anal">> - <<if ((_sexAct == "vaginal") && ($activeSlave.vagina > 0)) || ((_sexAct == "anal") && ($activeSlave.anus > 0))>> - <<if $activeSlave.fetishKnown == 1>> - <<if _activeQuirk>> - $activeSlave.slaveName isn't too keen on the idea of fucking a _animal.species, but the thought of the _fetishDescriptor involved convinces $him to comply. - <<else>> - $activeSlave.slaveName tries in vain to conceal $his horror, but quickly regains $his composure. - <</if>> + <<if _used.vagina || _used.anus>> + <<if $activeSlave.fetishKnown == 1 && _activeQuirk>> + $activeSlave.slaveName isn't too keen on the idea of fucking <<print _a>> _animal.species, but the thought of _fetishDesc soon convinces $him to comply. <<else>> $activeSlave.slaveName tries in vain to conceal $his horror, but quickly regains $his composure. <</if>> <<else>> - <<if $activeSlave.fetishKnown == 1>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName clearly has some reservations about having $his <<if !canDoVaginal($activeSlave)>>anal <</if>>virginity taken by a _animal.species, but the thought of the _fetishDescriptor that comes with it soon convinces $him to comply. - <<else>> - $activeSlave.slaveName tries in vain to conceal $his horror at the thought of having $his <<if !canDoVaginal($activeSlave)>>rosebud<<else>>pearl<</if>> taken by a beast, but quickly regains $his composure. - <</if>> + <<if $activeSlave.fetishKnown == 1 && _activeQuirk>> + $activeSlave.slaveName clearly has some reservations about having $his <<if _sexAct == "anal">>anal <</if>>virginity taken by <<print _a>> _animal.species, but the thought of _fetishDesc soon convinces $him to comply. <<else>> - $activeSlave.slaveName tries in vain to conceal $his horror at the thought of having $his <<if !canDoVaginal($activeSlave)>>rosebud<<else>>pearl<</if>> taken by a beast, but quickly regains $his composure. + $activeSlave.slaveName tries in vain to conceal $his horror at the thought of having $his <<if _sexAct == "anal">>rosebud<<else>>pearl<</if>> taken by a beast, but quickly regains $his composure. <</if>> <</if>> <<else>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName isn't too keen on the idea of sucking off a _animal.species, but the thought of _fetishDescriptor soon convinces $him to comply. + <<if _activeQuirk>> + $activeSlave.slaveName isn't too keen on the idea of sucking off <<print _a>> _animal.species, but the thought of _fetishDesc soon convinces $him to comply. <<else>> $activeSlave.slaveName tries in vain to conceal $his horror, but quickly regains $his composure. <</if>> @@ -118,34 +108,22 @@ <<if ($activeSlave.devotion >= -20) && ($activeSlave.devotion <= 20)>> <<if _sexAct == "vaginal" || _sexAct == "anal">> - <<if (_sexAct == "vaginal" && ($activeSlave.vagina > 0)) || ((_sexAct == "anal") && ($activeSlave.anus > 0))>> - <<if $activeSlave.fetishKnown == 1>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName looks disgusted at the thought of fucking a _animal.species at first, but the thought of the _fetishDescriptor that comes with it seems to spark a small flame of lust in $him. - <<else>> - $activeSlave.slaveName tries in vain to conceal $his horror, - <</if>> + <<if _used.vagina || _used.anus>> + <<if $activeSlave.fetishKnown == 1 && _activeQuirk>> + $activeSlave.slaveName looks disgusted at the thought of fucking <<print _a>> _animal.species at first, but the thought of the _fetishDesc that comes with it seems to spark a small flame of lust in $him. <<else>> $activeSlave.slaveName tries in vain to conceal $his horror, <</if>> <<else>> - <<if $activeSlave.fetishKnown == 1>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName looks disgusted at the thought of giving up $his <<if !canDoVaginal($activeSlave)>>anal <</if>>virginity to a _animal.species, but the thought of the _fetishDescriptor that comes with it soon sparks a small flame of lust in $him. - <<else>> - $activeSlave.slaveName tries in vain to conceal $his horror at the thought of giving $his <<if !canDoVaginal($activeSlave)>>anal <</if>>virginity to an animal, and only the threat of a far worse punishment keeps $him from running out of the room. - <</if>> + <<if $activeSlave.fetishKnown == 1 && _activeQuirk>> + $activeSlave.slaveName looks disgusted at the thought of giving up $his <<if _sexAct == "anal">>anal <</if>>virginity to <<print _a>> _animal.species, but the thought of _fetishDesc it soon sparks a small flame of lust in $him. <<else>> - $activeSlave.slaveName tries in vain to conceal $his horror at the thought of giving $his <<if !canDoVaginal($activeSlave)>>anal <</if>>virginity to an animal, and only the threat of a far worse punishment keeps $him from running out of the room. + $activeSlave.slaveName tries in vain to conceal $his horror at the thought of giving $his <<if _sexAct == "anal">>anal <</if>>virginity to an animal, and only the threat of a far worse punishment keeps $him from running out of the room. <</if>> <</if>> <<else>> - <<if $activeSlave.fetishKnown == 1>> - <<if _activeQuirk == 1>> - $activeSlave.slaveName looks disgusted at the thought of sucking off a _animal.species at first, but the thought of _fetishDescriptor seems to spark a small flame of lust in $him. - <<else>> - $activeSlave.slaveName tries in vain to conceal $his horror, - <</if>> + <<if $activeSlave.fetishKnown == 1 && _activeQuirk>> + $activeSlave.slaveName looks disgusted at the thought of sucking off <<print _a>> _animal.species at first, but the thought of _fetishDesc seems to spark a small flame of lust in $him. <<else>> $activeSlave.slaveName tries in vain to conceal $his horror, <</if>> @@ -188,24 +166,24 @@ before calling in the _animal.species. The _animal.species slowly saunters up to The _animal.species clambers up to mount $activeSlave.slaveName, eliciting a squeal from the girl as its claws dig into $his flesh. <</switch>> <<else>> - The dog <<if _sexAct != "oral">> takes a few curious sniffs, then <</if>>lines its cock up with $activeSlave.slaveName's <<switch _sexAct>><<case "vaginal" "anal">>_orifice.<<case "oral">>mouth, then, with a mighty shove, begins to thrust rapidly, in the way that only _animal.species can.<</switch>> + The _animal.species <<if _sexAct != "oral">> takes a few curious sniffs, then <</if>>lines its cock up with $activeSlave.slaveName's <<switch _sexAct>><<case "vaginal" "anal">>_orifice.<<case "oral">>mouth, then, with a mighty shove, begins to thrust rapidly, in the way that only _animal.species can.<</switch>> <</if>> <<switch _sexAct>> <<case "vaginal" "anal">> - It takes a couple of tries, but it finally manages to sink its cock into $his <<if _sexAct == "vaginal" && _activeQuirk == 1>>wet <</if>>_orifice. + It takes a couple of tries, but it finally manages to sink its cock into $his <<if _sexAct == "vaginal" && _activeQuirk>>wet <</if>>_orifice. <<case "oral">> <<if canWalk($activeSlave)>> - In one swift motion, the canine buries its cock deep in $his throat, causing $him to gag. It then begins to thrust rapidly, in the way that only dogs can. + In one swift motion, the canine buries its cock deep in $his throat, causing $him to gag. It then begins to thrust rapidly, in the way that only <<print _animal.species>>s can. <</if>> <</switch>> <<if _sexAct != "oral">> - <<if ($activeSlave.vagina == 0)>>The slave gives a loud <<if ($activeSlave.devotion > 20)>>moan<<else>>groan<</if>> as $his <<if !canDoVaginal($activeSlave)>>@@.lime;anal@@<</if>> @@.lime;virginity is taken from $him@@<<if ($activeSlave.devotion < -20)>>@@.lime; by force@@<</if>>.<</if>> + <<if (_sexAct == "vaginal" && !_used.vagina) || (_sexAct == "anal" && !_used.anus)>>The slave gives a loud <<if ($activeSlave.devotion > 20)>>moan<<else>>groan<</if>> as $his <<if _sexAct == "anal">>@@.lime;anal@@<</if>> @@.lime;virginity is taken from $him@@<<if ($activeSlave.devotion < -20)>>@@.lime; by force@@<</if>>.<</if>> <</if>> <<case "hooved">> - The _animal.species stands over $him as another slave lines its massive phallus up with $activeSlave.slaveName's <<switch _sexAct>><<case "oral">>open mouth<<case "vaginal" "anal">><<if _activeQuirk == 1>>wet <</if>>_orifice<</switch>>. + The _animal.species stands over $him as another slave lines its massive phallus up with $activeSlave.slaveName's <<switch _sexAct>><<case "oral">>open mouth<<case "vaginal" "anal">><<if _activeQuirk>>wet <</if>>_orifice<</switch>>. With a slight thrust, it enters $him and begins to fuck <<if _sexAct == "oral">>$his mouth<<else>> $him<</if>>. $activeSlave.slaveName can't help but give a loud groan as the huge cock <<switch _sexAct>> @@ -261,10 +239,10 @@ before calling in the _animal.species. The _animal.species slowly saunters up to <</switch>> <<if _sexAct != "oral">> - <<if canDoVaginal($activeSlave)>> - <<if $activeSlave.vagina == 0>> + <<if _sexAct == "vaginal">> + <<if !_used.vagina>> <<if ($activeSlave.devotion >= -20)>> - <<if _activeQuirk == 1>> + <<if _activeQuirk>> @@.lime;Losing $his virginity@@ in such a painful manner has @@.hotpink;increased $his devotion to you.@@ <<set $activeSlave.devotion += 10>> <<else>> @@ -285,9 +263,9 @@ before calling in the _animal.species. The _animal.species slowly saunters up to <</if>> <</if>> <<else>> - <<if $activeSlave.anus == 0>> + <<if !_used.anus>> <<if ($activeSlave.devotion >= -20)>> - <<if _activeQuirk == 1>> + <<if _activeQuirk>> @@.lime;Losing $his anal virginity@@ in such a painful manner has @@.hotpink;increased $his devotion to you.@@ <<set $activeSlave.devotion += 10>> <<else>> @@ -309,9 +287,9 @@ before calling in the _animal.species. The _animal.species slowly saunters up to <</if>> <</if>> - <<if (canDoVaginal($activeSlave) && $activeSlave.vagina == 0) || (!canDoVaginal($activeSlave) && $activeSlave.anus == 0)>> - The pain of having such a _animal.dickSize cock take $his <<if !canDoVaginal && $activeSlave.anus == 0>>anal<</if>>virginity has @@.red;damaged $his health.@@ - <<set $activeSlave.health -= 10>> + <<if (!_used.vagina && _sexAct == "vaginal") || (!_used.anus && _sexAct == "anal")>> + The pain of having such a _animal.dickSize cock take $his <<if _sexAct == "anal">>anal <</if>>virginity has @@.red;damaged $his health.@@ + <<set $activeSlave.health -= 5>> <</if>> <</if>> @@ -319,15 +297,16 @@ before calling in the _animal.species. The _animal.species slowly saunters up to <<case "canine">> The <<switch _animal.species>><<case "dog">>hound<<default>>_animal.species<</switch>> wastes no time in beginning to hammer away at $his _orifice, causing $activeSlave.slaveName to moan uncontrollably as its thick, veiny member probes the depths of $his <<switch _sexAct>><<case "oral">>throat<<case "vaginal">>cunt<<case "anal">>rectum<</switch>>. A few short minutes later, $he gives a loud groan - <<if ($activeSlave.fetishKnown == 1) && (_activeQuirk == 1)>> and shakes in orgasm <</if>> + <<if ($activeSlave.fetishKnown == 1) && (_activeQuirk)>> and shakes in orgasm <</if>> as the _animal.species's knot begins to swell and its penis begins to erupt a thick stream of jizz <<switch _sexAct>><<case "vaginal" "anal">>into $him<<case "oral">>down $his throat<</switch>>. After almost a minute, the _animal.species has finally finished cumming and its knot is sufficiently small enough that the _animal.species is able to pull its cock out, causing <<switch _sexAct>> - <<case "vaginal" "anal">> a stream of cum to slide out of $his - <<if (canDoVaginal($activeSlave) && ($activeSlave.vagina <= 2)) || (!canDoAnal($activeSlave)) && ($activeSlave.anus <= 1)>> + <<case "vaginal" "anal">> + a stream of cum to slide out of $his + <<if _sexAct == "vaginal" && ($activeSlave.vagina <= 2) || _sexAct == "anal" && ($activeSlave.anus <= 1)>> @@.lime;now-gaping _orifice.@@ <<else>> - <<if canDoVaginal($activeSlave)>> + <<if _sexAct == "vaginal">> <<if $activeSlave.vagina == 3>> loose <<elseif $activeSlave.vagina <= 9>> @@ -349,8 +328,12 @@ before calling in the _animal.species. The _animal.species slowly saunters up to <</if>> <</if>> _orifice. <</if>> + <<if canGetPregnant($activeSlave) && canBreed($activeSlave, _animal)>> + <<= knockMeUp($activeSlave, 5, _hole, -8)>> + <</if>> <<case "oral">> $activeSlave.slaveName to immediately start coughing and retching uncontrollably. + <</switch>> Having finished its business, the _animal.species runs off, presumably in search of food. <<switch _sexAct>> @@ -386,6 +369,11 @@ before calling in the _animal.species. The _animal.species slowly saunters up to <<case "oral">> <<set $activeSlave.oralCount += 1>> <</switch>> + <<if _sexAct != "oral">> + <<if canGetPregnant($activeSlave) && canBreed($activeSlave, _animal)>> + <<= knockMeUp($activeSlave, 5, _hole, -8)>> + <</if>> + <</if>> <<case "feline">> The _animal.species begins to move, thrusting faster and faster. The $girl beneath can't stop a groan of pain from escaping $his lips as the barbs on its dick @@.red;rub the inside of $his _orifice raw.@@ After a few minutes of painful coupling, the _animal.species's thrusts finally slow, then stop completely. With a <<if _animal.species != "cat">>deep bellow<<else>>loud //meow//<</if>>, he finally dismounts, gives you a long look, then stalks off. @@ -405,23 +393,28 @@ before calling in the _animal.species. The _animal.species slowly saunters up to <<case "oral">> <<set $activeSlave.oralCount += 1>> <</switch>> + <<if _sexAct != "oral">> + <<if canGetPregnant($activeSlave) && canBreed($activeSlave, _animal)>> + <<= knockMeUp($activeSlave, 5, _hole, -8)>> + <</if>> + <</if>> <</switch>> <<if (random(1,100) > (100 + $activeSlave.devotion))>> <<switch _sexAct>> <<case "vaginal">> <<if ($activeSlave.energy <= 95) && ($activeSlave.sexualFlaw != "hates penetration")>> - Having a _animal.species fuck $him by force has given $him a @@.red;hatred of penetration.@@ + Having <<print _a>> _animal.species fuck $him by force has given $him a @@.red;hatred of penetration.@@ <<set $activeSlave.sexualFlaw = "hates penetration">> <</if>> <<case "anal">> <<if ($activeSlave.energy <= 95) && ($activeSlave.sexualFlaw != "hates anal")>> - Having a _animal.species fuck $him by force has given $him a @@.red;hatred of anal penetration.@@ + Having <<print _a>> _animal.species fuck $him by force has given $him a @@.red;hatred of anal penetration.@@ <<set $activeSlave.sexualFlaw = "hates anal">> <</if>> <<case "oral">> <<if ($activeSlave.energy <= 95) && ($activeSlave.sexualFlaw != "hates oral")>> - Having a _animal.species fuck $him by force has given $him a @@.red;hatred of oral penetration.@@ + Having <<print _a>> _animal.species fuck $him by force has given $him a @@.red;hatred of oral penetration.@@ <<set $activeSlave.sexualFlaw = "hates oral">> <</if>> <</switch>> diff --git a/src/pregmod/electiveSurgery.tw b/src/pregmod/electiveSurgery.tw index ef56c7283b6ee8f977ddf84fb5f7e85fb9b3c981..9d5ed413d82ad6a38e3deb65f464d7ab32642ed1 100644 --- a/src/pregmod/electiveSurgery.tw +++ b/src/pregmod/electiveSurgery.tw @@ -124,7 +124,7 @@ You have @@.orange;$PC.skin skin.@@<<if $PC.skin != $PC.origSkin>> Your original [[Ebony|PC Surgery Degradation][$PC.skin = "ebony", cashX(-2000, "PCmedical"), $surgeryType = "skinTone"]] | <</if>> <<if $PC.skin != "pure black">> - [[Pure Black|PC Surgery Degradation][$PC.skin = "pure black", cashX(-2000, "PCmedical"), $surgeryType = "skinTone"]] + [[Pure Black|PC Surgery Degradation][$PC.skin = "pure black", cashX(-2000, "PCmedical"), $surgeryType = "skinTone"]] | <</if>> [[Custom Color|PC Skin Workaround][cashX(-2000, "PCmedical"), $surgeryType = "skinTone"]] diff --git a/src/pregmod/fAnimalImpreg.tw b/src/pregmod/fAnimalImpreg.tw new file mode 100644 index 0000000000000000000000000000000000000000..3fd41453503cae9843052536f432526e1a836d14 --- /dev/null +++ b/src/pregmod/fAnimalImpreg.tw @@ -0,0 +1,46 @@ +:: FAnimalImpreg [nobr] + +<<set $nextButton = "Back", $nextLink = "Slave Interact", $impregnatrix = 0, $eligibility = 0>> + +<<set _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length>> + +<br><br> + +__Select an eligible animal to knock $him up:__ + +<br> + +/* FIXME: this might not work */ + +<<for _c = 0; _c < _CL; _c++>> + <<if canBreed($activeSlave, $canines[_c])>> + <<if $canines[_c].species != "dog">> + <<set _canine = $canines[_c].species>> + <<else>> + <<set _canine = $canines[_c].breed>> + <</if>> + <br><<link "Have a _canine knock $him up" "FAnimalImpreg Consummate">><<set $impregnatrix = $canines[_c]>><</link>> + <<set $eligibility = 1>> + <</if>> +<</for>> +<<for _h = 0; _h < _HL; _h++>> + <<if canBreed($activeSlave, $hooved[_h])>> + <<set _hooved = $hooved[_h].species>> + <br><<link "Have a _hooved knock $him up" "FAnimalImpreg Consummate">><<set $impregnatrix = $hooved[_h]>><</link>> + <<set $eligibility = 1>> + <</if>> +<</for>> +<<for _f = 0; _f < _fL; _f++>> + <<if canBreed($activeSlave, $felines[_f])>> + <<if $felines[_f].species != "cat">> + <<set _feline = $felines[_f].species>> + <<else>> + <<set _feline = $felines[_f].breed>> + <</if>> + <br><<link "Have a _feline knock $him up" "FAnimalImpreg Consummate">><<set $impregnatrix = $felines[_f]>><</link>> + <<set $eligibility = 1>> + <</if>> +<</for>> +<<if ($eligibility == 0)>> +//You have no animals capable of inseminating $him.// +<</if>> diff --git a/src/pregmod/fAnimalImpregConsummate.tw b/src/pregmod/fAnimalImpregConsummate.tw new file mode 100644 index 0000000000000000000000000000000000000000..d9a87486a8c0279734535c5af6a6ff37e2d03d99 --- /dev/null +++ b/src/pregmod/fAnimalImpregConsummate.tw @@ -0,0 +1,6 @@ +:: FAnimalImpreg Consummate [nobr] + +/* TODO: all of this */ + +<<set _animal = $impregnatrix>> +You have a servant lead the <<if _animal.species != "dog" || _animal.species != "cat">><<print _animal.species>><<else>><<print _animal.breed>><</if>> in on a leash and feed him a special treat, one laced with high amounts of aphrodasiacs and vasodilators. They have an effect very rapidly, and the <<if _animal.species != "dog" || _animal.species != "cat">><<print _animal.species>><<else>><<print _animal.breed>><</if>>'s <<print _animal.dickSize>> cock quickly stands at attention. \ No newline at end of file diff --git a/src/pregmod/fMarry.tw b/src/pregmod/fMarry.tw index b1eca7dedd30787a341bb0fbde1b9e2f39960d98..01db4f05cff76571e08a01f0a2716547e1a06237 100644 --- a/src/pregmod/fMarry.tw +++ b/src/pregmod/fMarry.tw @@ -21,7 +21,7 @@ <<else>> <<set _name = $slaves[_m].slaveName>> /* Use the modified "L"isp variables when they are speaking, just in case. */ - <<set _heL =$he>> + <<set _heL = $he>> <<set _hisL = $his>> <<set _himL = $him>> <<set _himselfL = $himself>> @@ -160,7 +160,7 @@ You tell $activeSlave.slaveName that you're going to marry $him. (A proposal, of <<if $activeSlave.relationship == -1>> "I'll never be <<s>>ati<<s>>fied by ju<<s>>t you!" <<elseif $activeSlave.relationship == 4>> - "I love _name, not you <<Master>>! You'll never be a<<s>> good as $his!" + "I love _name, not you <<Master>>! You'll never be a<<s>> good as _himL!" <<elseif $activeSlave.relationship == 3>> "But I like having <<s>>e<<x>> with _name, not you <<Master>>! You'll never be a<<s>> good as _himL!" <<elseif $activeSlave.relationship > 0>> diff --git a/src/pregmod/huskSlaveSwapWorkaround.tw b/src/pregmod/huskSlaveSwapWorkaround.tw index 7871158c360eeb07fa570a5f0972893820128b4f..68daf9288e217cda33f1bc04ac1d492bb818d3e3 100644 --- a/src/pregmod/huskSlaveSwapWorkaround.tw +++ b/src/pregmod/huskSlaveSwapWorkaround.tw @@ -9,20 +9,22 @@ <br><br> __Select an eligible slave:__ <<for _i = 0; _i < $slaves.length; _i++>> - <<if isSlaveAvailable($slaves[_i])>> - <<if $slaves[_i].fuckdoll == 0>> - <<if $slaves[_i].amp >= 0>> - <<if $slaves[_i].indenture == -1>> - <<if $slaves[_i].breedingMark == 0 || $propOutcome == 0>> - <<if WombReserveCount($slaves[_i]) == 0>> - <<if $slaves[_i].ID != $activeSlave.ID>> - <<set _name = SlaveFullName($slaves[_i])>> - <br><<print "[[_name|Husk Slave Swap][$swappingSlave = $slaves[" + _i + "], cashX(-10000, "slaveSurgery", $slaves[_i])]]">> + <<capture _i>> + <<if isSlaveAvailable($slaves[_i])>> + <<if $slaves[_i].fuckdoll == 0>> + <<if $slaves[_i].amp >= 0>> + <<if $slaves[_i].indenture == -1>> + <<if $slaves[_i].breedingMark == 0 || $propOutcome == 0>> + <<if WombReserveCount($slaves[_i]) == 0>> + <<if $slaves[_i].ID != $activeSlave.ID>> + <<set _name = SlaveFullName($slaves[_i])>> + <br>[[_name|Husk Slave Swap][$swappingSlave = $slaves[_i], cashX(-10000, "slaveSurgery", $slaves[_i])]] + <</if>> <</if>> <</if>> <</if>> <</if>> <</if>> <</if>> - <</if>> + <</capture>> <</for>> diff --git a/src/pregmod/manageCorporation.tw b/src/pregmod/manageCorporation.tw new file mode 100644 index 0000000000000000000000000000000000000000..8f989a75ae2baef0f905fac368589b5d25afbea5 --- /dev/null +++ b/src/pregmod/manageCorporation.tw @@ -0,0 +1,2195 @@ +:: 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]] + <<else>> + You lack the funds for the final option. You need @@.yellowgreen;<<print cashFormat(340000)>>@@ for it. + <</if>> + <<else>> + You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(300000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@ + <</if>> + <<else>> + You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(270000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@ + <</if>> + <<else>> + You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(250000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@ + <</if>> + <<else>> + You lack the funds for many options. You need at least @@.yellowgreen;<<print cashFormat(210000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@ + <</if>> + <<else>> + You lack the funds for most options. You need at least @@.yellowgreen;<<print cashFormat(200000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@ + <</if>> + <<else>> + You lack the funds to found a slave corporation. You need at least @@.yellowgreen;<<print cashFormat(150000)>>@@ and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@ + <</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]] + <<else>> + You lack the funds for the final option. You need @@.yellowgreen;<<print cashFormat(272000)>>@@ for it. + <</if>> + <<else>> + You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(240000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@ + <</if>> + <<else>> + You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(216000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@ + <</if>> + <<else>> + You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(200000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@ + <</if>> + <<else>> + You lack the funds for many options. You need at least @@.yellowgreen;<<print cashFormat(168000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@ + <</if>> + <<else>> + You lack the funds for most options. You need at least @@.yellowgreen;<<print cashFormat(160000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@ + <</if>> + <<else>> + You lack the funds to found a slave corporation. You need at least @@.yellowgreen;<<print cashFormat(120000)>>@@ and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@ + <</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 def $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 physical 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>> + <br> +<</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]] | [[Not Applied|Manage Corporation][$corpSpecImplants = 0, $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>> + <<elseif $corpSpecImplants == 0>> + <br>The corporation keeps their slaves entirely implant free. + <<if $corpSpecTimer == 0 && $corpSpecToken > 0>> + [[Tasteful Implants|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecImplants>><<set $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 cbebb68ee086955ec4471372bf8febf397a03a00..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> @@ -216,4 +217,8 @@ Slave supply is <</replace>> <</link>> <</if>> -<br> +<br><br> + +<<if $foodMarket > 0>> +<<include "Food Market">> +<</if>> \ No newline at end of file diff --git a/src/pregmod/organFarm.tw b/src/pregmod/organFarm.tw index 293c7d6aff32a9a0921f000fe2f5bcacaf4cce2a..f43e77264a925ffd92ceeb2394c0ae4f658a0c4c 100644 --- a/src/pregmod/organFarm.tw +++ b/src/pregmod/organFarm.tw @@ -150,8 +150,7 @@ Organ Production <br> <</if>> -/* -<<if $seePreg != 0 && $seeBestiality != 0>> +<<if $seePreg != 0 && $seeBestiality == 1 && $cheatMode == 1>> <<if $farmyardLabUpgrades.animalOvaries > 0>> <<if $animalOvaries < 1>> //You lack the required designs for cloning animal ovaries for slaves.// @@ -182,7 +181,6 @@ Organ Production <</if>> <</if>> <</if>> -*/ <br> Future Societies Research diff --git a/src/pregmod/organFarmOptions.tw b/src/pregmod/organFarmOptions.tw index cf92b569f0ca651df3718b33a47c9a9e4c77343d..5888ae64fd11ad4362fc76192e2aa61508b2c9f5 100644 --- a/src/pregmod/organFarmOptions.tw +++ b/src/pregmod/organFarmOptions.tw @@ -114,7 +114,7 @@ The fabricator is ready to grow an organ for $him. Extract tissue to begin growi <</link>> //Costs <<print cashFormat(2500)>> and requires balls for successful implantation// <</if>> <</if>> - <<if $animalTesticles != 0>> + <<if $animalTesticles > 0>> <<if $slaveOrgans.pigTesticles != 1>> <br> <<link "Pig testicles">> @@ -201,7 +201,7 @@ The fabricator is ready to grow an organ for $him. Extract tissue to begin growi <</link>> //Costs <<print cashFormat(10000)>> and requires existing ovaries for successful implantation// <</if>> <</if>> -<<if $animalOvaries != 0>> +<<if $animalOvaries > 0>> <<if $slaveOrgans.pigOvaries != 1>> <br> <<link "Pig ovaries">> @@ -303,7 +303,7 @@ The fabricator is ready to grow an organ for $him. Extract tissue to begin growi <</link>> //Costs <<print cashFormat(20000)>> and the slave must not have female reproductive organs for successful implantation// <</if>> - <<if $animalMpreg != 0>> + <<if $animalMpreg > 0>> <<if $slaveOrgans.mpregPig != 1>> <br> <<link "Anal pig womb and ovaries">> diff --git a/src/pregmod/pRaped.tw b/src/pregmod/pRaped.tw index 8934289c8111b95b77f42e4ab0101f65939dbf28..68b892877af0c44cbf7cb7198928ff2d27de0226 100644 --- a/src/pregmod/pRaped.tw +++ b/src/pregmod/pRaped.tw @@ -206,7 +206,7 @@ Now the only question is what to do with the would-be rapist. You could toss the <<= assignJob($activeSlave, "work as a farmhand")>> <<run cashX(forceNeg($contractCost), "slaveTransfer", $activeSlave)>> <<replace "#result">> - You complete the legalities and biometric scanning quickly and cautiously. /*TODO: finish writing this subsection */ + You complete the legalities and biometric scanning quickly and cautiously. The idiot will wake up in $farmyardName, where $he will spend the rest of $his days working the fields<<if $farmyardShows == 1>> and <<if $seeBestiality == 1>>getting fucked by animals<<else>>putting on shows with animals<</if>><</if>>. <<run newSlave($activeSlave)>> /* skip New Slave Intro */ <</replace>> <</link>> diff --git a/src/pregmod/seBurst.tw b/src/pregmod/seBurst.tw index 10cd461d44b56c169ce0f3096d19de972402081b..397f3dc12e76e78bcf49a4fdbc612666f04de8b5 100644 --- a/src/pregmod/seBurst.tw +++ b/src/pregmod/seBurst.tw @@ -241,7 +241,7 @@ <<if $slaves[$i].prestige > 1 || $slaves[$i].pornPrestige > 2>> | <<link 'Send them to auction'>> <<replace `"#" + $dispositionId`>> - <<<set _babyCost = random(-12,12)>> + <<set _babyCost = random(-12,12)>> <<if $slaves[$i].prematureBirth == 1>><<set _babyCost = -45>><</if>> $His <<if _curBabies > 1>>babies<<else>>baby<</if>> sold for <<if _curBabies > 1>>a total of <</if>>@@.yellowgreen;<<print cashFormat(_curBabies*(50+_babyCost))>>.@@<<if $slaves[$i].prematureBirth == 1>> A low price due to the added costs of caring for them.<</if>> <<run cashX((_curBabies*(50+_babyCost)), "babyTransfer")>> diff --git a/src/pregmod/theBlackMarket.tw b/src/pregmod/theBlackMarket.tw index e822631ef9f7a42e9e6164f6a1b727db4331f895..d74b33b3ed30983c48da5508d16926505cc522e6 100644 --- a/src/pregmod/theBlackMarket.tw +++ b/src/pregmod/theBlackMarket.tw @@ -357,6 +357,7 @@ Of all the wonders present, the thing that catches your eye the most is a shady <br> <<else>> You already possess schematics for implanting animal ovaries. + <br> <</if>> <<else>> You cannot afford the asking price of @@.red;<<print cashFormat(25000)>>@@ for animal ovaries. @@ -368,6 +369,7 @@ Of all the wonders present, the thing that catches your eye the most is a shady <br> <<else>> You already possess schematics for implanting animal testicles. + <br> <</if>> <<else>> You cannot afford the asking price of @@.red;<<print cashFormat(25000)>>@@ for animal testicles. @@ -379,6 +381,7 @@ Of all the wonders present, the thing that catches your eye the most is a shady <br> <<else>> You already possess schematics for implanting animal anal wombs and ovaries. + <br> <</if>> <<else>> You cannot afford the asking price of @@.red;<<print cashFormat(25000)>>@@ for animal anal wombs and ovaries. diff --git a/src/pregmod/widgets/assignmentFilterWidget.tw b/src/pregmod/widgets/assignmentFilterWidget.tw index 498d6654f0e6ce7b30e6913809e0ddb6fe8dbae8..d3c6ad02a0ae0c4eb83a59b7af92cb1f99627d64 100644 --- a/src/pregmod/widgets/assignmentFilterWidget.tw +++ b/src/pregmod/widgets/assignmentFilterWidget.tw @@ -44,7 +44,7 @@ <</widget>> <<widget "farmyardAssignmentFilter">> - <<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "work as a farmhand" || x.assignment == "be the Farmer"}).map(function(y){y.assignmentVisible = 1})>> + <<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "work as a farmhand" || x.assignment == "be the Farmer"}).map(function(y){y.assignmentVisible = 1})>> <</widget>> <<widget "headgirlSuiteAssignmentFilter">> diff --git a/src/pregmod/widgets/economyWidgets.tw b/src/pregmod/widgets/economyWidgets.tw index dcb61e0c56ce80c6c0a303edf227d04568c993b1..99e69b2ec2bfeb7c9fc696b3d437e454ac375eb8 100644 --- a/src/pregmod/widgets/economyWidgets.tw +++ b/src/pregmod/widgets/economyWidgets.tw @@ -303,6 +303,7 @@ <<set _b.maintenance = (def _b.maintenance) ? _b.maintenance : 0>> <<set _b.totalIncome = (def _b.totalIncome) ? _b.totalIncome : 0>> <<set _b.totalExpenses = (def _b.totalExpenses) ? _b.totalExpenses : 0>> + <<set _b.food = (def _b.food) ? _b.food : 0>> <<set _b.profit = (def _b.profit) ? _b.profit : 0>> <table border="1" style="width: 100%; padding-left: 20px; padding-right: 20px;"> <tr style="border-bottom: 2px solid white;"> diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index f0797bd19e1603bda46694c6f10c565a72214c0b..1b448b9cea719acc7498e734ef23140bb1b37dae 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>> @@ -624,9 +631,6 @@ <<if ndef $freshPC>> <<set $freshPC = 0>> <</if>> -<<if ndef $brothelAdsPreg>> - <<set $brothelAdsPreg = 0>> -<</if>> <<if ndef $dairyHyperPregRemodel>> <<set $dairyHyperPregRemodel = 0>> <</if>> @@ -636,9 +640,6 @@ <<if ndef $dairyImplantsSetting>> <<set $dairyImplantsSetting = 1>> <</if>> -<<if ndef $clubAdsPreg>> - <<set $clubAdsPreg = 0>> -<</if>> <<if ndef $spaFix>> <<set $spaFix = 0>> <</if>> @@ -687,12 +688,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 +707,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 +719,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,30 +756,27 @@ <<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>> <<if ndef $farmyardSlaves>> <<set $farmyardSlaves = 0>> <</if>> +<<if ndef $farmyardShowgirls>> + <<set $farmyardShowgirls = []>> +<</if>> +<<if ndef $farmyardFarmers>> + <<set $farmyardFarmers = []>> +<</if>> +<<if ndef $farmMenials>> + <<set $farmMenials = 0>> +<</if>> +<<if ndef $farmMenialsSpace>> + <<set $farmMenialsSpace = 0>> +<</if>> <<if ndef $farmyardUpgrade>> <<set $farmyardUpgrade = {pump: 0, fertilizer: 0, hydroponics: 0, machinery: 0, seeds: 0, lab: 0}>> <</if>> @@ -824,8 +801,8 @@ <<if ndef $farmyardLabUpgrades>> <<set $farmyardLabUpgrades = {animalOvaries: 0, animalTesticles: 0, animalMpreg: 0}>> <</if>> -<<if ndef $animalsBought>> - <<set $animalsBought = {canines: 0, hooved: 0, felines: 0, labradorRetrievers: 0, germanShepherds: 0, goldenRetrievers: 0, frenchBulldogs: 0, bulldogs: 0, beagles: 0, poodles: 0, rottweilers: 0, yorkshireTerriers: 0, siberianHuskies: 0, horses: 0, siameses: 0, persians: 0, maineCoons: 0, ragdolls: 0, bengals: 0, abbysinians: 0, birmans: 0, orientalShorthairs: 0, sphynxes: 0, russianBlues: 0, wolves: 0, foxes: 0, jackals: 0, dingos: 0, zebras: 0, cougars: 0, jaguars: 0, pumas: 0, lynx: 0, leopards: 0, lions: 0, tigers: 0}>> +<<if ndef $animalsBought || def $animalsBought>> + <<set $animalsBought = {canines: 0, hooved: 0, felines: 0, labradorRetrievers: 0, germanShepherds: 0, goldenRetrievers: 0, frenchBulldogs: 0, bulldogs: 0, beagles: 0, poodles: 0, rottweilers: 0, yorkshireTerriers: 0, siberianHuskies: 0, horses: 0, bulls: 0, pigs: 0, siameses: 0, persians: 0, maineCoons: 0, ragdolls: 0, bengals: 0, abbysinians: 0, birmans: 0, orientalShorthairs: 0, sphynxes: 0, russianBlues: 0, wolves: 0, foxes: 0, jackals: 0, dingos: 0, zebras: 0, cougars: 0, jaguars: 0, pumas: 0, lynx: 0, leopards: 0, lions: 0, tigers: 0}>> <</if>> <<if ndef $canines>> <<set $canines = []>> @@ -982,6 +959,7 @@ <<if ndef $assistantBodyDesire>> <<set $assistantBodyDesire = 0>> <</if>> + <<if ndef $huskSlaveOrdered>> <<set $huskSlaveOrdered = 0>> <</if>> @@ -1115,14 +1093,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">> @@ -1796,148 +1766,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>> -<<if ndef $dairyStimulatorsUpgrade>> - <<set $dairyStimulatorsUpgrade = 0>> -<</if>> -<<if ndef $dairyPregUpgrade>> - <<set $dairyPregUpgrade = 0>> -<</if>> - -<<if ndef $createBioreactors>> - <<set $createBioreactors = 0>> -<</if>> -<<if ndef $bioreactorsAnnounced>> - <<set $bioreactorsAnnounced = 0>> -<</if>> -<<if ndef $bioreactorsHerm>> - <<set $bioreactorsHerm = 0>> -<</if>> -<<if ndef $bioreactorsXX>> - <<set $bioreactorsXX = 0>> -<</if>> -<<if ndef $bioreactorsXY>> - <<set $bioreactorsXY = 0>> -<</if>> -<<if ndef $bioreactorsBarren>> - <<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>> @@ -1950,57 +1778,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>> @@ -2016,22 +1798,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>> @@ -2045,12 +1812,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>> @@ -2776,6 +2539,157 @@ 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>> +<<set $dividendTimer = $dividendTimer || 13>> + +/*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>> +<<if ndef $foodLastWeek>> + <<set $foodLastWeek = 0>> +<</if>> +<<if ndef $foodTotal>> + <<set $foodTotal = 0>> +<</if>> +<<if ndef $foodProduced>> + <<set $foodProduced = 0>> +<</if>> +<<if ndef $foodStored>> + <<set $foodStored = 0>> +<</if>> +<<if ndef $foodCost>> + <<set $foodCost = 25>> +<</if>> +<<if ndef $foodMarket>> + <<set $foodMarket = 0>> +<</if>> +<<if ndef $slaveRate>> + <<set $slaveRate = 2>> +<</if>> +<<if ndef $lowerRate>> + <<set $lowerRate = 1.8>> +<</if>> +<<if ndef $middleRate>> + <<set $middleRate = 2>> +<</if>> +<<if ndef $upperRate>> + <<set $upperRate = 2.2>> +<</if>> +<<if ndef $topRate>> + <<set $topRate = 2.4>> +<</if>> +<<if ndef $foodConsumption>> + <<set $foodConsumption = (($lowerClass*$lowerRate) + ($middleClass*$middleRate) + ($upperClass*$upperRate) + ($topClass*$topRate))>> /* total amount food consumed per week */ +<</if>> +<<if ndef $revealFoodEffects>> + <<set $revealFoodEffects = 0>> +<</if>> +<<if ndef $rations>> + <<set $rations = 0>> +<</if>> + +<<if ndef $lastWeeksCashIncome>> + <<setupLastWeeksCash>> +<</if>> + <<run EconomyDatatypeCleanup()>> <<run ArcologyDatatypeCleanup()>> diff --git a/src/uncategorized/arcadeReport.tw b/src/uncategorized/arcadeReport.tw index e454cf4f2f7537d8e708dc42c307ece388b63459..27c66ad7f1a65ebb2e6138b1144d05a0e70a7768 100644 --- a/src/uncategorized/arcadeReport.tw +++ b/src/uncategorized/arcadeReport.tw @@ -205,8 +205,8 @@ <<if ($arcadeUpgradeFuckdolls == 1) && (_DL > $arcade)>> <<set $activeSlave = 0, _Age = -1, _FD = -1, _MB = -1, _Con = -1>> <<for _dI = 0; _dI < _DL; _dI++>> - <<set $i = $slaveIndices[$ArcadeiIDs[_dI]]>> <<if $slaves[$i].sentence == 0>> /* lets not convert slaves we are punishing into fuckdolls */ + <<set $i = $slaveIndices[$ArcadeiIDs[_dI]]>> <<if ($slaves[$i].fetish == "mindbroken")>> <<if ($slaves[$i].fuckdoll == 0)>> <<if ($slaves[$i].physicalAge > 35)>> @@ -216,27 +216,41 @@ <<set _FD = $i>> <</if>> <<elseif _MB == -1>> - <<set _MB = $i>> + <<if $slaves[$i].vagina >= 4 || $slaves[$i].anus >= 4>> + <<set _Con = $i>> + <<elseif $slaves[$i].physicalAge > 35>> + <<set _Age = $i>> + <<else>> + <<set _MB = $i>> + <</if>> <</if>> <<elseif _Con == -1>> - <<set _Con = $i>> + <<if $slaves[$i].vagina >= 4 || $slaves[$i].anus >= 4>> + <<set _Con = $i>> + <<elseif $slaves[$i].physicalAge > 35>> + <<set _Age = $i>> + <</if>> <</if>> <</if>> <</for>> - <<if _Age > -1>> - <<set $activeSlave = $slaves[_Age]>> - <<elseif _FD > -1>> + <<if _FD > -1>> <<set $activeSlave = $slaves[_FD]>> - <<elseif _MB > -1>> - <<set $activeSlave = $slaves[_MB]>> <<elseif _Con > -1>> <<set $activeSlave = $slaves[_Con]>> + <<elseif _MB > -1>> + <<set $activeSlave = $slaves[_MB]>> + <<elseif _Age > -1>> + <<set $activeSlave = $slaves[_Age]>> <</if>> - <<setLocalPronouns $activeSlave>> - <br> $activeSlave.slaveName is low-quality and surplus to the needs of the arcade, so $he has been converted into a Fuckdoll. - <<include "Remove activeSlave">> - <<if $activeSlave == 0>> /% if not zero then technically there was an error INVALID SLAVE %/ - <<set $fuckdolls++, _SL-->> + <<if $activeSlave != 0>> + <<setLocalPronouns $activeSlave>> + <br> $activeSlave.slaveName is low-quality and surplus to the needs of the arcade, so $he has been converted into a Fuckdoll. + <<include "Remove activeSlave">> + <<if $activeSlave == 0>> /% if not zero then technically there was an error INVALID SLAVE %/ + <<set $fuckdolls++, _SL-->> + <</if>> + <<else>> + <br> No slaves have failed quality inspection for fuckdoll conversion. $arcadeNameCaps will remain overcrowded this week. <</if>> <</if>> diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw index 2f4456ba4c719cc38ccd1e1331bfc538d2315398..927995e9ac299e2cc4e3aff7b1029c51147b5288 100644 --- a/src/uncategorized/arcmgmt.tw +++ b/src/uncategorized/arcmgmt.tw @@ -1578,3 +1578,7 @@ Your ''business assistant'' manages the menial slave market. <<silently>><<= MenialPopCap()>><</silently>> <</if>> <br> + +<span id="food"> + <<include "Food Report">> +</span> diff --git a/src/uncategorized/bulkSlaveGenerate.tw b/src/uncategorized/bulkSlaveGenerate.tw index 60004a5210e570c182c7d097c05c9600e62b2b2e..9c4c0a3c0bb2b7da1ae567b79e02d345906b4dcd 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 592f6d24e4f780f411c5fdb35183f0ee8d96b73a..2af6429d45c17b116590f6b01026ed803dcc75e7 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>> @@ -315,55 +315,55 @@ The parts of your arcology you own can house a total of $PopCap menial slaves. The market price of menials is <<print cashFormat(_menialPrice)>>. <<set _optionsBreak = 0>> <<if _bulkMax > 0 && $cash > _menialPrice>> - [[Buy|Buy Slaves][$menials+=1,$menialSupplyFactor-=1,$cash-=_menialPrice]] + [[Buy|Buy Slaves][$menials+=1,$menialSupplyFactor-=1,cashX(forceNeg(_menialPrice), "menialTransfer")]] <<if $cash > (menialSlaveCost(10))*10>> - [[(x10)|Buy Slaves][$menials+=10,$menialSupplyFactor-=10,$cash-=(menialSlaveCost(10))*10]] + [[(x10)|Buy Slaves][$menials+=10,$menialSupplyFactor-=10,cashX(forceNeg((menialSlaveCost(10))*10), "menialTransfer")]] <</if>> <<if $cash > (menialSlaveCost(100))*100>> - [[(x100)|Buy Slaves][$menials+=100,$menialSupplyFactor-=100,$cash-=(menialSlaveCost(100))*100]] + [[(x100)|Buy Slaves][$menials+=100,$menialSupplyFactor-=100,cashX(forceNeg((menialSlaveCost(100))*100), "menialTransfer")]] <</if>> <<if $cash > (_menialPrice+1)*2>> <<set _menialBulkPremium = Math.trunc(1 + Math.clamp($cash/_menialPrice,0,_bulkMax)/400)>> - [[(max)|Buy Slaves][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$cash-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax))*(_menialPrice+_menialBulkPremium)]] + [[(max)|Buy Slaves][$menials+=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax)),cashX(forceNeg(Math.trunc(Math.clamp($cash/(_menialPrice+_menialBulkPremium),0,_bulkMax))*(_menialPrice+_menialBulkPremium)), "menialTransfer")]] <</if>> //Bulk transactions may require offering a premium.// <<set _optionsBreak = 1>> <</if>> <<if $menials >= 1>> <<if _optionsBreak>>|<</if>> - [[Sell|Buy Slaves][$menials-=1,$menialDemandFactor-=1,$cash+=_menialPrice]] + [[Sell|Buy Slaves][$menials-=1,$menialDemandFactor-=1,cashX(_menialPrice, "menialTransfer")]] <<if $menials >= 10>> - [[(x10)|Buy Slaves][$menials-=10,$menialDemandFactor-=10,$cash+=(menialSlaveCost(-10))*10]] + [[(x10)|Buy Slaves][$menials-=10,$menialDemandFactor-=10,cashX(((menialSlaveCost(-10))*10), "menialTransfer")]] <<if $menials >= 100>> - [[(x100)|Buy Slaves][$menials-=100,$menialDemandFactor-=100,$cash+=(menialSlaveCost(-100))*100]] + [[(x100)|Buy Slaves][$menials-=100,$menialDemandFactor-=100,cashX(((menialSlaveCost(-100))*100), "menialTransfer")]] <</if>> <</if>> -[[(all)|Buy Slaves][$cash+=$menials*(menialSlaveCost(-$menials)),$menialDemandFactor-=$menials,$menials = 0]] +[[(all)|Buy Slaves][cashX(($menials*(menialSlaveCost(-$menials))), "menialTransfer"),$menialDemandFactor-=$menials,$menials = 0]] <<if $arcologies[0].FSPaternalist == "unset">> <<if $arcadeUpgradeFuckdolls == 1>> <<set _fconvertCost = 1000>> <<if _menialPrice >= 1100>> <<set _fconvertCost = (_menialPrice+100)>> <</if>> - <br> [[Convert to Fuckdoll|Buy Slaves][$menials-=1,$fuckdolls+=1,$cash-=(_fconvertCost)]] + <br> [[Convert to Fuckdoll|Buy Slaves][$menials-=1,$fuckdolls+=1,cashX(forceNeg(_fconvertCost), "menialTransfer")]] <<if $menials >= 10>> - [[(x10)|Buy Slaves][$menials-=10,$fuckdolls+=10,$cash-=10*(_fconvertCost)]] + [[(x10)|Buy Slaves][$menials-=10,$fuckdolls+=10,cashX(forceNeg(10*(_fconvertCost)), "menialTransfer")]] <<if $menials >= 100>> - [[(x100)|Buy Slaves][$menials-=100,$fuckdolls+=100,$cash-=100*(_fconvertCost)]] + [[(x100)|Buy Slaves][$menials-=100,$fuckdolls+=100,cashX(forceNeg(100*(_fconvertCost)), "menialTransfer")]] <</if>> <</if>> - [[(all)|Buy Slaves][$fuckdolls+=$menials,$cash-=(_fconvertCost)*($menials),$menials=0]] + [[(all)|Buy Slaves][$fuckdolls+=$menials,cashX(forceNeg((_fconvertCost)*($menials)), "menialTransfer"),$menials=0]] //Conversion costs <<print cashFormat(_fconvertCost)>> each// <</if>> <<if $dairyFeedersUpgrade > 0>> - <br> [[Convert to Bioreactor|Buy Slaves][$menials-=1,$menialBioreactors+=1,$cash-=500]] + <br> [[Convert to Bioreactor|Buy Slaves][$menials-=1,$menialBioreactors+=1,cashX(-500, "menialTransfer")]] <<if $menials >= 10>> - [[(x10)|Buy Slaves][$menials-=10,$menialBioreactors+=10,$cash-=5000]] + [[(x10)|Buy Slaves][$menials-=10,$menialBioreactors+=10,cashX(-5000, "menialTransfer")]] <<if $menials >= 100>> - [[(x100)|Buy Slaves][$menials-=100,$menialBioreactors+=100,$cash-=50000]] + [[(x100)|Buy Slaves][$menials-=100,$menialBioreactors+=100,cashX(-50000, "menialTransfer")]] <</if>> <</if>> - [[(all)|Buy Slaves][$menialBioreactors+=$menials,$cash-=500*$menials,$menials=0]] + [[(all)|Buy Slaves][$menialBioreactors+=$menials,cashX(forceNeg(500*$menials), "menialTransfer"),$menials=0]] //Conversion costs <<print cashFormat(500)>> each// <</if>> <</if>> @@ -377,20 +377,20 @@ The market price of menials is <<print cashFormat(_menialPrice)>>. <br>You do not own any standard Fuckdolls. <</if>> <<if ($fuckdolls > 0) || ($arcologies[0].FSPaternalist == "unset")>> -The market price of standard Fuckdolls is <<print cashFormat(_menialPrice*2)>>. + The market price of standard Fuckdolls is <<print cashFormat(_menialPrice*2)>>. <<set _optionsBreak = 0>> <<if _bulkMax > 0>> <<if $arcologies[0].FSPaternalist == "unset" && $cash > _menialPrice*2>> - [[Buy|Buy Slaves][$fuckdolls+=1,$menialSupplyFactor-=1,$cash-=(_menialPrice*2)]] + [[Buy|Buy Slaves][$fuckdolls+=1,$menialSupplyFactor-=1,cashX(forceNeg(_menialPrice*2), "menialTransfer")]] <<if $cash > (menialSlaveCost(10)*2)*10>> - [[(x10)|Buy Slaves][$fuckdolls+=10,$menialSupplyFactor-=10,$cash-=(menialSlaveCost(10)*2)*20]] + [[(x10)|Buy Slaves][$fuckdolls+=10,$menialSupplyFactor-=10,cashX(forceNeg((menialSlaveCost(10)*2)*20), "menialTransfer")]] <</if>> <<if $cash > (menialSlaveCost(100)*2)*100>> - [[(x100)|Buy Slaves][$fuckdolls+=100,$menialSupplyFactor-=100,$cash-=(menialSlaveCost(100)*2)*100]] + [[(x100)|Buy Slaves][$fuckdolls+=100,$menialSupplyFactor-=100,cashX(forceNeg((menialSlaveCost(100)*2)*100), "menialTransfer")]] <</if>> <<if $cash > ((_menialPrice+1)*4)>> <<set _fuckdollBulkPremium = Math.trunc(1 + Math.clamp($cash/(_menialPrice*2),0,_bulkMax)/400)>> - [[(max)|Buy Slaves][$fuckdolls+=Math.trunc(Math.clamp($cash/(_menialPrice*2+_fuckdollBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice*2+_fuckdollBulkPremium),0,_bulkMax)),$cash-=Math.trunc(Math.clamp($cash/(_menialPrice*2+_fuckdollBulkPremium),0,_bulkMax))*(_menialPrice*2+_fuckdollBulkPremium)]] + [[(max)|Buy Slaves][$fuckdolls+=Math.trunc(Math.clamp($cash/(_menialPrice*2+_fuckdollBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice*2+_fuckdollBulkPremium),0,_bulkMax)),cashX(forceNeg(Math.trunc(Math.clamp($cash/(_menialPrice*2+_fuckdollBulkPremium),0,_bulkMax))*(_menialPrice*2+_fuckdollBulkPremium)), "menialTransfer")]] <</if>> //Bulk transactions may require offering a premium.// <<set _optionsBreak = 1>> @@ -398,11 +398,11 @@ The market price of standard Fuckdolls is <<print cashFormat(_menialPrice*2)>>. <</if>> <<if $fuckdolls >= 1>> <<if _optionsBreak>>|<</if>> - [[Sell|Buy Slaves][$fuckdolls-=1,$menialDemandFactor-=1,$cash+=_menialPrice*2]] + [[Sell|Buy Slaves][$fuckdolls-=1,$menialDemandFactor-=1,cashX((_menialPrice*2), "menialTransfer")]] <<if $fuckdolls >= 10>> - [[(x10)|Buy Slaves][$fuckdolls-=10,$menialDemandFactor-=10,$cash+=menialSlaveCost(-10)*20]] + [[(x10)|Buy Slaves][$fuckdolls-=10,$menialDemandFactor-=10,cashX((menialSlaveCost(-10)*20), "menialTransfer")]] <<if $fuckdolls >= 100>> - [[(x100)|Buy Slaves][$fuckdolls-=100,$menialDemandFactor-=100,$cash+=menialSlaveCost(-100)*200]] + [[(x100)|Buy Slaves][$fuckdolls-=100,$menialDemandFactor-=100,cashX((menialSlaveCost(-100)*200), "menialTransfer")]] <</if>> <</if>> [[(all)|Buy Slaves][$cash+=$fuckdolls*(menialSlaveCost(-$fuckdolls)*2),$menialDemandFactor-=$fuckdolls,$fuckdolls = 0]] @@ -417,34 +417,31 @@ The market price of standard Fuckdolls is <<print cashFormat(_menialPrice*2)>>. <br>You do not own any standard bioreactors. <</if>> <<if ($menialBioreactors > 0) || ($arcologies[0].FSPaternalist == "unset")>> -The market price of standard bioreactors is <<print cashFormat((_menialPrice-100))>>. -<<set _optionsBreak = 0>> -<<if _bulkMax > 0>> + The market price of standard bioreactors is <<print cashFormat((_menialPrice-100))>>. + <<set _optionsBreak = 0>> + <<if _bulkMax > 0>> <<if $arcologies[0].FSPaternalist == "unset" && $cash > _menialPrice+100>> - [[Buy|Buy Slaves][$menialBioreactors+=1,$menialSupplyFactor-=1,$cash-=(_menialPrice+100)]] + [[Buy|Buy Slaves][$menialBioreactors+=1,$menialSupplyFactor-=1,cashX(forceNeg(_menialPrice+100), "menialTransfer")]] <<if $cash > (menialSlaveCost(10)-100)*10>> - [[(x10)|Buy Slaves][$menialBioreactors+=10,$menialSupplyFactor-=10,$cash-=(menialSlaveCost(10)-100)*10]] + [[(x10)|Buy Slaves][$menialBioreactors+=10,$menialSupplyFactor-=10,cashX(forceNeg((menialSlaveCost(10)-100)*10), "menialTransfer")]] <</if>> <<if $cash > (menialSlaveCost(100)-100)*100>> - [[(x100)|Buy Slaves][$menialBioreactors+=100,$menialSupplyFactor-=100,$cash-=(menialSlaveCost(100)-100)*100]] + [[(x100)|Buy Slaves][$menialBioreactors+=100,$menialSupplyFactor-=100,cashX(forceNeg((menialSlaveCost(100)-100)*100), "menialTransfer")]] <</if>> <<if $cash > (_menialPrice-99)*2>> <<set _bioreactorBulkPremium = Math.trunc(1+ Math.clamp($cash/(_menialPrice-99),0,_bulkMax)/400)>> - [[(max)|Buy Slaves][$menialBioreactors+=Math.trunc(Math.clamp($cash/(_menialPrice-99+_bioreactorBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice-99+_bioreactorBulkPremium),0,_bulkMax)),$cash-=Math.trunc(Math.clamp($cash/(_menialPrice-99+_bioreactorBulkPremium),0,_bulkMax))*(_menialPrice-99+_bioreactorBulkPremium)]] + [[(max)|Buy Slaves][$menialBioreactors+=Math.trunc(Math.clamp($cash/(_menialPrice-99+_bioreactorBulkPremium),0,_bulkMax)),$menialSupplyFactor-=Math.trunc(Math.clamp($cash/(_menialPrice-99+_bioreactorBulkPremium),0,_bulkMax)),cashX(forceNeg(Math.trunc(Math.clamp($cash/(_menialPrice-99+_bioreactorBulkPremium),0,_bulkMax))*(_menialPrice-99+_bioreactorBulkPremium)), "menialTransfer")]] <</if>> - //Bulk transactions may require offering a premium.// - <<set _optionsBreak = 1>> <</if>> -<</if>> -<<if $menialBioreactors >= 1>> - <<if _optionsBreak>>|<</if>> - [[Sell|Buy Slaves][$menialBioreactors-=1,$menialDemandFactor-=1,$cash+=(_menialPrice-100)]] + <<if $menialBioreactors >= 1>> + <<if _optionsBreak>>|<</if>> + [[Sell|Buy Slaves][$menialBioreactors-=1,$menialDemandFactor-=1,cashX((_menialPrice-100), "menialTransfer")]] <<if $menialBioreactors >= 10>> - [[(x10)|Buy Slaves][$menialBioreactors-=10,$menialDemandFactor-=10,$cash+=(menialSlaveCost(-10)-100)*10]] + [[(x10)|Buy Slaves][$menialBioreactors-=10,$menialDemandFactor-=10,cashX(((menialSlaveCost(-10)-100)*10), "menialTransfer")]] <<if $menialBioreactors >= 100>> - [[(x100)|Buy Slaves][$menialBioreactors-=100,$menialDemandFactor-=100,$cash+=(menialSlaveCost(-100)-100)*100]] + [[(x100)|Buy Slaves][$menialBioreactors-=100,$menialDemandFactor-=100,cashX(((menialSlaveCost(-100)-100)*100), "menialTransfer")]] <</if>> <</if>> - [[(all)|Buy Slaves][$cash+=$menialBioreactors*(menialSlaveCost(-$menialBioreactors)-100),$menialDemandFactor-=$menialBioreactors,$menialBioreactors = 0]] + [[(all)|Buy Slaves][cashX(($menialBioreactors*(menialSlaveCost(-$menialBioreactors)-100)), "menialTransfer"),$menialDemandFactor-=$menialBioreactors,$menialBioreactors = 0]] <</if>> <</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 4de8d1a2a64f25d514cd0acd7beef44b2408e302..297d35349df0bd3594ab2026ef991242a9b2c62e 100644 --- a/src/uncategorized/corporationDevelopments.tw +++ b/src/uncategorized/corporationDevelopments.tw @@ -1,1662 +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>> - <<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 $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 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 _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 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 _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>> - -<</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> - -<<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>> + <<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>> - <<set $generalAssetPrice -= 1>> + <<set _corpDivWhoreProc = 0>> <</if>> + <<set $corpDivWhoreSlaves -= _corpDivWhoreProc>> <</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>> - <</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> -<<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>> - <</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> +/*division output and moving slaves around*/ +<<set _corpDivBreakSlavesRoom = corpDivBreakSlavesRoom(), +_corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom(), +_corpDivTrainSlavesRoom = corpDivTrainSlavesRoom(), +_corpDivArcadeSlavesRoom = corpDivArcadeSlavesRoom(), +_corpDivMenialSlavesRoom = corpDivMenialSlavesRoom(), +_corpDivDairySlavesRoom = corpDivDairySlavesRoom(), +_corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>> -<<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>> +<<if $corpDivExtra > 0>> + <br>Extralegal Enslavement: The division + <<if $mercenariesHelpCorp > 0>> + @@.green;acquired <<print _corpDivExtraSlaves>> slaves@@ with the help of your mercenaries. <<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>> + @@.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="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>> - <</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 $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 "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>> - <</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 $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>> - | <<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>> - <</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>> -<</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 $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>> <</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 $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<<elseif $corpDivTrainSlaves2 == 1>>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>> <</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 $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 $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*/ \ No newline at end of file diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index fd8914d6b9080ac13a432d5181c3928dbaeffac8..9b13f74910bfede59f06222751703528a6994fda 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -291,7 +291,7 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <<if $lastWeeksCashIncome.milked || $lastWeeksCashExpenses.milked>> <tr> - <td>Milked</td> + <td>Milked</td> <td> <<if Math.trunc($lastWeeksCashIncome.milked) > 0>> @@.yellowgreen;+<<print cashFormat(Math.trunc($lastWeeksCashIncome.milked))>>@@ @@ -752,13 +752,10 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <td><i>[[Research Lab][$nextButton = "Back to Budget", $nextLink = "Costs Budget"]] ($researchLab.menials menial slaves)</i></td> <td></td> <td><i>@@.red;-+<<print cashFormat(Math.trunc(100*$researchLab.menials))>>@@</i></td> - <td><i>@@.red;-<<print cashFormat(Math.abs(Math.trunc(100*$researchLab.menials))>>@@</i></td> + <td><i>@@.red;-<<print cashFormat(Math.abs(Math.trunc(100*$researchLab.menials)))>>@@</i></td> </tr> <</if>> <</if>> - - - <<if $lastWeeksCashIncome.cyberMod || $lastWeeksCashExpenses.cyberMod>> <tr> @@ -1828,9 +1825,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))>>@@ @@ -2466,7 +2463,7 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ @@.yellowgreen;+<<print cashFormat(Math.trunc($lastWeeksCashProfits.Total))>>@@ <<else>> @@.red;-<<print cashFormat(Math.abs(Math.trunc($lastWeeksCashProfits.Total)))>>@@ - <</if>> + <</if>> </td> </tr> @@ -2480,11 +2477,9 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <<else>> @@.red;<<print cashFormat($costs)>>@@ <</if>></td> - <td></td> + <td></td> </tr> - - <tr><td></td></tr> <tr> <td>Last week actuals</td> @@ -2530,7 +2525,7 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <</if>> <<if $lastWeeksErrors !== "Errors:">> - <<link "Reset">> + <<link "Reset">> <<set $lastWeeksErrors = "Errors: ">> <</link>> @@.red;<<print $lastWeeksErrors>>@@ diff --git a/src/uncategorized/costsReport.tw b/src/uncategorized/costsReport.tw index 8b3dc93b64ccda33b54e309f809725e8f30f9971..8d86c7867b389130a0fab02c65056a939fedf09f 100644 --- a/src/uncategorized/costsReport.tw +++ b/src/uncategorized/costsReport.tw @@ -114,6 +114,12 @@ your personal living expenses are @@.yellowgreen;<<print cashFormat(Math.trunc($ @@.yellowgreen;<<print cashFormat(_citizenRetirementMenialsCost)>>@@ <</if>> +<<if $rations > 0>> + <<set _rationsPrice = ($rations*1000)>> /* this number may need tweaking *//* + <br>__Rations__: + @@.yellowgreen;<<print cashFormat(_rationsPrice)>>@@ +<</if>> + <<if $brothel > 0 || $club > 0 || $arcade > 0 || $dairy > 0 || $farmyard > 0>> <br><br>__Arcology Building Maintenance__: <<if $brothel > 0>> @@ -150,7 +156,7 @@ your personal living expenses are @@.yellowgreen;<<print cashFormat(Math.trunc($ <<set _arcologyCosts += ($bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren)*100>> <</if>> <</if>> - <<if $farmyard > 0>> /*TODO: this will also need to be expanded*/ + <<if $farmyard > 0>> /*TODO: this will also need to be expanded */ /*<br> Farmyard: @@.yellowgreen;<<print cashFormat($farmyard*$facilityCost)>>@@ <<set _arcologyCosts += $farmyard*$facilityCost>> @@ -166,7 +172,7 @@ $nursery > 0 || $masterSuiteUpgradePregnancy > 0 || $incubator > 0 || Servants' Quarters: @@.yellowgreen;<<print cashFormat((0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost))>>@@ <<set _arcologyCosts += 0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost>> <</if>> - <<if $nursery > 0>> /*TODO: this will definitely need to be expanded to take into account the number of children and other factors*/ + <<if $nursery > 0>> /*TODO: this will definitely need to be expanded to take into account the number of children and other factors */ /*<br> Nursery: @@.yellowgreen;<<print cashFormat($nursery*$facilityCost)>>@@ <<set _arcologyCosts += $nursery*$facilityCost>> diff --git a/src/uncategorized/costsWidgets.tw b/src/uncategorized/costsWidgets.tw index 24888e8d0652796342ea103306b18653c66e4ad5..8b3194756d58c9ef125a77e6aff1b515f45b112c 100644 --- a/src/uncategorized/costsWidgets.tw +++ b/src/uncategorized/costsWidgets.tw @@ -145,7 +145,7 @@ <br> <i>Specialized dietary adjustments and concentrated, quick to digest food required to support absurd multiples:</i> <<print cashFormat($foodCost*$args[0].pregType*3*_pAccMult)>> <<set _individualCosts += $foodCost*$args[0].pregType*3*_pAccMult>> <<elseif $args[0].pregType >= 100>> - <br> <i>Specialized dietary requirements and feeding methods to support absurd multiples:</i> + <br> <i>Specialized dietary requirements and feeding methods to support absurd multiples:</i> @@.yellowgreen;<<print cashFormat($foodCost*$args[0].pregType*5*_pAccMult)>>@@ <<set _individualCosts += $foodCost*$args[0].pregType*5*_pAccMult>> <</if>> @@ -404,7 +404,7 @@ <</if>> <</if>> <</if>> - + <br> <<if $args[0].origin != 0>> $args[0].origin<br> @@ -438,9 +438,9 @@ You have no record of her making you any ¤. <<set _Income = 0>> <</if>> - + <br> - Overall, + Overall, <<if (_Income + _Cost + _Expense) > 0>> you have made ¤@@.yellowgreen;<<print (_Income + _Cost + _Expense)>>@@ net from her labors. <<elseif (_Income + _Cost + _Expense) == 0>> diff --git a/src/uncategorized/dairy.tw b/src/uncategorized/dairy.tw index ada10207029b4207b7e64c9c939fc3e5220b3960..27bda754aa70a8f3fa2d113c367e34e85375e5ad 100644 --- a/src/uncategorized/dairy.tw +++ b/src/uncategorized/dairy.tw @@ -329,7 +329,7 @@ DairyRestraintsSetting($dairyRestraintsSetting) <br>$dairyNameCaps can support $dairy milkers. There <<if $dairySlaves == 1>>is<<else>>are<</if>> currently $dairySlaves cow<<if $dairySlaves != 1>>s<</if>>. [[Expand the dairy|Dairy][cashX(forceNeg(_Tmult0), "capEx"), $dairy += 5, $PC.engineering += .1]] //Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs// <<set _Tmult1 = Math.trunc(10000*$upgradeMultiplierArcology)>> -<br> +<br><br> <<if $dairyFeedersUpgrade == 1>> The milking machines can hold feeders in slaves' mouths and inject drugs into their bodies, ensuring ideal nutrition and production. <br> The feeders are @@ -381,7 +381,7 @@ DairyRestraintsSetting($dairyRestraintsSetting) <</if>> <<set _Tmult2 = Math.trunc(5000*$upgradeMultiplierArcology)>> -<<if ($dairyPregUpgrade == 2) || ($dairyStimulatorsSetting == 2)>> +<<if ($dairyPregSetting == 2) || ($dairyStimulatorsSetting == 2)>> <br> <<if $dairyPrepUpgrade == 1>> $dairyNameCaps features a preparatory raper designed to gape slaves for integration. diff --git a/src/uncategorized/economics.tw b/src/uncategorized/economics.tw index 7887fed69159395ab3469f5fae13733319270254..2f84aaa5a35682433c318707dda4e059ec6d3e49 100644 --- a/src/uncategorized/economics.tw +++ b/src/uncategorized/economics.tw @@ -27,15 +27,9 @@ <<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/endWeek.tw b/src/uncategorized/endWeek.tw index 65141a7bde25c3abdde2850b2505106328751029..e411167b9566b8053e12f64c3ada1f2e3091992f 100644 --- a/src/uncategorized/endWeek.tw +++ b/src/uncategorized/endWeek.tw @@ -109,7 +109,25 @@ <</if>> /% End section: ensure minimum age is set. %/ -<<set $TSS.schoolSale = 0, $GRI.schoolSale = 0, $SCP.schoolSale = 0, $LDE.schoolSale = 0, $TGA.schoolSale = 0, $HA.schoolSale = 0, $TFS.schoolSale = 0, $TCR.schoolSale = 0, $independenceDay = 0, $showEncyclopedia = 0, $racialVarieties = [], $shelterGirlsIDs = [], $oldWeek = $week, $cashLastWeek = $cash>> +<<set $TSS.schoolSale = 0, $GRI.schoolSale = 0, $SCP.schoolSale = 0, $LDE.schoolSale = 0, $TGA.schoolSale = 0, $HA.schoolSale = 0, $TFS.schoolSale = 0, $TCR.schoolSale = 0, $independenceDay = 0, $showEncyclopedia = 0, $racialVarieties = [], $shelterGirlsIDs = [], $oldWeek = $week, $cashLastWeek = $cash, $foodLastWeek = $food>> + +<<if $foodMarket > 0>> + <<for _f = 0; _f < $slaves.length; _f++>> + <<if $slaves[_f].diet == "restricted">> + <<set $foodConsumption += 1.8>> + <<elseif $slaves[_f].diet == "slimming">> + <<set $foodConsumption += 1.9>> + <<elseif $slaves[_f].diet == "muscle building">> + <<set $foodConsumption += 2.1>> + <<elseif $slaves[_f].diet == "fattening">> + <<set $foodConsumption += 2.2>> + <<else>> + <<set $foodConsumption += 2>> + <</if>> + <</for>> + + <<set $food -= $foodConsumption>> +<</if>> <<setupLastWeeksCash>> <<set $lastWeeksErrors = "Errors:">> diff --git a/src/uncategorized/main.tw b/src/uncategorized/main.tw index 09b8c24e2b4cc7029f7d48c6c9c07ee2abf3fd7c..76bbf30893a7a267eeec2de7931f281d46562779 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 bb72d2a509a6e8321aa1f64e36c70509d24190d7..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>> @@ -267,7 +165,7 @@ __Special Arcology Upgrades__ <br><br> -Your slaves have participated in approximately <<print commaNum($oralTotal+$vaginalTotal+$analTotal)>> sexual encounters: <<print commaNum($oralTotal)>> primarily oral, <<print commaNum($vaginalTotal)>> vanilla, <<print commaNum($mammaryTotal)>> mammary, <<print commaNum($analTotal)>> anal, and <<print commaNum($penetrativeTotal)>> with the slave penetrating another. They have produced about <<print commaNum($milkTotal)>> liters of marketable milk, <<if $seeDicks != 0>>about <<print commaNum($cumTotal)>> deciliters of marketable cum, <</if>>and have given birth <<print commaNum($birthsTotal)>> times. +Your slaves have participated in approximately <<print commaNum($oralTotal+$vaginalTotal+$analTotal)>> sexual encounters: <<print commaNum($oralTotal)>> primarily oral, <<print commaNum($vaginalTotal)>> vanilla, <<print commaNum($mammaryTotal)>> mammary, <<print commaNum($analTotal)>> anal, and <<print commaNum($penetrativeTotal)>> with the slave penetrating another. They have produced about <<print commaNum($milkTotal)>> liters of marketable milk, <<if $seeDicks != 0>>about <<print commaNum($cumTotal)>> deciliters of marketable cum, <</if>>and have given birth <<print commaNum($birthsTotal)>> times. <<if $pitKillsTotal > 0>>$pitKillsTotal slaves have died in your fighting pit.<</if>> <<if $fuckdollsSold > 0>>$fuckdollsSold mindbroken arcade slaves have been converted into Fuckdolls and sold.<</if>> diff --git a/src/uncategorized/marketsReport.tw b/src/uncategorized/marketsReport.tw index 042ed6ce76bc0bbaec94f07cc2c6ffd9169c58f9..5706634f77f1b63902d47f39cdd5369e471fb3cb 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..1ca6964a9ef8f5b02954aa531a0e5e475aab4dd4 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 $corpSpecImplants == 0>> + <<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/newSlaveIntro.tw b/src/uncategorized/newSlaveIntro.tw index a03ba55433ce1cf5b35e9bb9a1812043dd6196f2..a3e7b35ecc4c6c22dee53078fdd6896997fb9a81 100644 --- a/src/uncategorized/newSlaveIntro.tw +++ b/src/uncategorized/newSlaveIntro.tw @@ -1,5 +1,7 @@ :: New Slave Intro [nobr] +/* TODO: rewrite this to take the slave's history into account */ + <<set $nextButton = "Continue", $showEncyclopedia = 0>> <<if $PC.slaving < 100 && random($PC.slaving,100) > 50>><<set $PC.slaving += .5>><<else>><<set $PC.slaving += .1>><</if>> diff --git a/src/uncategorized/nonRandomEvent.tw b/src/uncategorized/nonRandomEvent.tw index b8722e826836f10d3bba3a3ba8bf5c1214a6b64f..7b78eb18d7294e431f2d689c278856f32f9e59de 100644 --- a/src/uncategorized/nonRandomEvent.tw +++ b/src/uncategorized/nonRandomEvent.tw @@ -60,6 +60,12 @@ <</if>> <<elseif (_effectiveWeek == 46) && ($mercenaries > 0)>> <<goto "P raid invitation">> +<<elseif (_effectiveWeek == 48) && ($cheatMode == 1)>> + <<set $foodCrisis = 1>> + <<goto "P food crisis">> +<<elseif (_effectiveWeek == 50) && ($rations > 0)>> + <<set $foodCrisis = 2>> + <<goto "P food crisis">> <<elseif (_effectiveWeek == 52) && ($seeHyperPreg == 1) && $seePreg != 0 && $badB != 1>> <<set _valid = $slaves.find(function(s) { return s.drugs == "breast injections" || s.drugs == "hyper breast injections" || s.drugs == "intensive breast injections"; })>> <<if def _valid>> @@ -78,6 +84,9 @@ <<goto "P underground railroad">> <<elseif (_effectiveWeek == 58) && ($traitor == 0)>> <<goto "P bombing">> +<<elseif (_effectiveWeek == 60) && ($rations > 0)>> + <<set $foodCrisis = 3>> + <<goto "P food crisis">> <<elseif (_effectiveWeek == 61) && ($traitor != 0)>> <<goto "P traitor message">> <<elseif (_effectiveWeek == 62) && ($mercenaries < 3)>> @@ -122,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 db94ca6b950ecd2f9f2b6d913d2befa03806c28d..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 @@ -383,9 +374,9 @@ Assignment performance vignettes on the end week report are <<if $seeDicksAffectsPregnancy == 0>> <br> <<if $adamPrinciple == 1>> - XX slaves ''cannot'' have sons. [[Enable|Options][$adamPrinciple = 0]] + XX slaves ''cannot'' have sons. [[Disable Adam Principle|Options][$adamPrinciple = 0]] <<else>> - XX slaves ''can'' have sons. [[Disable|Options][$adamPrinciple = 0]] + XX slaves ''can'' have sons. [[Enable Adam Principle|Options][$adamPrinciple = 1]] <</if>> //Will not affect existing pregnancies already in-game.// <</if>> 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/pMercenaries.tw b/src/uncategorized/pMercenaries.tw index a26babb9abea982ee7776c9beed5e214954d8e1e..ee0201dfc9d07d3810006e306f1a67ea4f3cfe67 100644 --- a/src/uncategorized/pMercenaries.tw +++ b/src/uncategorized/pMercenaries.tw @@ -23,6 +23,7 @@ The budgetary difficulty many old world countries are in has resulted in unemplo <br><br> <span id="result"> +/* the ordering here is bothering me - I feel like it should go from greatest to least */ <<link "Quarter a squad in the arcology">> <<replace "#result">> You hire some reputable mercenaries, kit them in excellent gear, and quarter them in $arcologies[0].name. The sight of armed men on patrol has @@.red;offended some of the more free-spirited citizens@@ of $arcologies[0].name. diff --git a/src/uncategorized/pSnatchAndGrabResult.tw b/src/uncategorized/pSnatchAndGrabResult.tw index d693039a1820b7a7261a83db2441f8a91d64b899..5161465af1a5233a311a24021c7f826d1633dce4 100644 --- a/src/uncategorized/pSnatchAndGrabResult.tw +++ b/src/uncategorized/pSnatchAndGrabResult.tw @@ -128,7 +128,7 @@ <<slaveCost $activeSlave>> <<set $slaveCost -= 1000>> <<setLocalPronouns $activeSlave>> -<<set $activeSlave.slaveCost = 10000>> +<<set $activeSlave.slaveCost = -10000>> In the middle of the night, there is a polite knock on your penthouse door. You are alerted by $assistantName, who observes with some irritation that the mercenary who knocked has gone, has left a large case outside the door, and has satisfied the security systems that the case contains nothing hazardous. diff --git a/src/uncategorized/persBusiness.tw b/src/uncategorized/persBusiness.tw index bf1941f383132162de3f448f2ebaf0155362d996..57fe5e26186d26c4b691cc8b9bc75fb0d0669062 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/personalAssistantOptions.tw b/src/uncategorized/personalAssistantOptions.tw index 0da098244b72b455bd1cd3ffc2319db2cab78488..3f76f8874d05615ca00f79e8b43521cbbbe5b4ee 100644 --- a/src/uncategorized/personalAssistantOptions.tw +++ b/src/uncategorized/personalAssistantOptions.tw @@ -653,166 +653,166 @@ _HeA is currently using the ''$assistantAppearance'' avatar. <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> <<set _seed.push("slimness enthusiasm")>> <</if>> <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> <<if _seed.length > 0>> - <<set _desc = "">> - <<for _i = 0; _i < _seed.length; _i++>> - <<set _desc = (_desc + _seed[_i])>> - <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> - <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> - <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> - <</if>> - <</for>> - A good emblem for _desc - <</if>> - <</if>> - <br> - <</if>> - <<if $seeDicks != 0>> - <<if $assistantAppearance != "incubus">> [[Incubus|Personal assistant options][$assistantAppearance = "incubus"]] - <<if $PAPublic == 1>> - <<set _seed = []>> - <<if $arcologies[0].FSRestart != "unset">> <<set _seed.push("eugenics")>> <</if>> - <<if $arcologies[0].FSGenderRadicalist != "unset">> <<set _seed.push("gender radicalism")>> <</if>> - <<if $arcologies[0].FSDegradationist != "unset">> <<set _seed.push("degradationism")>> <</if>> - <<if $arcologies[0].FSBodyPurist != "unset">> <<set _seed.push("body purism")>> <</if>> - <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> - <<if $arcologies[0].FSMaturityPreferentialist != "unset">> <<set _seed.push("maturity preferentialism")>> <</if>> - <<if $arcologies[0].FSAssetExpansionist != "unset">> <<set _seed.push("asset expansionism")>> <</if>> - <<if $arcologies[0].FSPastoralist != "unset">> <<set _seed.push("pastoralism")>> <</if>> - <<if $arcologies[0].FSPhysicalIdealist != "unset">> <<set _seed.push("physical idealism")>> <</if>> - <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> - <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> - <<if $arcologies[0].FSRomanRevivalist != "unset">> <<set _seed.push("Roman revivalism")>> <</if>> - <<if $arcologies[0].FSAztecRevivalist != "unset">> <<set _seed.push("Aztec revivalism")>> <</if>> - <<if $arcologies[0].FSEgyptianRevivalist != "unset">> <<set _seed.push("Egyptian revivalism")>> <</if>> - <<if $arcologies[0].FSEdoRevivalist != "unset">> <<set _seed.push("Edo revivalism")>> <</if>> - <<if $arcologies[0].FSArabianRevivalist != "unset">> <<set _seed.push("Arabian revivalism")>> <</if>> - <<if $arcologies[0].FSChineseRevivalist != "unset">> <<set _seed.push("Chinese revivalism")>> <</if>> - <<if _seed.length > 0>> - <<set _desc = "">> - <<for _i = 0; _i < _seed.length; _i++>> - <<set _desc = (_desc + _seed[_i])>> - <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> - <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> - <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> - <</if>> - <</for>> - A good emblem for _desc - <</if>> - <</if>> - <br> - <</if>> - <</if>> - <<if $assistantAppearance != "succubus">> [[Succubus|Personal assistant options][$assistantAppearance = "succubus"]] - <<if $PAPublic == 1>> - <<set _seed = []>> - <<if $arcologies[0].FSSupremacist != "unset">> <<set _seed.push($arcologies[0].FSSupremacistRace + " supremacy")>> <</if>> - <<if $arcologies[0].FSRepopulationFocus != "unset">> <<set _seed.push("repopulationism")>> <</if>> - <<if $arcologies[0].FSRestart != "unset">> <<set _seed.push("eugenics")>> <</if>> - <<if $arcologies[0].FSGenderRadicalist != "unset">> <<set _seed.push("gender radicalism")>> <</if>> - <<if $arcologies[0].FSGenderFundamentalist != "unset">> <<set _seed.push("gender fundamentalism")>> <</if>> - <<if $arcologies[0].FSDegradationist != "unset">> <<set _seed.push("degradationism")>> <</if>> - <<if $arcologies[0].FSBodyPurist != "unset">> <<set _seed.push("body purism")>> <</if>> - <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> - <<if $arcologies[0].FSYouthPreferentialist != "unset">> <<set _seed.push("youth preferentialism")>> <</if>> - <<if $arcologies[0].FSMaturityPreferentialist != "unset">> <<set _seed.push("maturity preferentialism")>> <</if>> - <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> <<set _seed.push("slimness enthusiasm")>> <</if>> - <<if $arcologies[0].FSAssetExpansionist != "unset">> <<set _seed.push("asset expansionism")>> <</if>> - <<if $arcologies[0].FSPastoralist != "unset">> <<set _seed.push("pastoralism")>> <</if>> - <<if $arcologies[0].FSPhysicalIdealist != "unset">> <<set _seed.push("physical idealism")>> <</if>> - <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> - <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> - <<if $arcologies[0].FSRomanRevivalist != "unset">> <<set _seed.push("Roman revivalism")>> <</if>> - <<if $arcologies[0].FSAztecRevivalist != "unset">> <<set _seed.push("Aztec revivalism")>> <</if>> - <<if $arcologies[0].FSEgyptianRevivalist != "unset">> <<set _seed.push("Egyptian revivalism")>> <</if>> - <<if $arcologies[0].FSEdoRevivalist != "unset">> <<set _seed.push("Edo revivalism")>> <</if>> - <<if $arcologies[0].FSArabianRevivalist != "unset">> <<set _seed.push("Arabian revivalism")>> <</if>> - <<if $arcologies[0].FSChineseRevivalist != "unset">> <<set _seed.push("Chinese revivalism")>> <</if>> - <<if _seed.length > 0>> - <<set _desc = "">> - <<for _i = 0; _i < _seed.length; _i++>> - <<set _desc = (_desc + _seed[_i])>> - <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> - <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> - <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> - <</if>> - <</for>> - A good emblem for _desc - <</if>> - <</if>> - <br> - <</if>> - <<if $assistantAppearance != "imp">> [[Imp|Personal assistant options][$assistantAppearance = "imp"]] - <<if $PAPublic == 1>> - <<set _seed = []>> - <<if $arcologies[0].FSSubjugationist != "unset">> <<set _seed.push($arcologies[0].FSSubjugationistRace + " subjugation")>> <</if>> - <<if $arcologies[0].FSDegradationist != "unset">> <<set _seed.push("degradationism")>> <</if>> - <<if $arcologies[0].FSYouthPreferentialist != "unset">> <<set _seed.push("youth preferentialism")>> <</if>> - <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> <<set _seed.push("slimness enthusiasm")>> <</if>> - <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> - <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> - <<if _seed.length > 0>> - <<set _desc = "">> - <<for _i = 0; _i < _seed.length; _i++>> - <<set _desc = (_desc + _seed[_i])>> - <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> - <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> - <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> - <</if>> - <</for>> - A good emblem for _desc - <</if>> - <</if>> - <br> - <</if>> - <<if $assistantAppearance != "witch">> [[Bonus: Witch|Personal assistant options][$assistantAppearance = "witch"]] - <<if $PAPublic == 1>> - <<set _seed = []>> - <<if $arcologies[0].FSRepopulationFocus != "unset">> <<set _seed.push("repopulationism")>> <</if>> - <<if $arcologies[0].FSRestart != "unset">> <<set _seed.push("eugenics")>> <</if>> - <<if $arcologies[0].FSGenderRadicalist != "unset">> <<set _seed.push("gender radicalism")>> <</if>> - <<if $arcologies[0].FSGenderFundamentalist != "unset">> <<set _seed.push("gender fundamentalism")>> <</if>> - <<if $arcologies[0].FSBodyPurist != "unset">> <<set _seed.push("body purism")>> <</if>> - <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> - <<if $arcologies[0].FSYouthPreferentialist != "unset">> <<set _seed.push("youth preferentialism")>> <</if>> - <<if $arcologies[0].FSMaturityPreferentialist != "unset">> <<set _seed.push("maturity preferentialism")>> <</if>> - <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> <<set _seed.push("slimness enthusiasm")>> <</if>> - <<if $arcologies[0].FSAssetExpansionist != "unset">> <<set _seed.push("asset expansionism")>> <</if>> - <<if $arcologies[0].FSPastoralist != "unset">> <<set _seed.push("pastoralism")>> <</if>> - <<if $arcologies[0].FSPhysicalIdealist != "unset">> <<set _seed.push("physical idealism")>> <</if>> - <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> - <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> - <<if _seed.length > 0>> - <<set _desc = "">> - <<for _i = 0; _i < _seed.length; _i++>> - <<set _desc = (_desc + _seed[_i])>> - <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> - <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> - <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> - <</if>> - <</for>> - A good emblem for _desc - <</if>> - <</if>> - <br> - <</if>> - <<if $assistantAppearance != "ERROR_1606_APPEARANCE_FILE_CORRUPT">> @@.link;WARNING! File c@@[[o|Personal assistant options][$assistantAppearance = "ERROR_1606_APPEARANCE_FILE_CORRUPT"]]@@.link;rrupt!@@ - <<if $PAPublic == 1>> - <<set _seed = []>> - <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> - <<if _seed.length > 0>> - <<set _desc = "">> - <<for _i = 0; _i < _seed.length; _i++>> - <<set _desc = (_desc + _seed[_i])>> - <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> - <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> - <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> - <</if>> - <</for>> - A good emblem for _desc - <</if>> - <</if>> - <br> - <</if>> + <<set _desc = "">> + <<for _i = 0; _i < _seed.length; _i++>> + <<set _desc = (_desc + _seed[_i])>> + <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> + <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> + <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> + <</if>> + <</for>> + A good emblem for _desc + <</if>> + <</if>> + <br> + <</if>> + <<if $seeDicks != 0>> + <<if $assistantAppearance != "incubus">> [[Incubus|Personal assistant options][$assistantAppearance = "incubus"]] + <<if $PAPublic == 1>> + <<set _seed = []>> + <<if $arcologies[0].FSRestart != "unset">> <<set _seed.push("eugenics")>> <</if>> + <<if $arcologies[0].FSGenderRadicalist != "unset">> <<set _seed.push("gender radicalism")>> <</if>> + <<if $arcologies[0].FSDegradationist != "unset">> <<set _seed.push("degradationism")>> <</if>> + <<if $arcologies[0].FSBodyPurist != "unset">> <<set _seed.push("body purism")>> <</if>> + <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> + <<if $arcologies[0].FSMaturityPreferentialist != "unset">> <<set _seed.push("maturity preferentialism")>> <</if>> + <<if $arcologies[0].FSAssetExpansionist != "unset">> <<set _seed.push("asset expansionism")>> <</if>> + <<if $arcologies[0].FSPastoralist != "unset">> <<set _seed.push("pastoralism")>> <</if>> + <<if $arcologies[0].FSPhysicalIdealist != "unset">> <<set _seed.push("physical idealism")>> <</if>> + <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> + <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> + <<if $arcologies[0].FSRomanRevivalist != "unset">> <<set _seed.push("Roman revivalism")>> <</if>> + <<if $arcologies[0].FSAztecRevivalist != "unset">> <<set _seed.push("Aztec revivalism")>> <</if>> + <<if $arcologies[0].FSEgyptianRevivalist != "unset">> <<set _seed.push("Egyptian revivalism")>> <</if>> + <<if $arcologies[0].FSEdoRevivalist != "unset">> <<set _seed.push("Edo revivalism")>> <</if>> + <<if $arcologies[0].FSArabianRevivalist != "unset">> <<set _seed.push("Arabian revivalism")>> <</if>> + <<if $arcologies[0].FSChineseRevivalist != "unset">> <<set _seed.push("Chinese revivalism")>> <</if>> + <<if _seed.length > 0>> + <<set _desc = "">> + <<for _i = 0; _i < _seed.length; _i++>> + <<set _desc = (_desc + _seed[_i])>> + <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> + <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> + <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> + <</if>> + <</for>> + A good emblem for _desc + <</if>> + <</if>> + <br> + <</if>> + <</if>> + <<if $assistantAppearance != "succubus">> [[Succubus|Personal assistant options][$assistantAppearance = "succubus"]] + <<if $PAPublic == 1>> + <<set _seed = []>> + <<if $arcologies[0].FSSupremacist != "unset">> <<set _seed.push($arcologies[0].FSSupremacistRace + " supremacy")>> <</if>> + <<if $arcologies[0].FSRepopulationFocus != "unset">> <<set _seed.push("repopulationism")>> <</if>> + <<if $arcologies[0].FSRestart != "unset">> <<set _seed.push("eugenics")>> <</if>> + <<if $arcologies[0].FSGenderRadicalist != "unset">> <<set _seed.push("gender radicalism")>> <</if>> + <<if $arcologies[0].FSGenderFundamentalist != "unset">> <<set _seed.push("gender fundamentalism")>> <</if>> + <<if $arcologies[0].FSDegradationist != "unset">> <<set _seed.push("degradationism")>> <</if>> + <<if $arcologies[0].FSBodyPurist != "unset">> <<set _seed.push("body purism")>> <</if>> + <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> + <<if $arcologies[0].FSYouthPreferentialist != "unset">> <<set _seed.push("youth preferentialism")>> <</if>> + <<if $arcologies[0].FSMaturityPreferentialist != "unset">> <<set _seed.push("maturity preferentialism")>> <</if>> + <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> <<set _seed.push("slimness enthusiasm")>> <</if>> + <<if $arcologies[0].FSAssetExpansionist != "unset">> <<set _seed.push("asset expansionism")>> <</if>> + <<if $arcologies[0].FSPastoralist != "unset">> <<set _seed.push("pastoralism")>> <</if>> + <<if $arcologies[0].FSPhysicalIdealist != "unset">> <<set _seed.push("physical idealism")>> <</if>> + <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> + <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> + <<if $arcologies[0].FSRomanRevivalist != "unset">> <<set _seed.push("Roman revivalism")>> <</if>> + <<if $arcologies[0].FSAztecRevivalist != "unset">> <<set _seed.push("Aztec revivalism")>> <</if>> + <<if $arcologies[0].FSEgyptianRevivalist != "unset">> <<set _seed.push("Egyptian revivalism")>> <</if>> + <<if $arcologies[0].FSEdoRevivalist != "unset">> <<set _seed.push("Edo revivalism")>> <</if>> + <<if $arcologies[0].FSArabianRevivalist != "unset">> <<set _seed.push("Arabian revivalism")>> <</if>> + <<if $arcologies[0].FSChineseRevivalist != "unset">> <<set _seed.push("Chinese revivalism")>> <</if>> + <<if _seed.length > 0>> + <<set _desc = "">> + <<for _i = 0; _i < _seed.length; _i++>> + <<set _desc = (_desc + _seed[_i])>> + <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> + <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> + <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> + <</if>> + <</for>> + A good emblem for _desc + <</if>> + <</if>> + <br> + <</if>> + <<if $assistantAppearance != "imp">> [[Imp|Personal assistant options][$assistantAppearance = "imp"]] + <<if $PAPublic == 1>> + <<set _seed = []>> + <<if $arcologies[0].FSSubjugationist != "unset">> <<set _seed.push($arcologies[0].FSSubjugationistRace + " subjugation")>> <</if>> + <<if $arcologies[0].FSDegradationist != "unset">> <<set _seed.push("degradationism")>> <</if>> + <<if $arcologies[0].FSYouthPreferentialist != "unset">> <<set _seed.push("youth preferentialism")>> <</if>> + <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> <<set _seed.push("slimness enthusiasm")>> <</if>> + <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> + <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> + <<if _seed.length > 0>> + <<set _desc = "">> + <<for _i = 0; _i < _seed.length; _i++>> + <<set _desc = (_desc + _seed[_i])>> + <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> + <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> + <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> + <</if>> + <</for>> + A good emblem for _desc + <</if>> + <</if>> + <br> + <</if>> + <<if $assistantAppearance != "witch">> [[Bonus: Witch|Personal assistant options][$assistantAppearance = "witch"]] + <<if $PAPublic == 1>> + <<set _seed = []>> + <<if $arcologies[0].FSRepopulationFocus != "unset">> <<set _seed.push("repopulationism")>> <</if>> + <<if $arcologies[0].FSRestart != "unset">> <<set _seed.push("eugenics")>> <</if>> + <<if $arcologies[0].FSGenderRadicalist != "unset">> <<set _seed.push("gender radicalism")>> <</if>> + <<if $arcologies[0].FSGenderFundamentalist != "unset">> <<set _seed.push("gender fundamentalism")>> <</if>> + <<if $arcologies[0].FSBodyPurist != "unset">> <<set _seed.push("body purism")>> <</if>> + <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> + <<if $arcologies[0].FSYouthPreferentialist != "unset">> <<set _seed.push("youth preferentialism")>> <</if>> + <<if $arcologies[0].FSMaturityPreferentialist != "unset">> <<set _seed.push("maturity preferentialism")>> <</if>> + <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> <<set _seed.push("slimness enthusiasm")>> <</if>> + <<if $arcologies[0].FSAssetExpansionist != "unset">> <<set _seed.push("asset expansionism")>> <</if>> + <<if $arcologies[0].FSPastoralist != "unset">> <<set _seed.push("pastoralism")>> <</if>> + <<if $arcologies[0].FSPhysicalIdealist != "unset">> <<set _seed.push("physical idealism")>> <</if>> + <<if $arcologies[0].FSHedonisticDecadence != "unset">> <<set _seed.push("hedonistic decadence")>> <</if>> + <<if $arcologies[0].FSChattelReligionist != "unset">> <<set _seed.push("chattel religionism")>> <</if>> + <<if _seed.length > 0>> + <<set _desc = "">> + <<for _i = 0; _i < _seed.length; _i++>> + <<set _desc = (_desc + _seed[_i])>> + <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> + <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> + <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> + <</if>> + <</for>> + A good emblem for _desc + <</if>> + <</if>> + <br> + <</if>> + <<if $assistantAppearance != "ERROR_1606_APPEARANCE_FILE_CORRUPT">> @@.link;WARNING! File c@@[[o|Personal assistant options][$assistantAppearance = "ERROR_1606_APPEARANCE_FILE_CORRUPT"]]@@.link;rrupt!@@ + <<if $PAPublic == 1>> + <<set _seed = []>> + <<if $arcologies[0].FSTransformationFetishist != "unset">> <<set _seed.push("transformation fetishism")>> <</if>> + <<if _seed.length > 0>> + <<set _desc = "">> + <<for _i = 0; _i < _seed.length; _i++>> + <<set _desc = (_desc + _seed[_i])>> + <<if (_i < _seed.length-2)>> <<set _desc = (_desc + ", ")>> + <<elseif (_seed.length > 2) && (_i == _seed.length-2)>> <<set _desc = (_desc + ", and ")>> + <<elseif (_seed.length == 2) && (_i == 0)>> <<set _desc = (_desc + " and ")>> + <</if>> + <</for>> + A good emblem for _desc + <</if>> + <</if>> + <br> + <</if>> <</if>> diff --git a/src/uncategorized/randomNonindividualEvent.tw b/src/uncategorized/randomNonindividualEvent.tw index 795540c57673efe5297cb676c0c9d9b2e3872d25..795725397cde149349857f97fee35ff6768ccdb6 100644 --- a/src/uncategorized/randomNonindividualEvent.tw +++ b/src/uncategorized/randomNonindividualEvent.tw @@ -1337,12 +1337,12 @@ <</if>> <<set $REM = []>> - <<if random(1,100) > $slaveCostFactor*40>> + <<if random(1,100) > $slaveCostFactor*50>> <<set $events.push("REM fluctuations")>> <<set $events.push("REM fluctuations")>> <<set $REM = 1>> <</if>> - <<if random(1,100) < $slaveCostFactor*60>> + <<if random(1,100) < $slaveCostFactor*50>> <<set $events.push("REM fluctuations")>> <<set $events.push("REM fluctuations")>> <<set $REM = -1>> 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/remoteSurgery.tw b/src/uncategorized/remoteSurgery.tw index 22c4af15aada0a12d21f3118c522604109f47ab5..5ab846e52799ea86744a8ce4abcbad00a957fd47 100644 --- a/src/uncategorized/remoteSurgery.tw +++ b/src/uncategorized/remoteSurgery.tw @@ -854,6 +854,8 @@ Work on $his sex: <</if>> <</if>> /*closes vag check */ +/* TODO: add a check for slave's eggType */ + <<if ($activeSlave.preg > -2) && ($activeSlave.preg < 1) && ($activeSlave.ovaries != 0 || $activeSlave.mpreg != 0) && ($activeSlave.pubertyXX == 0)>> <br> $He has not had $his first period. @@ -880,9 +882,9 @@ Work on $his sex: <<if ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>> <br> <<if ($activeSlave.pubertyXX == 0)>> - $He has ovaries but has not had $his first period. + $He has <<if ($activeSlave.eggType != "human")>><<print ($activeSlave.eggType)>><</if>> ovaries but has not had $his first period. <<else>> - $He has working ovaries<<if $activeSlave.mpreg>> and a womb attached to $his rectum<</if>>. + $He has working <<if ($activeSlave.eggType != "human")>><<print ($activeSlave.eggType)>><</if>> ovaries<<if $activeSlave.mpreg>> and a womb attached to $his rectum<</if>>. <</if>> <<if $activeSlave.ovaImplant != 0>> <br> @@ -1137,15 +1139,15 @@ Work on $his sex: <<if $activeSlave.prostate == 3>> | [[Remove ejaculation implant|Surgery Degradation][$activeSlave.prostate = 2,cashX(forceNeg($surgeryCost), "slaveSurgery", $activeSlave), $activeSlave.health -= 10, $surgeryType = "endejac"]] <<elseif $activeSlave.prostate == 2>> - | [[Remove drug implant|Surgery Degradation][$activeSlave.prostate=1,$cash-=$surgeryCost,$surgeryType="endprecum"]] + | [[Remove drug implant|Surgery Degradation][$activeSlave.prostate=1,cashX(forceNeg($surgeryCost), "slaveSurgery", $activeSlave),$surgeryType="endprecum"]] <</if>> <<else>> <<if $activeSlave.prostate > 1>> - [[Remove drug implant|Surgery Degradation][$activeSlave.prostate=1,$cash-=$surgeryCost,$surgeryType="endprecum"]] + [[Remove drug implant|Surgery Degradation][$activeSlave.prostate=1,cashX(forceNeg($surgeryCost), "slaveSurgery", $activeSlave),$surgeryType="endprecum"]] <</if>> <<if $activeSlave.prostate < 2>> <<if $activeSlave.indentureRestrictions < 2>> - | [[Implant slow-release productivity drugs|Surgery Degradation][$activeSlave.prostate=2,$cash-=$surgeryCost,$activeSlave.health-=10,$surgeryType="precum"]] //This may cause some leaking// + | [[Implant slow-release productivity drugs|Surgery Degradation][$activeSlave.prostate=2,cashX(forceNeg($surgeryCost), "slaveSurgery", $activeSlave),$activeSlave.health-=10,$surgeryType="precum"]] //This may cause some leaking// <</if>> <</if>> <</if>> diff --git a/src/uncategorized/saLongTermEffects.tw b/src/uncategorized/saLongTermEffects.tw index 26439a34710d2620482a42e7a750a7584bd418c3..32460221d38d35bfea436a6319b0c2415b3fdf40 100644 --- a/src/uncategorized/saLongTermEffects.tw +++ b/src/uncategorized/saLongTermEffects.tw @@ -112,7 +112,7 @@ <</if>> <</if>> -<<if $slaves[$i].assignmentVisible == 1>> /* OPENS AUTOSURGERY, CLOTHES, AND ACCESSORIES */ +<<if $slaves[$i].assignmentVisible == 1 && ($slaves[$i].assignment !== "live with your Head Girl" || $HGSuiteSurgery === 0)>> /* OPENS AUTOSURGERY, CLOTHES, AND ACCESSORIES */ <<if hasSurgeryRule($slaves[$i], $defaultRules) && $slaves[$i].useRulesAssistant == 1 && $slaves[$i].indentureRestrictions < 2 && $cash > 0>> <<= rulesAutosurgery($slaves[$i])>> <</if>> diff --git a/src/uncategorized/saWorkTheFarm.tw b/src/uncategorized/saWorkTheFarm.tw deleted file mode 100644 index 3523da7dfb13ed35a663af4b77fc45f256462498..0000000000000000000000000000000000000000 --- a/src/uncategorized/saWorkTheFarm.tw +++ /dev/null @@ -1,610 +0,0 @@ -:: SA Work the Farm [nobr] /* TODO: This entire passage will need to be reworked */ - -<!-- Statistics gathering --> -<<set _incomeStats = getSlaveStatisticData($slaves[$i], $slaves[$i].assignment === Job.DAIRY ? $facility.farmyard : undefined)>> -<<set _incomeStats.milk = 0; _incomeStats.cum = 0; _incomeStats.fluid = 0>> - -<<if ndef $slaves[$i].lactationAdaptation>> - <<set $slaves[$i].lactationAdaptation = 0>> -<</if>> - -<<set $milk = 0>> -<<set $cum = 0>> - -gets milked this week. -<<if $farmyard > 0>> -<<if $farmyardRestraintsSetting < 2>> - <<if (($universalRulesFacilityWork == 1) && ($slaves[$i].assignment == "get milked") && ($farmyardSpots > 0)) || ($slaves[$i].assignment == "work as a farmhand")>> - <<if ($slaves[$i].assignment == "get milked")>> - Since there's extra space in $farmyardName, $he spends most of $his milkings there. - <<set $farmyardSpots -= 1>> - <</if>> - <<if ($Milkmaid != 0)>> - While there, $he gets the benefit of $Milkmaid.slaveName's <<if ($Milkmaid.physicalAge < 21)>>youthful energy<<else>>care<</if>><<if ($Milkmaid.oralSkill >= 100)>> and talented tongue<</if>>. - <<if ($slaves[$i].devotion < $milkmaidDevotionThreshold)>> - <<set $slaves[$i].devotion += $milkmaidDevotionBonus>> - <</if>> - <<if ($slaves[$i].trust < $milkmaidTrustThreshold)>> - <<set $slaves[$i].trust += $milkmaidTrustBonus>> - <</if>> - <<if ($slaves[$i].health < 100)>> - <<set $slaves[$i].health += $milkmaidHealthBonus>> - <</if>> - <</if>> - <</if>> -<</if>> -<</if>> - -<<if $slaves[$i].lactation > 0>> - - <<set $milk = milkAmount($slaves[$i])>> - - $He produces from $his <<print either("tits", "breasts", "mammaries", "udders", "boobs")>>, which have a combined volume of <<print $slaves[$i].boobs*2>> CCs; - <<if ($slaves[$i].lactation == 1)>> - $he is lactating naturally and produces a healthy stream of milk. - <<elseif ($slaves[$i].lactation == 2)>> - $he is on lactation drugs and produces a river of milk. - <<if $slaves[$i].lactationAdaptation < 100>> - $His udders are forced to adapt to this unnatural productivity. - <<set $slaves[$i].lactationAdaptation += 1>> - <</if>> - <<if $slaves[$i].curatives == 0 && $slaves[$i].inflationType != "curative">> - The stress of extreme milk production @@.red;damages $his health.@@ - <<set $slaves[$i].health -= 3>> - <</if>> - <</if>> - - <<if ($slaves[$i].devotion > 50)>> - $He's such a happy cow that $his mental state has a positive impact on $his production. - <<elseif ($slaves[$i].devotion < -50)>> - $He's such an unhappy cow that $his mental state has a negative impact on $his production. - <</if>> - - <<if ($slaves[$i].boobsImplant > 200)>> - However, $his breast implants impede milk production. - <</if>> - - <<set $hormones = $slaves[$i].hormoneBalance/100>> - <<if ($slaves[$i].balls != 0)>> - <<set $hormones -= 1>> - <</if>> - <<if (($slaves[$i].ovaries != 0) || ($slaves[$i].mpreg != 0))>> - <<set $hormones += 1>> - <</if>> - <<if ($hormones > 1)>> - $His internal chemistry is perfectly suited to milk production. - <<elseif ($hormones > 0)>> - $His hormonal balance favors milk production. - <<elseif ($hormones < 0)>> - $His hormonal balance impedes milk production. - <<elseif ($hormones < -1)>> - $His internal chemistry is poorly suited to milk production. - <</if>> - - <<if $slaves[$i].lactationAdaptation < 100>> - <<if ($slaves[$i].assignment == "get milked") || ($slaves[$i].assignment == "work as a farmhand")>> - Living as a cow helps $his body and mind adapt to producing milk. - <<set $slaves[$i].lactationAdaptation += 1>> - <</if>> - <</if>> - - <<if ($slaves[$i].preg > $slaves[$i].pregData.normalBirth/8) && ($slaves[$i].pregKnown == 1)>> - $His pregnancy helps $his body produce more milk naturally<<if $slaves[$i].lactationAdaptation < 100>>, and also helps it adapt to milk production<<set $slaves[$i].lactationAdaptation += 1>><</if>>. - <</if>> - - <<if ($slaves[$i].health > 50)>> - $His shining health helps $him really produce. - <<elseif ($slaves[$i].health < -50)>> - $His poor health impedes milk production. - <</if>> - - <<if ($slaves[$i].weight > 10)>> - $His extra weight supports $his productivity. - <<elseif ($slaves[$i].weight < -10)>> - $His thinness hinders $his productivity. - <</if>> - - <<if $slaves[$i].lactationAdaptation > 10>> - <<if $slaves[$i].lactationAdaptation > 50>> - $His body has adapted heavily to milk production, making $him extremely productive. - <<else>> - $His body has gotten used to producing milk, making $him very productive. - <</if>> - <</if>> - - <<if $farmyardSlimMaintainUpgrade == 1>> - <<if $farmyardSlimMaintain == 1>> - <<if ($slaves[$i].boobs <= 700)>> - <<if ($arcologies[0].FSSlimnessEnthusiast > 80)>> - Your arcology's milkers are optimized to extract maximum output from small breasted slaves, which substantially increases $his otherwise modest productivity. - <<set $milk *= 1.5>> - <<elseif ($arcologies[0].FSSlimnessEnthusiast > 20)>> - Your arcology's milkers have been carefully modified to more readily accommodate slaves with tiny breasts, which slightly mitigates $his less than ideal physiology for milk production. - <<set $milk *= 1.1>> - <</if>> - <</if>> - <</if>> - <</if>> - - /* This is going to be where the farmyard overhaul takes place (milk half) */ - <<if ($slaves[$i].assignment == "work as a farmhand")>> - <<if ($farmyardFeedersUpgrade == 1)>> - <<if ($farmyardFeedersSetting > 0)>> - <<set $milk += $milk*(0.1*($farmyardFeedersUpgrade+$farmyardRestraintsSetting+((50-$slaves[$i].physicalAge)/20)))>> - <<if ($slaves[$i].chem > 360)>> - <<set $milk *= 0.6>> - <<elseif ($slaves[$i].chem > 100)>> - <<set $milk *= ((600-$slaves[$i].chem)/600)>> - <</if>> - <</if>> - <</if>> - <<elseif ($slaves[$i].assignment == "be confined in the arcade")>> - <<set $milk *= 0.5>> - <</if>> - - <<set $milk *= $servantMilkersMultiplier>> - - <<set $milk = Math.trunc($milk)>> - <<if $milk < 1>> - <<set $milk = 1>> - <</if>> - <<set $slaves[$i].milk += $milk>> - <<set $milkTotal += $milk>> - - As a result, $he produces $milk liters of milk over the week. - <<set _incomeStats.milk = $milk>> - - <<if ($arcologies[0].FSPastoralistLaw == 1)>> - <<set $milkSale = $milk*(8+Math.trunc($arcologies[0].FSPastoralist/30))>> - Since breast milk is $arcologies[0].name's only legal farmyard product, $he can scarcely be milked fast enough, and $he makes @@.yellowgreen;<<print cashFormat($milkSale)>>.@@ - <<elseif ($arcologies[0].FSPastoralist != "unset")>> - <<set $milkSale = $milk*(6+Math.trunc($arcologies[0].FSPastoralist/30))>> - Since milk is fast becoming a major part of the $arcologies[0].name's dietary culture, $his milk is in demand, and $he makes @@.yellowgreen;<<print cashFormat($milkSale)>>.@@ - <<else>> - <<set $milkSale = $milk*6>> - $His milk is sold for @@.yellowgreen;<<print cashFormat($milkSale)>>.@@ - <</if>> - <<run cashX($milkSale, "milked", $slaves[$i])>> - <<set _incomeStats.income += $milkSale>> - - <<if $slaves[$i].fetishKnown>> - <<if ($slaves[$i].fetish == "boobs") || ($slaves[$i].energy > 95)>> - Getting constantly milked is as good as sex, as far as $he's concerned. @@.hotpink;$He is happy@@ to have $his breasts receive so much attention. - <<set $slaves[$i].devotion += 1>> - <<if $slaves[$i].need>><<set $slaves[$i].need = 0>><</if>> - <</if>> - <</if>> - - <<if $slaves[$i].career == "a farmyard cow" && $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0>> - $He feels like @@.hotpink;$he was made to be milked,@@ @@.mediumaquamarine;not that $he'd complain about such a good feeling.@@ - <<set $slaves[$i].devotion++, $slaves[$i].trust++>> - <<if $slaves[$i].need>><<set $slaves[$i].need = 0>><</if>> - <</if>> - - <<if ($slaves[$i].nipples != "huge")>> - <<if ($slaves[$i].nipples == "inverted")>> - <<if ($slaves[$i].fetish == "masochist") && ($slaves[$i].fetishKnown == 1)>> - Having the milkers constantly haul $his inverted nipples out is @@.hotpink;extremely uncomfortable; $he loves it.@@ - <<set $slaves[$i].devotion += 3>> - <<else>> - Having the milkers constantly haul $his inverted nipples out is @@.mediumorchid;extremely uncomfortable.@@ - <<set $slaves[$i].devotion -= 3>> - <</if>> - <<if (random(1,100) > 50)>> - The constant suction @@.lime;permanently protrudes them,@@ and - <<if (random(1,2) == 1)>> - it turns out they're absolutely massive. - <<set $slaves[$i].nipples = "huge">> - <<else>> - it turns out they're nice and puffy. - <<set $slaves[$i].nipples = "puffy">> - <</if>> - <</if>> - <<elseif ($slaves[$i].nipples == "partially inverted")>> - <<if ($slaves[$i].fetish == "masochist") && ($slaves[$i].fetishKnown == 1)>> - Having the milkers constantly haul $his inverted nipples out is @@.hotpink;quite uncomfortable; $he loves it.@@ - <<set $slaves[$i].devotion += 1>> - <<else>> - Having the milkers constantly haul $his inverted nipples out is @@.mediumorchid;quite uncomfortable.@@ - <<set $slaves[$i].devotion -= 1>> - <</if>> - <<if (random(1,100) > 30)>> - The constant suction @@.lime;permanently protrudes them,@@ and - <<if (random(1,2) == 1)>> - it turns out they're pretty cute. - <<set $slaves[$i].nipples = "cute">> - <<else>> - it turns out they're nice and puffy. - <<set $slaves[$i].nipples = "puffy">> - <</if>> - <</if>> - <<elseif ($slaves[$i].nipples == "puffy") && (random(1,100) > 90)>> - Producing this river of milk @@.lime;enlarges $his nipples:@@ they're now enormous. - <<set $slaves[$i].nipples = "huge">> - <<elseif ($slaves[$i].nipples == "cute") && (random(1,100) > 80)>> - Producing this river of milk @@.lime;makes $his nipples nice and puffy.@@ - <<set $slaves[$i].nipples = "puffy">> - <<elseif ($slaves[$i].nipples == "tiny")>> - Producing this river of milk @@.lime;makes $his nipples grow to a nice size.@@ - <<set $slaves[$i].nipples = "cute">> - <<elseif ($slaves[$i].areolae < 3) && (random(1,100) > 30+($slaves[$i].areolae*20))>> - Producing this river of milk @@.lime;broadens $his areolae.@@ - <<set $slaves[$i].areolae += 1>> - <</if>> - <</if>> - - -<</if>> /* CLOSES BREAST MILKING */ - -<<if ($slaves[$i].balls > 0)>> - - <<set $cumSlaves += 1>> - <<set $cum = cumAmount($slaves[$i])>> - - <<if $slaves[$i].lactation > 0>> - $His - <<else>> - $slaves[$i].slaveName's - <</if>> - - <<if $slaves[$i].dick > 0>> - <<if ($slaves[$i].dick > 6)>> - inhuman - <<elseif ($slaves[$i].dick > 5)>> - massive - <<elseif ($slaves[$i].dick > 4)>> - big - <<elseif ($slaves[$i].dick > 3)>> - sizable - <<elseif ($slaves[$i].dick > 2)>> - moderate - <<elseif ($slaves[$i].dick > 1)>> - little - <<else>> - tiny - <</if>> - prick is - <<if $slaves[$i].lactation > 0>> - also - <</if>> - machine-milked - <<else>> - butt is machine-fucked - <</if>> - to extract the cum from $his - <<if !$slaves[$i].scrotum>> - invisible - <<else>> - <<switch $slaves[$i].balls>> - <<case 10>>inhuman - <<case 9>>titanic - <<case 8>>gigantic - <<case 7>>monstrous - <<case 6>>huge - <<case 5>>pendulous - <<case 4>>swinging - <<case 3>>big - <<case 2>>average - <<case 1>>pathetic - <<default>>hypertrophied - <</switch>> - <</if>> - <<if $slaves[$i].drugs == "testicle enhancement">> - balls, relieving them of the excessive cum production caused by the testicle enhancement drugs. - <<elseif $slaves[$i].drugs == "hyper testicle enhancement">> - balls, relieving them of the excessive cum production caused by the hyper testicle enhancement drugs. - <<else>> - balls. - <</if>> - - <<if $slaves[$i].diet == "cum production">> - $His diet is designed for cum production. - <</if>> - - <<set $hormones = $slaves[$i].hormoneBalance/50>> - <<if $hormones < -1>> - $His internal chemistry is perfectly suited to cum production. - <<elseif $hormones < 0>> - $His hormonal balance favors cum production. - <<elseif $hormones > 0>> - $His hormonal balance impedes cum production. - <<elseif $hormones > 1>> - $His internal chemistry is poorly suited to cum production. - <</if>> - - <<if $slaves[$i].scrotum == 0>> - $He does produce cum despite $his apparent ballslessness, but less than $he would if they weren't hidden inside $him. - <</if>> - - <<if $slaves[$i].prostate>> - <<if $slaves[$i].prostate > 2>> - $His heavily altered prostate greatly increases the volume of $his ejaculations and promotes excessive, watery semen production. This dilute ejaculate @@.red;sells poorly@@ compared to normal cum. - <<elseif $slaves[$i].prostate > 1>> - $His hyperactive prostate increases the volume of $his ejaculations and promotes good semen production. - <</if>> - <<else>> - $His lack of a prostate reduces the health and volume of $his ejaculations. - <</if>> - - <<if ($slaves[$i].devotion > 50)>> - $He's so happy that $his mental state has a positive impact on $his semen production. - <<elseif ($slaves[$i].devotion < -50)>> - $He's so unhappy that $his mental state has a negative impact on $his semen production. - <</if>> - - <<if ($slaves[$i].health > 50)>> - $His shining health helps $him really produce. - <<elseif ($slaves[$i].health < -50)>> - $His poor health impedes semen production. - <</if>> - - <<if $slaves[$i].vasectomy == 1>> - $His cum lacks the primary ingredient, sperm, thanks to $his vasectomy, @@.red;considerably lowering the value@@ of $his ejaculate. - <<elseif $slaves[$i].ballType == "sterile">> - $His cum lacks vigor entirely, thanks to $his chemical castration, @@.red;considerably lowering the value@@ of $his ejaculate. - <</if>> - - /* Dairy rework cum half here */ - <<if ($slaves[$i].assignment == "work as a farmhand")>> - <<if ($farmyardStimulatorsUpgrade == 1)>> - <<if ($farmyardStimulatorsSetting > 0)>> - <<set $cum += $cum*(0.2*($farmyardStimulatorsSetting+$farmyardRestraintsSetting+Math.trunc((50-$slaves[$i].physicalAge)/20)))>> - <</if>> - <<if ($slaves[$i].chem > 360)>> - <<set $cum = Math.trunc($cum*0.6)>> - <<elseif ($slaves[$i].chem > 100)>> - <<set $cum = Math.trunc($cum*((600-$slaves[$i].chem)/600))>> - <</if>> - <<elseif ($Milkmaid != 0)>> - <<if ($Milkmaid.dick > 4) && canAchieveErection($Milkmaid)>> - $Milkmaid.slaveName sometimes stands in for the machines, which is a polite way of saying $he sometimes fucks $slaves[$i].slaveName's ass to help $him cum. - <<set $cum += $cum*0.2>> - <</if>> - <</if>> - <<elseif ($slaves[$i].assignment == "be confined in the arcade")>> - <<set $cum = $cum*0.5>> - <</if>> - - <<set $cum = Math.trunc($cum)>> - <<if $cum < 1>> - <<set $cum = 1>> - <</if>> - <<set $slaves[$i].cum += $cum>> - <<set $cumTotal += $cum>> - <<set _incomeStats.cum = $cum>> - - <<if ($arcologies[0].FSPastoralist == "unset")>> - <<set _cumSale = ($cum*random(15,25))>> - <<if $slaves[$i].vasectomy == 1 || $slaves[$i].ballType == "sterile">><<set _cumSale *= 0.2>><<elseif $slaves[$i].prostate == 3>><<set _cumSale *= 0.5>><</if>> - $He produces <<print $cum>> deciliters of cum over the week; the fresh ejaculate is sold for @@.yellowgreen;<<print cashFormat(_cumSale)>>.@@ - <<elseif $arcologies[0].FSPastoralistLaw == 1>> - <<set _cumSale = ($cum*(random(20,40)))>> - <<if $slaves[$i].vasectomy == 1 || $slaves[$i].ballType == "sterile">><<set _cumSale *= 0.2>><<elseif $slaves[$i].prostate == 3>><<set _cumSale *= 0.5>><</if>> - $He produces <<print $cum>> deciliters of cum over the week; the fresh ejaculate, which is in extremely high demand as one of $arcologies[0].name's few legal sources of animal protein, is sold for @@.yellowgreen;<<print cashFormat(_cumSale)>>.@@ - <<else>> - <<set _cumSale = ($cum*(random(10,20)+Math.trunc($arcologies[0].FSPastoralist/10)))>> - <<if $slaves[$i].vasectomy == 1 || $slaves[$i].ballType == "sterile">><<set _cumSale *= 0.2>><<elseif $slaves[$i].prostate == 3>><<set _cumSale *= 0.5>><</if>> - $He produces <<print $cum>> deciliters of cum over the week; the fresh ejaculate, which is in high demand given the new cultural preference for slave products, is sold for @@.yellowgreen;<<print cashFormat(_cumSale)>>.@@ - <</if>> - <<run cashX(_cumSale, "milked", $slaves[$i])>> - <<set _incomeStats.income += _cumSale>> - - <<if ($slaves[$i].energy > 95)>> - Getting $his dick constantly milked is almost as good as getting constant blowjobs as far as $he's concerned. @@.hotpink;$He is happy@@ to have $his member receive so much attention. - <<set $slaves[$i].devotion += 1>> - <</if>> - - <<if $slaves[$i].need>> - $His cock and balls are milked so thoroughly that $he's involuntarily sexually sated, regardless of $his feelings and tastes. - <<set $slaves[$i].need = 0>> - <</if>> - - <<if !canAchieveErection($slaves[$i])>> - Since $he cannot maintain an erection, $he requires @@.gold;painful@@ and @@.mediumorchid;degrading@@ anal electrostimulation to produce. - <<set $slaves[$i].devotion -= 2>> - <<set $slaves[$i].trust -= 2>> - <<if ($slaves[$i].anus == 0)>> - The electrostimulator @@.lime;breaks in $his virgin asshole.@@ - <<set $slaves[$i].anus = 1>> - <</if>> - <<elseif ($slaves[$i].devotion <= 20)>> - Since $he's unaroused by $his situation, $he requires @@.gold;painful@@ and @@.mediumorchid;degrading@@ anal electrostimulation to produce. - <<set $slaves[$i].devotion -= 2>> - <<set $slaves[$i].trust -= 2>> - <<if ($slaves[$i].anus == 0)>> - The electrostimulator @@.lime;breaks in $his virgin asshole.@@ - <<set $slaves[$i].anus = 1>> - <</if>> - <</if>> - - <<if ($slaves[$i].balls < 3) && $slaves[$i].ballType != "sterile">> - <<if ($slaves[$i].balls < 2)>> - <<if (random(1,100) > (70 + ($slaves[$i].geneMods.NCS * 15)))>> - Constant semen production and continual emptying and refilling @@.lime;increases the size of $his tiny testicles.@@ - <<set $slaves[$i].balls += 1>> - <</if>> - <<elseif (random(1,100) > (90 + ($slaves[$i].geneMods.NCS * 5)))>> - Constant semen production and continual emptying and refilling @@.lime;increases the size of $his small testicles.@@ - <<set $slaves[$i].balls += 1>> - <</if>> - <</if>> - -<</if>> /* CLOSES COCK MILKING */ - -<<if $slaves[$i].genes == "XX" && $slaves[$i].prostate > 0 && $slaves[$i].balls == 0>> - $His female prostate fluid is considered an exotic delicacy. - <<set $fluid = $slaves[$i].prostate * $slaves[$i].energy/5 + 1>> - <<if $slaves[$i].energy > 10>> - <<if $slaves[$i].health > 50>> - <<if $slaves[$i].energy > 90>> - As a nympho, $he has no trouble orgasming almost constantly. - <</if>> - <<set $fluid = $fluid*$slaves[$i].health/50>> - $His shining health keeps $his juices flowing. - <<elseif $slaves[$i].health < -50>> - <<set $fluid = $fluid * (1 + $slaves[$i].health/50)>> - $He is so unwell, $he produces less than normal. - <</if>> - <<else>> - /* $slaves[$i].energy <= 10 */ - Unfortunately, $he is frigid and rarely reaches orgasm in spite of the intense automatic stimulation. - <</if>> - <<set $fluid = Math.clamp(Math.trunc($fluid),1,1000)>> - <<set _incomeStats.fluid = $fluid>> - <<print $fluid >> deciliters of uncommon ejaculate is gathered during $his milkings. - <<set $fluidSale = $fluid*random(40,50)>> - <<if $arcologies[0].FSPastoralist != "unset" && $arcologies[0].FSPastoralist > 30>> - <<set $fluidSale = Math.trunc($fluidSale*(1 + ($arcologies[0].FSPastoralist-30)/140))>> /* fully accepted parsoralism gives +50% on the price*/ - Because of your arcology's cultural preferences, it comes with extra value. - <</if>> - It is sold for @@.yellowgreen;<<print cashFormat($fluidSale)>>.@@ - <<run cashX($fluidSale, "milked", $slaves[$i])>> - <<set _incomeStats.income += $fluidSale>> -<</if>> /* CLOSES FEMALE PROSTATE FLUID GATHERING */ - -<<if ($slaves[$i].behavioralQuirk == "fitness")>> - $slaves[$i].slaveName @@.hotpink;privately enjoys@@ the focus on $his health and fitness that comes with being a cow. - <<set $slaves[$i].devotion += 1>> -<</if>> - -<<if ($showVignettes == 1 && ($slaves[$i].assignment == "get milked" || $slaves[$i].assignment == "work as a farmhand"))>> - <<set _vignette = GetVignette($slaves[$i])>> - __This week__ _vignette.text - <<if (_vignette.type == "cash")>> - <<set FResult($slaves[$i])>> - <<if (_vignette.effect > 0)>> - @@.yellowgreen;making you an extra <<print cashFormat(Math.trunc($FResult*_vignette.effect))>>.@@ - <<elseif (_vignette.effect < 0)>> - @@.red;losing you <<print cashFormat(Math.abs(Math.trunc($FResult*_vignette.effect)))>>.@@ - <<else>> - an incident without lasting effect. - <</if>> - <<run cashX(Math.trunc($FResult*_vignette.effect), "milked", $slaves[$i])>> - <<set _incomeStats.income += Math.trunc($FResult*_vignette.effect)>> - <<elseif (_vignette.type == "devotion")>> - <<if (_vignette.effect > 0)>> - <<if $slaves[$i].devotion > 50>> - @@.hotpink;increasing $his devotion to you.@@ - <<elseif $slaves[$i].devotion >= -20>> - @@.hotpink;increasing $his acceptance of you.@@ - <<elseif $slaves[$i].devotion > -10>> - @@.hotpink;reducing $his dislike of you.@@ - <<else>> - @@.hotpink;reducing $his hatred of you.@@ - <</if>> - <<elseif (_vignette.effect < 0)>> - <<if $slaves[$i].devotion > 50>> - @@.mediumorchid;reducing $his devotion to you.@@ - <<elseif $slaves[$i].devotion >= -20>> - @@.mediumorchid;reducing $his acceptance of you.@@ - <<elseif $slaves[$i].devotion > -10>> - @@.mediumorchid;increasing $his dislike of you.@@ - <<else>> - @@.mediumorchid;increasing $his hatred of you.@@ - <</if>> - <<else>> - an incident without lasting effect. - <</if>> - <<set $slaves[$i].devotion += 1*_vignette.effect>> - <<elseif (_vignette.type == "trust")>> - <<if (_vignette.effect > 0)>> - <<if $slaves[$i].trust > 20>> - @@.mediumaquamarine;increasing $his trust in you.@@ - <<elseif $slaves[$i].trust > -10>> - @@.mediumaquamarine;reducing $his fear of you.@@ - <<else>> - @@.mediumaquamarine;reducing $his terror of you.@@ - <</if>> - <<elseif (_vignette.effect < 0)>> - <<if $slaves[$i].trust > 20>> - @@.gold;reducing $his trust in you.@@ - <<elseif $slaves[$i].trust >= -20>> - @@.gold;increasing $his fear of you.@@ - <<else>> - @@.gold;increasing $his terror of you.@@ - <</if>> - <<else>> - an incident without lasting effect. - <</if>> - <<set $slaves[$i].trust += 1*_vignette.effect>> - <<elseif (_vignette.type == "health")>> - <<if (_vignette.effect > 0)>> - @@.green;improving $his health.@@ - <<elseif (_vignette.effect < 0)>> - @@.red;affecting $his health.@@ - <<else>> - an incident without lasting effect. - <</if>> - <<set $slaves[$i].health += 2*_vignette.effect>> - <<else>> - <<set FResult($slaves[$i])>> - <<if (_vignette.effect > 0)>> - @@.green;gaining you a bit of reputation.@@ - <<elseif (_vignette.effect < 0)>> - @@.red;losing you a bit of reputation.@@ - <<else>> - an incident without lasting effect. - <</if>> - <<set $rep += Math.trunc($FResult*_vignette.effect*0.1)>> - <<set _incomeStats.rep += Math.trunc($FResult*_vignette.effect*0.1)>> - <</if>> - -<</if>> - -/* FACILITY DECORATION IMPACTS */ - -<<if $slaves[$i].assignment == "work as a farmhand">> -<<if $farmyardDecoration != "standard">> -<<set _fsGain = Math.min(0.0001*$FSSingleSlaveRep*($milk+5*$cum), 1)>> -<<switch $farmyardDecoration>> -<<case "Roman Revivalist">> - <<set $arcologies[0].FSRomanRevivalist = Math.clamp($arcologies[0].FSRomanRevivalist += _fsGain,0,100)>> -<<case "Aztec Revivalist">> - <<set $arcologies[0].FSAztecRevivalist = Math.clamp($arcologies[0].FSAztecRevivalist += _fsGain,0,100)>> -<<case "Egyptian Revivalist">> - <<set $arcologies[0].FSEgyptianRevivalist = Math.clamp($arcologies[0].FSEgyptianRevivalist += _fsGain,0,100)>> -<<case "Edo Revivalist">> - <<set $arcologies[0].FSEdoRevivalist = Math.clamp($arcologies[0].FSEdoRevivalist += _fsGain,0,100)>> -<<case "Arabian Revivalist">> - <<set $arcologies[0].FSArabianRevivalist = Math.clamp($arcologies[0].FSArabianRevivalist += _fsGain,0,100)>> -<<case "Chinese Revivalist">> - <<set $arcologies[0].FSChineseRevivalist = Math.clamp($arcologies[0].FSChineseRevivalist += _fsGain,0,100)>> -<<case "Chattel Religionist">> - <<set $arcologies[0].FSChattelReligionist = Math.clamp($arcologies[0].FSChattelReligionist += _fsGain,0,100)>> -<<case "Degradationist">> - <<set $arcologies[0].FSDegradationist = Math.clamp($arcologies[0].FSDegradationist += _fsGain,0,100)>> -<<case "Repopulation Focus">> - <<set $arcologies[0].FSRepopulationFocus = Math.clamp($arcologies[0].FSRepopulationFocus += _fsGain,0,100)>> -<<case "Eugenics">> - <<set $arcologies[0].FSRestart = Math.clamp($arcologies[0].FSRestart += _fsGain,0,100)>> -<<case "Asset Expansionist">> - <<set $arcologies[0].FSAssetExpansionist = Math.clamp($arcologies[0].FSAssetExpansionist += _fsGain,0,100)>> -<<case "Transformation Fetishist">> - <<set $arcologies[0].FSTransformationFetishist = Math.clamp($arcologies[0].FSTransformationFetishist += _fsGain,0,100)>> -<<case "Gender Radicalist">> - <<set $arcologies[0].FSGenderRadicalist = Math.clamp($arcologies[0].FSGenderRadicalist += _fsGain,0,100)>> -<<case "Gender Fundamentalist">> - <<set $arcologies[0].FSGenderFundamentalist = Math.clamp($arcologies[0].FSGenderFundamentalist += _fsGain,0,100)>> -<<case "Physical Idealist">> - <<set $arcologies[0].FSPhysicalIdealist = Math.clamp($arcologies[0].FSPhysicalIdealist += _fsGain,0,100)>> -<<case "Hedonistic">> - <<set $arcologies[0].FSHedonisticDecadence = Math.clamp($arcologies[0].FSHedonisticDecadence += _fsGain,0,100)>> -<<case "Supremacist">> - <<set $arcologies[0].FSSupremacist = Math.clamp($arcologies[0].FSSupremacist += _fsGain,0,100)>> -<<case "Subjugationist">> - <<set $arcologies[0].FSSubjugationist = Math.clamp($arcologies[0].FSSubjugationist += _fsGain,0,100)>> -<<case "Paternalist">> - <<set $arcologies[0].FSPaternalist = Math.clamp($arcologies[0].FSPaternalist += _fsGain,0,100)>> -<<case "Pastoralist">> - <<set $arcologies[0].FSPastoralist = Math.clamp($arcologies[0].FSPastoralist += _fsGain,0,100)>> -<<case "Maturity Preferentialist">> - <<set $arcologies[0].FSMaturityPreferentialist = Math.clamp($arcologies[0].FSMaturityPreferentialist += _fsGain,0,100)>> -<<case "Youth Preferentialist">> - <<set $arcologies[0].FSYouthPreferentialist = Math.clamp($arcologies[0].FSYouthPreferentialist += _fsGain,0,100)>> -<<case "Body Purist">> - <<set $arcologies[0].FSBodyPurist = Math.clamp($arcologies[0].FSBodyPurist += _fsGain,0,100)>> -<<case "Slimness Enthusiast">> - <<set $arcologies[0].FSSlimnessEnthusiast = Math.clamp($arcologies[0].FSSlimnessEnthusiast += _fsGain,0,100)>> -<</switch>> -<</if>> -<</if>> diff --git a/src/uncategorized/salon.tw b/src/uncategorized/salon.tw index a1b04bda4e762ffc54b002c72c4eae45263b44d3..aeda3b784264ee8aa80e6404622a5e307d17952e 100644 --- a/src/uncategorized/salon.tw +++ b/src/uncategorized/salon.tw @@ -336,7 +336,7 @@ <<elseif $activeSlave.hLength < 150>> | [[Apply extensions|Salon][$activeSlave.hLength += 10,cashX(forceNeg($modCost), "slaveMod", $activeSlave)]] <</if>> - /* FIXME: get this to work + /* FIXME: get this to work | Custom length: <<textbox "_newHLength" _oldHLength "Salon">> <<if (_newHLength < _oldHLength) && (_newHLength > 0)>> <<set $activeSlave.hLength = _newHLength>> diff --git a/src/uncategorized/scheduledEvent.tw b/src/uncategorized/scheduledEvent.tw index 2263f8220c34c10675367c285fe1854ed4293102..aee0760373ae8c4267e457f76a4f328995bc29df 100644 --- a/src/uncategorized/scheduledEvent.tw +++ b/src/uncategorized/scheduledEvent.tw @@ -154,9 +154,9 @@ <<elseif ($FCTVshow == 1)>> <<set $FCTVshow = 0, $activeSlave = 0>> <<goto "SE FCTV Shows">> -<<elseif ($recruiterEugenics == 0 && $recruiterProgress >= 13)>> +<<elseif ($Recruiter != 0 && $recruiterEugenics == 0 && $recruiterProgress >= 13)>> <<goto "SE recruiter success">> -<<elseif ($recruiterEugenics == 1 && $recruiterProgress >= (13 + ($IntelligenceEugenicsSMR+$HeightEugenicsSMR+$FaceEugenicsSMR)*6))>> +<<elseif ($Recruiter != 0 && $recruiterEugenics == 1 && $recruiterProgress >= (13 + ($IntelligenceEugenicsSMR+$HeightEugenicsSMR+$FaceEugenicsSMR)*6))>> <<goto "SE recruiter success">> <<elseif ($customSlaveOrdered == 1)>> <<goto "SE custom slave delivery">> diff --git a/src/uncategorized/sellSlave.tw b/src/uncategorized/sellSlave.tw index 37aec045a8702766800a04fe7042ea2ec01a08a7..5ecfd8a87c738ea82ee2b5c6ae0de5129636bb82 100644 --- a/src/uncategorized/sellSlave.tw +++ b/src/uncategorized/sellSlave.tw @@ -779,7 +779,7 @@ __Bids Received__ <<if random(1,100) > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*0.9)/500))>>'' from a polite older citizen looking for a housekeeper and bedwarmer. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*0.9)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*0.9)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "housekeeper">> <</link>> @@ -793,7 +793,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a male citizen who wants to ensure his posterity by using $him to carry his children. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "preg fetishist">> <</link>> @@ -804,7 +804,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from an organ modifier interested in $his anal womb. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "organ crafter">> <</link>> @@ -816,7 +816,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(400*Math.trunc(($slaveCost*1.05)/500))>>'' from a pharmaceuticals corporation looking for fertile virgins for testing extreme fertility drugs. <<link "Accept bid" "Slave Sold">> - <<set _Price += 400*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 400*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "womb filler">> <</link>> @@ -830,7 +830,7 @@ __Bids Received__ <<if random(1,100) > 90>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a fellow arcology owner seeking a smart, pretty slave to use as a breeder to produce superior children. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "eugenics arcology">> <</link>> @@ -844,7 +844,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a fellow arcology owner focusing on building a future society based on his genes: he seeks fertile virgins with wide hips, feeling they will be the best mothers. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "repopulationist arcology">> <</link>> @@ -856,7 +856,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.3)/500))>>'' from a slave trader with a notorious virgin impregnation fetish: he uses his work to provide himself with an endless supply of virgins to knock up and resell. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.3)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.3)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "virgin trader">> <</link>> @@ -872,7 +872,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a group that takes pleasure in performing abortions on live TV. <<link "Accept bid" "Slave Sold">> - <<set _Price += 400*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 400*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "abortion TV">> <</link>> @@ -886,7 +886,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a female citizen with a very specific fetish: she loves breasts to the point of enjoying slaves with nipples large enough to meaningfully penetrate her. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "nipple fetishist">> <</link>> @@ -897,7 +897,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a male citizen with a kink that's hard to satisfy: he loves nipple fucking, but hates how breasts just don't work that way. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "nipple fetishist">> <</link>> @@ -910,7 +910,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a citizen who enjoys buttfucking slaves with the necessary equipment, willingness, and anal skill to reward his efforts with messy, hands-free orgasms of their own. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "anal fetishist">> <</link>> @@ -924,7 +924,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from an unusually well-endowed citizen who strongly prefers oral sex with willing partners who can deepthroat him successfully. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "oral fetishist">> <</link>> @@ -937,7 +937,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a sadistic citizen who likes hurting her slaves, dislikes masochists for their enjoyment of her treatment, yet prefers slaves who will not hate her. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "pain fetishist">> <</link>> @@ -951,7 +951,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a sadistic citizen who is looking for an imposing, stupid slave she can train to rape her victims on command. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "sadism fetishist">> <</link>> @@ -966,7 +966,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a newly wealthy citizen who is expanding his household and is interested in smart, educated, and obedient slaves for leadership roles. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "dom fetishist">> <</link>> @@ -980,7 +980,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.05)/500))>>'' from a citizen whose job keeps her deskbound; bored, she's looking for a devoted oral slave to occupy the space under the desk and be her constant pussylicking appliance. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.05)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.05)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "sub fetishist">> <</link>> @@ -992,7 +992,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.3)/500))>>'' from a wealthy citizen infamous for cruelly raping anal virgins in public; he buys and abuses a new one every few weeks. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.3)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.3)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "buttbreaker">> <</link>> @@ -1005,7 +1005,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a small, local slave trainer interested in using $him to help train new slaves in the sexual arts. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "trainer staffing">> <</link>> @@ -1022,7 +1022,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.4)/500))>>'' from a skilled slave trainer who feels that MILFs make the best slave trainers. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.4)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.4)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D milf staffing">> <</link>> @@ -1040,7 +1040,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a prominent citizen with a notorious fetish for fertile, natural cows. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D hucow">> <</link>> @@ -1057,7 +1057,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen who's pursuing some sort of mercenary project that requires worryingly large numbers of thin <<print $girl>>s with sharp teeth. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D startled the witch">> <</link>> @@ -1074,7 +1074,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen who appreciates <<print $girl>>s who are both vaginal virgins and anal veterans. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D virgin asspussy">> <</link>> @@ -1089,9 +1089,9 @@ __Bids Received__ <<if $activeSlave.entertainSkill > 30>> <<if $activeSlave.physicalAge < 30>> <<if random(1,100) > 60>> - <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen with moist palms who insistently refers to $him as "his waifu," whatever that means. + <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen with moist palms who insistently refers to $him as his "waifu," whatever that means. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D waifu">> <</link>> @@ -1108,7 +1108,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen who likes to provide his favored, well-endowed slaves with subordinate, orally skilled dickgirls with nice butts. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D oral servants">> <</link>> @@ -1127,7 +1127,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen who prefers slaves that look like demure <<print $girl>>s with their clothes on, and are willing to take cock up their pretty asspussies. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D trap lover">> <</link>> @@ -1146,7 +1146,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from an eccentric citizen notorious for keeping tall slaves with huge soft butts, just so he can bury himself between their cheeks when they're standing. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D butt bury">> <</link>> @@ -1166,7 +1166,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen with strong opinions on futas: he likes a feminine $girl with a nice cock, a lovely pussy, no visible balls and yet the ability to get hard, and plentifully milky nipples. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D milky herm">> <</link>> @@ -1187,7 +1187,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen whose friends never let him hear the end of his incorrigibly romantic treatment of his apartment full of amazons. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D amazon hunter">> <</link>> @@ -1206,7 +1206,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen who keeps a large harem of lithe, muscular <<print $girl>>s to bear him children. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D shorty breeder">> <</link>> @@ -1225,7 +1225,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.35)/500))>>'' from a prominent citizen who's looking for a fresh, skilled pair of lips eager to wrap around a thick cock. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.35)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.35)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D oral servants">> <</link>> @@ -1244,7 +1244,7 @@ __Bids Received__ <<if random(1,100) > 80>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.15)/500))>>'' from a prominent citizen who's a notoriously inexperienced lover; it's painfully obvious that he prefers inexperienced slaves as they make him feel less insecure. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.15)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.15)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D r9k">> <</link>> @@ -1262,7 +1262,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a prominent citizen who takes unusually close interest in $his health and muscle tone, and cannot quite hide his salivation as he does so. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "D cannibal">> <</link>> @@ -1276,16 +1276,16 @@ __Bids Received__ <<if random(1,100) == 69>> <br>''<<print cashFormat(200*Math.trunc(($slaveCost*2)/200))>>'' from an obsessive fan who absolutely must have $him for himself. <<link "Accept bid" "Slave Sold">> - <<set _Price += 200*Math.trunc(($slaveCost*2)/200)>> + <<set _Price = 200*Math.trunc(($slaveCost*2)/200)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "obsessed fan">> <</link>> <</if>> <<elseif $activeSlave.pornPrestige == 3>> <<if random(1,100) > 90>> - <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.3)/500))>>'' from a studio interested in continued production of $his porn. + <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.3)/500))>>'' from a studio interested in continued production of $his porn. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.3)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.3)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "porn studio">> <</link>> @@ -1297,7 +1297,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in educating slaves and reselling them at a profit. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "teaching trainer">> <</link>> @@ -1310,7 +1310,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in filling slaves with implants before resale. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "implanting trainer">> <</link>> @@ -1323,7 +1323,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in fixing slaves who have been surgically ruined with overimplantation. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "purifying trainer">> <</link>> @@ -1338,7 +1338,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in slimming down fat slaves to appeal to buyers who prefer slim <<print $girl>>s. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "slimming trainer">> <</link>> @@ -1355,7 +1355,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in improving slaves with disappointing assets; they prefer pharmaceutical means but are not averse to surgical intervention if necessary. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "broadening trainer">> <</link>> @@ -1371,7 +1371,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in getting $women ready to be dairy cows by using aggressive hormonal and pharmaceutical treatment to balloon their tits. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "cow trainer">> <</link>> @@ -1386,7 +1386,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in feminizing imperfect shemales; an orchiectomy is invariably their first step. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "clipping trainer">> <</link>> @@ -1401,7 +1401,7 @@ __Bids Received__ <<if random(1,100) > 60>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a slave trainer that specializes in creating proper slave $women from raw material that falls short of that ideal but has potential anyway. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "reassignment trainer">> <</link>> @@ -1415,7 +1415,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner working towards autarkic slave pastoralism. He's awed by $his milk productivity. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "pastoralist arcology">> <</link>> @@ -1429,7 +1429,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner building a facsimile of ancient Egypt. He's in the market for wise and educated slaves willing to pass on their skills. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "egyptian revivalist arcology">> <</link>> @@ -1444,7 +1444,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner building a recreation of the Great Aztec Empire. He's in the market for willing, strong and combat ready slaves, to bolster his empire <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "aztec revivalist arcology">> <</link>> @@ -1459,7 +1459,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner building a facsimile of classical Rome. He's in the market for slaves with basic combat skills to fight in modern gladiatorial combats. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "roman revivalist arcology">> <</link>> @@ -1473,7 +1473,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner with interesting religious beliefs, which require beautiful slaves to be available to the public. Since $activeSlave.slaveName is pretty and not heavily used, he considers it a duty to buy $him and make $him a holy prostitute. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "chattel religionist arcology">> <</link>> @@ -1487,7 +1487,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner devoted to muscular ladies. He seems to feel that $activeSlave.slaveName is not at $his true potential, and wants a try at improving $his physique himself. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "physical idealist arcology">> <</link>> @@ -1502,7 +1502,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner devoted to chubby ladies. He seems to feel that $activeSlave.slaveName can handle a fair bit more weight, and wants a try at fattening $him up himself. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "hedonistic decadence arcology">> <</link>> @@ -1518,7 +1518,7 @@ __Bids Received__ <<if random(1,100) > 80>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/400))>>'' from a chef that likes stuffing more than just turkeys. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/400)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/400)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "stuffer chef">> <</link>> @@ -1533,7 +1533,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner who loves breast implants. Since large natural breasts can support larger implants, he seems to feel $activeSlave.slaveName has good potential to be implanted up to a truly gigantic size without too much stretching. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "transformation fetishist arcology">> <</link>> @@ -1547,7 +1547,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner who never fails to dream big. He's interested in $him mostly for growth potential, since $his assets have grown so big, so young. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "asset expansionist arcology">> <</link>> @@ -1563,7 +1563,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner with simple tastes. He likes his slaves young, slim, and reasonably innocent. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "slimness enthusiast arcology">> <</link>> @@ -1579,7 +1579,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner with a hatred of implants that reaches missionary zeal. He buys slaves full of silicone, removes their implants, reconditions them, and resells them whenever his finances will permit. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "body purist arcology">> <</link>> @@ -1592,7 +1592,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner who runs a terrifyingly degrading society. He prefers slaves who have been well-treated previously; it lends their screams a certain special authenticity. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "degradationist arcology">> <</link>> @@ -1605,7 +1605,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner with an almost messianic calling to educate and improve slaves, though somewhat hypocritically, he prefers to start with reasonably obedient <<print $girl>>s, which usually means slaves broken by someone else. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "paternalist arcology">> <</link>> @@ -1622,7 +1622,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner who likes willing, uncomplicated young ladies with bouncing boobs and big butts. He's an uncomplicated sort. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "gender fundamentalist arcology">> <</link>> @@ -1639,7 +1639,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner with a notorious fetish for the process of feminization. He prefers diamonds in the rough, because the process of polishing is so much fun. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "gender radicalist arcology">> <</link>> @@ -1654,7 +1654,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner with a strongly held belief that $activeSlave.race people should not be slaves. He devotes as much of his resources as he can to manumission of such <<print $girl>>s, concentrating on the downtrodden. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "supremacist arcology">> <</link>> @@ -1669,7 +1669,7 @@ __Bids Received__ <<if random(1,100) > 70>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.25)/500))>>'' from a fellow arcology owner working on a project to breed a race of $activeSlave.race people with natural, unquestioning obedience. He clearly considers $him good stock for the project. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.25)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.25)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "subjugationist arcology">> <</link>> @@ -1683,7 +1683,7 @@ __Bids Received__ <<if random(1,100) > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a cheap brothel chain that operates a franchise on a lower level of the arcology. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "cheap brothel">> <</link>> @@ -1697,7 +1697,7 @@ __Bids Received__ <<if random(1,100) > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a factory farm notorious for extracting every drop of value from its slaves' bodies. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "factory farm">> <</link>> @@ -1711,7 +1711,7 @@ __Bids Received__ <<if random(1,100) > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a sex arcade that maintains good service quality by rapidly cycling new slaves through their facilities. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "arcade">> <</link>> @@ -1727,7 +1727,7 @@ __Bids Received__ <<if random(1,100) > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a high-volume breeding operation interested in $him mostly for $his healthy, functional womb. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "volume breeder">> <</link>> @@ -1743,7 +1743,7 @@ __Bids Received__ <<if random(1,100) > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.1)/500))>>'' from a group of partners that run a handsome brothel off the promenade. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "nice brothel">> <</link>> @@ -1758,7 +1758,7 @@ __Bids Received__ <<if random(1,100) > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*0.8)/500))>>'' from a free-range farm that pays for the high costs of high quality livestock care by aggressively marketing its cruelty-free products. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*0.8)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*0.8)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "free range">> <</link>> @@ -1773,7 +1773,7 @@ __Bids Received__ <<if random(1,100) > 10>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from an organ harvesting firm that acquires healthy raw materials cheaply. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1.2)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "harvester">> <</link>> @@ -1785,7 +1785,7 @@ __Bids Received__ <<if random(1,100) > 10>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1)/500))>>'' from a manufacturer of large sexual appliances that include a living inmate, drugged into helplessness. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*1)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*1)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "fuckdoll">> <</link>> @@ -1799,7 +1799,7 @@ __Bids Received__ <<if random(1,100) > 90>> <br>''<<print cashFormat(7000)>>'' from a porn director interested in a cheap slave with a belly implant for use in a snuff film. <<link "Accept bid" "Slave Sold">> - <<set _Price += 7000>> + <<set _Price = 7000>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <<set $buyer = "tentacle bred">> <</link>> @@ -1812,7 +1812,7 @@ __Bids Received__ <<if random(1,100) > 30>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*0.9)/500))>>'' from a reputable slave trader who will likely ship $him out of the arcology. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*0.9)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*0.9)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <</link>> <</if>> @@ -1821,7 +1821,7 @@ __Bids Received__ <<if random(1,100) > 20>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*0.9)/500))>>'' from a slave trader who buys vast numbers of mindbroken <<print $girl>>s. His purpose is unknown, and none of them are ever seen again. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*0.9)/500)>> + <<set _Price = 500*Math.trunc(($slaveCost*0.9)/500)>> <<run cashX(_Price, "slaveSold", $activeSlave)>> <</link>> <</if>> @@ -1834,7 +1834,7 @@ __Bids Received__ <<if $activeSlave.oralSkill + $activeSlave.analSkill + $activeSlave.vaginalSkill > 100>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*0.5)/500))>>'' from the officer in charge of 'recreational activities' for General $peacekeepers.generalName's forces. This is far less than the slave is worth, but the bid comes with the implicit offer of more influence over the peacekeepers. <<link "Accept bid" "Slave Sold">> - <<set _Price += 500*Math.trunc(($slaveCost*0.5)/500), $buyer = "peacekeepers">> + <<set _Price = 500*Math.trunc(($slaveCost*0.5)/500), $buyer = "peacekeepers">> <<run cashX(_Price, "slaveSold", $activeSlave)>> <</link>> <</if>> @@ -1843,52 +1843,79 @@ __Bids Received__ <<case "lusty futanari">> <<if $activeSlave.balls > 0 && $activeSlave.ballType != "sterile" && $activeSlave.scrotum > 0 && $activeSlave.dick > 0 && $activeSlave.vagina > -1 && $activeSlave.energy > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <<case "cum addicts">> <<if $activeSlave.fetish == "cumslut" && $activeSlave.fetishStrength > 95 && $activeSlave.sexualFlaw == "cum addict">> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold" , $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold" , $activeSlave)>> + <</link>> <</if>> <<case "horny MILFs">> <<if $activeSlave.physicalAge > 34 && $activeSlave.visualAge > 34 && $activeSlave.energy > 80>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <<case "big-breasted cows">> <<if $activeSlave.boobs > 2000 && $activeSlave.lactation > 1>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <<case "beautiful young sex slaves">> <<if $activeSlave.physicalAge < 25 && $activeSlave.visualAge < 25 && $activeSlave.face > 95>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <<case "fertile virgins">> <<if $activeSlave.vagina == 0 && isFertile($activeSlave)>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">><<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> <</if>> <<case "lusty preggos">> <<if $activeSlave.preg > $activeSlave.pregData.normalBirth/4 && $activeSlave.energy > 50>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <<case "baby obsessed breeders">> <<if $activeSlave.preg > $activeSlave.pregData.normalBirth/4 && $activeSlave.fetish == "pregnancy" && $activeSlave.sexualFlaw == "breeder">> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <<case "bellies with girls attached">> <<if $activeSlave.belly >= 300000>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <<case "flesh balloons">> <<if $activeSlave.boobs > 20000 && $activeSlave.butt > 10>> <br>''<<print cashFormat(500*Math.trunc(($slaveCost*1.2)/500))>>'' from the sex slave buyer for General $peacekeepers.generalName's client state, which prefers $peacekeepers.tastes. - <<link "Accept bid" "Slave Sold">><<set _Price += 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">><<run cashX(_Price, "slaveSold", $activeSlave)>><</link>> + <<link "Accept bid" "Slave Sold">> + <<set _Price = 500*Math.trunc(($slaveCost*1.2)/500), $buyer = "peacekeepers">> + <<run cashX(_Price, "slaveSold", $activeSlave)>> + <</link>> <</if>> <</switch>> <</if>> @@ -1900,4 +1927,4 @@ __Bids Received__ <<link "Re-list $him" "Sell Slave">><<run cashX(-500, "slaveTransfer")>><</link>> //This will cost <<print cashFormat(500)>>// -<</if>> +<</if>> \ No newline at end of file diff --git a/src/uncategorized/slaveInteract.tw b/src/uncategorized/slaveInteract.tw index 2ab1800cca69d1ba8a005a774709a456d2bc7849..e42aee3848f38dd69a8625f96e4294015d6e1c67 100644 --- a/src/uncategorized/slaveInteract.tw +++ b/src/uncategorized/slaveInteract.tw @@ -1,4 +1,4 @@ -:: Slave Interact [nobr] +:: Slave Interact [nobr] <<if $cheatMode == 1>> <center>//[[Cheat Edit Slave|MOD_Edit Slave Cheat][$cheater = 1]] | [[Cheat Edit Slave Alternative|MOD_Edit Slave Cheat New][$cheater = 1]]//</center> @@ -37,9 +37,11 @@ <</switch>> <</if>> -<<set $encyclopedia = either("Costs Summary", "Disease in the Free Cities", "Drugs and Their Effects", "From Rebellious to Devoted", "Gender", "Independent Slaves", "Modern Anal", "Nymphomania", "Slave Couture")>> +<<set $encyclopedia = either("Drugs and Their Effects", "From Rebellious to Devoted", "Costs Summary", "Disease in the Free Cities", "Slave Couture", "Nymphomania", "Gender", "Independent Slaves", "Modern Anal")>> <<if $activeSlave.dick > 0>><<set $showEncyclopedia = 1, $encyclopedia = "Gender">><</if>> +<<set _CL = $canines.length, _HL = $hooved.length, _FL = $felines.length>> + <<include "Place In Line">> <center> @@.cyan;[â†,Q] @@<span id="prevSlave"><strong><<link "Prev" "Previous Slave In Line">><</link>></strong></span> ''__@@.pink;$activeSlave.slaveName@@__'' <span id="nextSlave"><strong><<link "Next" "Next Slave In Line">><</link>></strong></span>@@.cyan; [E,→]@@ @@ -148,6 +150,9 @@ | <<link "Use $his own seed to impregnate $him">><<replace "#miniscene">><<include "FSlaveSelfImpreg">><br> <</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> <</if>> | <<link "Use another slave to impregnate $him" "FSlaveImpreg">><</link>> + <<if ($activeSlave.eggType != "human") && (_CL > 0 || _HL > 0 || _FL > 0) && ($cheatMode == 1)>> + | <<link "Use an animal to impregnate $him" "FAnimalImpreg">><</link>> + <</if>> <</if>> <<if $activeSlave.assignment != "work in the dairy" && $activeSlave.assignment != "be confined in the arcade" && $activeSlave.assignment != "be confined in the cellblock">> <<if $enema == 1>> @@ -173,7 +178,7 @@ <<if ($activeSlave.inflation < 3 && $activeSlave.pregKnown == 0 && $activeSlave.bellyImplant < 1500) || ($activeSlave.inflation < 1)>> <<if $activeSlave.inflationType == "milk" || $activeSlave.inflationType == "none">> | <<link "Fill $his ass with milk">><<set $activeSlave.inflationType = "milk">><<set $activeSlave.inflationMethod = 2>><<replace "#miniscene">><<include "FillUpButt">><br><</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> - | <<link "Force-feed $him milk">><<set $activeSlave.inflationType = "milk">><<set $activeSlave.inflationMethod = 1>><<replace "#miniscene">><<include "FillUpFace">><br><</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> + | <<link "Force feed $him milk">><<set $activeSlave.inflationType = "milk">><<set $activeSlave.inflationMethod = 1>><<replace "#miniscene">><<include "FillUpFace">><br><</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> <</if>> <</if>> <<else>> @@ -183,7 +188,7 @@ <<if ($activeSlave.inflation < 3 && $activeSlave.pregKnown == 0 && $activeSlave.bellyImplant < 1500) || ($activeSlave.inflation < 1)>> <<if $activeSlave.inflationType == "cum" || $activeSlave.inflationType == "none">> | <<link "Fill $his ass with cum">><<set $activeSlave.inflationType = "cum">><<set $activeSlave.inflationMethod = 2>><<replace "#miniscene">><<include "FillUpButt">><br><</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> - | <<link "Force-feed $him cum">><<set $activeSlave.inflationType = "cum">><<set $activeSlave.inflationMethod = 1>><<replace "#miniscene">><<include "FillUpFace">><br><</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> + | <<link "Force feed $him cum">><<set $activeSlave.inflationType = "cum">><<set $activeSlave.inflationMethod = 1>><<replace "#miniscene">><<include "FillUpFace">><br><</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> <</if>> <</if>> <<else>> @@ -193,7 +198,7 @@ <</if>> <<if $activeSlave.inflation == 0 && $activeSlave.bellyImplant < 1500>> <<if $activeSlave.assignment != "work in the dairy" && $activeSlave.assignment != "be confined in the arcade" && $activeSlave.assignment != "be confined in the cellblock">> - | <<link "Use another slave to force-feed $him" "SlaveOnSlaveFeedingWorkAround">><</link>> + | <<link "Use another slave to forcefeed $him" "SlaveOnSlaveFeedingWorkAround">><</link>> <<if $buckets == 1>> | <<link "Make $him consume two liters of slave food">><<set $activeSlave.inflationType = "food">><<set $activeSlave.inflationMethod = 1>><<set $activeSlave.inflation = 1>><<replace "#miniscene">><<include "forceFeeding">><br><</replace>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> <<if $activeSlave.pregKnown == 0>> @@ -349,7 +354,7 @@ <</if>> <</if>> <<if $cheatMode == 1>> - | <<link "Check $his stats">><<replace "#miniscene">><<set $deadliness = Deadliness($activeSlave)>><<include "Slave Stats">><br> <</replace>><</link>> + | <<link "Check $his stats">><<replace "#miniscene">><<include "Slave Stats">><</replace>><</link>> <</if>> <<else>> /* IS A FUCKDOLL */ <<link "Fuck its face hole">><<replace "#miniscene">><<FFuckdollOral>><br><</replace>><</link>> @@ -626,8 +631,8 @@ <<if _numFacilities-- > 1>>|<</if>> <</if>> - <<if $farmyard != 0>> /* TODO: This will need reworking - it's currently a copy of the club, just to get it in */ - <<if $farmyard > $farmyardSlaves && ((($activeSlave.devotion > 50) || (($activeSlave.devotion >= -50) && ($activeSlave.trust < -20)) || ($activeSlave.trust < -50) || ($activeSlave.trust > 50)) && ($activeSlave.breedingMark != 1 || $propOutcome == 0))>> + <<if $farmyard != 0>> + <<if $farmyard > $farmyardSlaves>> [[Farmyard|Assign][$assignTo = "Farmyard", $i = -1]] /* $i = -1 tells Assign to use $activeSlave as-is */ <<else>>Farmyard<</if>> <<if _numFacilities-- > 1>>|<</if>> @@ -1350,105 +1355,105 @@ Aphrodisiacs: <span id="aphrodisiacs"><strong><<if $activeSlave.aphrodisiacs > 1 <<set _WL = $activeSlave.womb.length>> <<if $incubator > 0>> - <<if $activeSlave.preg > 0 && $activeSlave.broodmother == 0 && $activeSlave.pregKnown == 1 && $activeSlave.eggType == "human">> - <<if $activeSlave.assignment == "work in the dairy" && $dairyPregSetting > 0>> - <<else>> - <br> - <<if _WL - _reservedNursery == 0>> - //$His children are already reserved for $nurseryName// +<<if $activeSlave.preg > 0 && $activeSlave.broodmother == 0 && $activeSlave.pregKnown == 1 && $activeSlave.eggType == "human">> +<<if ($activeSlave.assignment == "work in the dairy" && $dairyPregSetting > 0) || ($activeSlave.assignment == "work in the farmyard" && $farmyardBreeding > 0)>> +<<else>> + <br> + <<if _WL - _reservedNursery == 0>> + //$His children are already reserved for $nurseryName// + <<else>> + <<set $freeTanks = ($incubator-$tanks.length)>> + <<if _reservedIncubator > 0>> + <<if _WL == 1>> + $His child will be placed in $incubatorName. + <<elseif _reservedIncubator < _WL>> + _reservedIncubator of $his children will be placed in $incubatorName. + <<elseif _WL == 2>> + Both of $his children will be placed in $incubatorName. <<else>> - <<set $freeTanks = ($incubator-$tanks.length)>> + All _reservedIncubator of $his children will be placed in $incubatorName. + <</if>> + <<if (_reservedIncubator + _reservedNursery < _WL) && ($reservedChildren < $freeTanks)>> + <<link "Keep another child" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "incubator", 1)>><</link>> <<if _reservedIncubator > 0>> - <<if _WL == 1>> - $His child will be placed in $incubatorName. - <<elseif _reservedIncubator < _WL>> - _reservedIncubator of $his children will be placed in $incubatorName. - <<elseif _WL == 2>> - Both of $his children will be placed in $incubatorName. - <<else>> - All _reservedIncubator of $his children will be placed in $incubatorName. - <</if>> - <<if (_reservedIncubator + _reservedNursery < _WL) && ($reservedChildren < $freeTanks)>> - <<link "Keep another child" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "incubator", 1)>><</link>> - <<if _reservedIncubator > 0>> - | <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 1)>><</link>> - <</if>> - <<if _reservedIncubator > 1>> - | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 9999)>><</link>> - <</if>> - <<if ($reservedChildren + _WL - _reservedIncubator) <= $freeTanks>> - | <<link "Keep the rest of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "incubator", 9999)>><</link>> - <</if>> - <<elseif (_reservedIncubator == _WL) || ($reservedChildren == $freeTanks) || (_reservedIncubator - _reservedNursery >= 0)>> - <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 1)>><</link>> - <<if _reservedIncubator > 1>> - | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 9999)>><</link>> - <</if>> - <</if>> - <<elseif $reservedChildren < $freeTanks>> - $He is pregnant and you have <<if $freeTanks == 1>>an<</if>> @@.lime;available aging tank<<if $freeTanks > 1>>s<</if>>.@@ - <<print "[[Keep "+ ((_WL > 1) ? "a" : "the") +" child|Slave Interact][WombAddToGenericReserve($activeSlave, 'incubator', 1)]]">> - <<if (_WL > 1) && ($reservedChildren + _WL) <= $freeTanks>> - | <<link "Keep all of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "incubator", 9999)>><</link>> - <</if>> - <<elseif $reservedChildren == $freeTanks>> - You have no available tanks for $his children. + | <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 1)>><</link>> + <</if>> + <<if _reservedIncubator > 1>> + | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 9999)>><</link>> + <</if>> + <<if ($reservedChildren + _WL - _reservedIncubator) <= $freeTanks>> + | <<link "Keep the rest of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "incubator", 9999)>><</link>> + <</if>> + <<elseif (_reservedIncubator == _WL) || ($reservedChildren == $freeTanks) || (_reservedIncubator - _reservedNursery >= 0)>> + <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 1)>><</link>> + <<if _reservedIncubator > 1>> + | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "incubator", 9999)>><</link>> <</if>> <</if>> + <<elseif $reservedChildren < $freeTanks>> + $He is pregnant and you have <<if $freeTanks == 1>>an<</if>> @@.lime;available aging tank<<if $freeTanks > 1>>s<</if>>.@@ + <<print "[[Keep "+ ((_WL > 1) ? "a" : "the") +" child|Slave Interact][WombAddToGenericReserve($activeSlave, 'incubator', 1)]]">> + <<if (_WL > 1) && ($reservedChildren + _WL) <= $freeTanks>> + | <<link "Keep all of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "incubator", 9999)>><</link>> + <</if>> + <<elseif $reservedChildren == $freeTanks>> + You have no available tanks for $his children. <</if>> <</if>> <</if>> +<</if>> +<</if>> <<if $nursery > 0>> - <<if $activeSlave.preg > 0 && $activeSlave.broodmother == 0 && $activeSlave.pregKnown == 1 && $activeSlave.eggType == "human">> - <<if $activeSlave.assignment == "work in the dairy" && $dairyPregSetting > 0>> - <<else>> - <br> - <<if _WL - _reservedIncubator == 0>> - <<set $reservedChildren = 0>> - //$His children are already reserved for $incubatorName// +<<if $activeSlave.preg > 0 && $activeSlave.broodmother == 0 && $activeSlave.pregKnown == 1 && $activeSlave.eggType == "human">> +<<if ($activeSlave.assignment == "work in the dairy" && $dairyPregSetting > 0) || ($activeSlave.assignment == "work in the farmyard" && $farmyardBreeding > 0)>> +<<else>> + <br> + <<if _WL - _reservedIncubator == 0>> + <<set $reservedChildren = 0>> + //$His children are already reserved for $incubatorName// + <<else>> + <<set $freeCribs = ($nursery-$cribs.length)>> + <<if _reservedNursery > 0>> + <<if _WL == 1>> + $His child will be placed in $nurseryName. + <<elseif _reservedNursery < _WL>> + _reservedNursery of $his children will be placed in $nurseryName. + <<elseif _WL == 2>> + Both of $his children will be placed in $nurseryName. <<else>> - <<set $freeCribs = ($nursery-$cribs.length)>> + All _reservedNursery of $his children will be placed in $nurseryName. + <</if>> + <<if ((_reservedIncubator + _reservedNursery < _WL) && ($reservedChildrenNursery < $freeCribs))>> + <<link "Keep another child" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "nursery", 1)>><</link>> <<if _reservedNursery > 0>> - <<if _WL == 1>> - $His child will be placed in $nurseryName. - <<elseif _reservedNursery < _WL>> - _reservedNursery of $his children will be placed in $nurseryName. - <<elseif _WL == 2>> - Both of $his children will be placed in $nurseryName. - <<else>> - All _reservedNursery of $his children will be placed in $nurseryName. - <</if>> - <<if ((_reservedIncubator + _reservedNursery < _WL) && ($reservedChildrenNursery < $freeCribs))>> - <<link "Keep another child" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "nursery", 1)>><</link>> - <<if _reservedNursery > 0>> - | <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 1)>><</link>> - <</if>> - <<if _reservedNursery > 1>> - | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 9999)>><</link>> - <</if>> - <<if ($reservedChildrenNursery + _WL - _reservedNursery) <= $freeCribs>> - | <<link "Keep the rest of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "nursery", 9999)>><</link>> - <</if>> - <<elseif (_reservedNursery == _WL) || ($reservedChildrenNursery == $freeCribs) || (_reservedNursery - _reservedIncubator >= 0)>> - <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 1)>><</link>> - <<if _reservedNursery > 1>> - | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 9999)>><</link>> - <</if>> - <</if>> - <<elseif $reservedChildrenNursery < $freeCribs>> - $He is pregnant and you have <<if $freeCribs == 1>>an<</if>> @@.lime;available room<<if $freeCribs > 1>>s<</if>>@@ in $nurseryName. - <<print "[[Keep "+ ((_WL > 1) ? "a" : "the") +" child|Slave Interact][WombAddToGenericReserve($activeSlave, 'nursery', 1)]]">> - <<if (_WL > 1) && ($reservedChildrenNursery + _WL) <= $freeCribs>> - | <<link "Keep all of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "nursery", 9999)>><</link>> - <</if>> - <<elseif $reservedChildrenNursery == $freeCribs>> - You have no available rooms for $his children. + | <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 1)>><</link>> + <</if>> + <<if _reservedNursery > 1>> + | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 9999)>><</link>> <</if>> + <<if ($reservedChildrenNursery + _WL - _reservedNursery) <= $freeCribs>> + | <<link "Keep the rest of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "nursery", 9999)>><</link>> + <</if>> + <<elseif (_reservedNursery == _WL) || ($reservedChildrenNursery == $freeCribs) || (_reservedNursery - _reservedIncubator >= 0)>> + <<link "Keep one less child" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 1)>><</link>> + <<if _reservedNursery > 1>> + | <<link "Keep none of $his children" "Slave Interact">><<set WombCleanGenericReserve($activeSlave, "nursery", 9999)>><</link>> + <</if>> + <</if>> + <<elseif $reservedChildrenNursery < $freeCribs>> + $He is pregnant and you have <<if $freeCribs == 1>>an<</if>> @@.lime;available room<<if $freeCribs > 1>>s<</if>>@@ in $nurseryName. + <<print "[[Keep "+ ((_WL > 1) ? "a" : "the") +" child|Slave Interact][WombAddToGenericReserve($activeSlave, 'nursery', 1)]]">> + <<if (_WL > 1) && ($reservedChildrenNursery + _WL) <= $freeCribs>> + | <<link "Keep all of $his children" "Slave Interact">><<set WombAddToGenericReserve($activeSlave, "nursery", 9999)>><</link>> <</if>> + <<elseif $reservedChildrenNursery == $freeCribs>> + You have no available rooms for $his children. <</if>> <</if>> <</if>> +<</if>> +<</if>> <<if $propOutcome == 1 && $arcologies[0].FSRestart != "unset">> <<if $activeSlave.breedingMark == 0 && $activeSlave.fuckdoll == 0 && $activeSlave.eggType == "human" && isFertile($activeSlave)>> @@ -1459,17 +1464,17 @@ Aphrodisiacs: <span id="aphrodisiacs"><strong><<if $activeSlave.aphrodisiacs > 1 <span id="bloating"> <<if $activeSlave.inflation > 0>> - <br> - __Required Bloating__: <strong><span id="inflate"><<if $activeSlave.inflation == 3>><<print "$He is required to keep 2 gallons of $activeSlave.inflationType in $him at all times">><<elseif $activeSlave.inflation == 2>><<print "$He is required to keep 4 liters of $activeSlave.inflationType in $him at all times">><<elseif $activeSlave.inflation == 1>><<print "$He is required to keep 2 liters of $activeSlave.inflationType in $him at all times">><</if>></span></strong>. - <<if $activeSlave.inflationMethod == 3>> - <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0,$activeSlave.cumSource = 0,$activeSlave.milkSource = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> - <<elseif $activeSlave.inflationType == "milk">> - <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> - <<elseif $activeSlave.inflationType == "cum">> - <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> - <<else>> - <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> - <</if>> +<br> +__Required Bloating__: <strong><span id="inflate"><<if $activeSlave.inflation == 3>><<print "$He is required to keep 2 gallons of $activeSlave.inflationType in $him at all times">><<elseif $activeSlave.inflation == 2>><<print "$He is required to keep 4 liters of $activeSlave.inflationType in $him at all times">><<elseif $activeSlave.inflation == 1>><<print "$He is required to keep 2 liters of $activeSlave.inflationType in $him at all times">><</if>></span></strong>. +<<if $activeSlave.inflationMethod == 3>> + <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0,$activeSlave.cumSource = 0,$activeSlave.milkSource = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> +<<elseif $activeSlave.inflationType == "milk">> + <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> +<<elseif $activeSlave.inflationType == "cum">> + <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> +<<else>> + <<link "Let $him deflate">><<set $activeSlave.inflation = 0,$activeSlave.inflationType = "none",$activeSlave.inflationMethod = 0, SetBellySize($activeSlave)>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>> +<</if>> <</if>> </span> @@ -1477,58 +1482,58 @@ Aphrodisiacs: <span id="aphrodisiacs"><strong><<if $activeSlave.aphrodisiacs > 1 Hormones: <strong><span id="hormones"> <<if $activeSlave.hormones == -2>>intensive male<<elseif $activeSlave.hormones == -1>>male<<elseif $activeSlave.hormones == 2>>intensive female<<elseif $activeSlave.hormones == 1>>female<<else>>none<</if>></span></strong>. <<if $activeSlave.indentureRestrictions < 2>> - <<link "Intensive Female">><<set $activeSlave.hormones = 2>><<replace "#hormones">>intensive female<</replace>><</link>> | +<<link "Intensive Female">><<set $activeSlave.hormones = 2>><<replace "#hormones">>intensive female<</replace>><</link>> | <</if>> <<link "Female">><<set $activeSlave.hormones = 1>><<replace "#hormones">>female<</replace>><</link>> | <<link "None">><<set $activeSlave.hormones = 0>><<replace "#hormones">>none<</replace>><</link>> | <<link "Male">><<set $activeSlave.hormones = -1>><<replace "#hormones">>male<</replace>><</link>> | <<if $activeSlave.indentureRestrictions < 2>> - <<link "Intensive Male">><<set $activeSlave.hormones = -2>><<replace "#hormones">>intensive male<</replace>><</link>> +<<link "Intensive Male">><<set $activeSlave.hormones = -2>><<replace "#hormones">>intensive male<</replace>><</link>> <</if>> <br>Diet: <strong><span id="diet">$activeSlave.diet</span></strong>. <<link "Healthy">><<set $activeSlave.diet = "healthy">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <<if ($activeSlave.health < 90 || $activeSlave.chem >= 10) && ($dietCleanse == 1)>> - | <<link "Cleanse">><<set $activeSlave.diet = "cleansing">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Cleanse">><<set $activeSlave.diet = "cleansing">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <<elseif ($dietCleanse == 1)>> - | //$He is already healthy// +| //$He is already healthy// <</if>> <<if ($activeSlave.balls > 0) && ($cumProDiet == 1)>> - | <<link "Cum production">><<set $activeSlave.diet = "cum production">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Cum production">><<set $activeSlave.diet = "cum production">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <</if>> <<if canGetPregnant($activeSlave) && ($dietFertility == 1)>> - | <<link "Fertility">><<set $activeSlave.diet = "fertility">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Fertility">><<set $activeSlave.diet = "fertility">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <</if>> <<if ($activeSlave.weight >= -95)>> - | <<link "Lose weight">><<set $activeSlave.diet = "restricted">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Lose weight">><<set $activeSlave.diet = "restricted">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <<else>> - | //$He is already underweight// +| //$He is already underweight// <</if>> <<if $activeSlave.weight <= 200>> - | <<link "Fatten">><<set $activeSlave.diet = "fattening">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Fatten">><<set $activeSlave.diet = "fattening">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <<else>> - | //$He is already extremely overweight// +| //$He is already extremely overweight// <</if>> <<if $feeder == 1>> - | <<link "Estrogen enriched">><<set $activeSlave.diet = "XX">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> - | <<link "Testosterone enriched">><<set $activeSlave.diet = "XY">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> - <<if $dietXXY == 1 && $activeSlave.balls > 0 && ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>> - | <<link "Herm hormone blend">><<set $activeSlave.diet = "XXY">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> - <</if>> +| <<link "Estrogen enriched">><<set $activeSlave.diet = "XX">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Testosterone enriched">><<set $activeSlave.diet = "XY">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +<<if $dietXXY == 1 && $activeSlave.balls > 0 && ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>> +| <<link "Herm hormone blend">><<set $activeSlave.diet = "XXY">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +<</if>> <</if>> <<if ($activeSlave.muscles <= 95) && $activeSlave.amp != 1>> - | <<link "Build muscle">><<set $activeSlave.diet = "muscle building">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Build muscle">><<set $activeSlave.diet = "muscle building">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <<elseif $activeSlave.muscles > 95 && $activeSlave.amp != 1>> - | //$He is maintaining $his enormous musculature// +| //$He is maintaining $his enormous musculature// <<else>> - | //$He has no limbs and thus can't effectively build muscle// +| //$He has no limbs and thus can't effectively build muscle// <</if>> <<if ($activeSlave.muscles > 5 || $activeSlave.fuckdoll == 0) && canWalk($activeSlave)>> - | <<link "Slim down">><<set $activeSlave.diet = "slimming">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> +| <<link "Slim down">><<set $activeSlave.diet = "slimming">><<replace "#diet">>$activeSlave.diet<</replace>><</link>> <<elseif !canWalk($activeSlave)>> - | //$He can't move and thus can't trim down// +| //$He can't move and thus can't trim down// <<elseif $activeSlave.fuckdoll > 0>> - | //$He has no muscles left to lose// +| //$He has no muscles left to lose// <</if>> <br>Diet Base: <strong><span id="dietBase"><<if $activeSlave.dietCum == 2>>Cum Based<<elseif ($activeSlave.dietCum == 1) && ($activeSlave.dietMilk == 0)>>Cum Added<<elseif ($activeSlave.dietCum == 1) && ($activeSlave.dietMilk == 1)>>Cum and Milk Added<<elseif ($activeSlave.dietMilk == 1) && ($activeSlave.dietCum == 0)>>Milk Added<<elseif ($activeSlave.dietMilk == 2)>>Milk Based<<elseif ($activeSlave.dietCum == 0) && ($activeSlave.dietMilk == 0)>>Normal<<else>>THERE HAS BEEN AN ERROR<</if>></span></strong> @@ -1625,7 +1630,7 @@ Hormones: <strong><span id="hormones"> | <<link "Dom">><<set $activeSlave.clitSetting = "dom">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>> | <<link "Humiliation">><<set $activeSlave.clitSetting = "humiliation">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>> <<if $seePreg != 0>> - | <<link "Preg">><<set $activeSlave.clitSetting = "pregnancy">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>> + | <<link "Preg">><<set $activeSlave.clitSetting = "pregnancy">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>> <</if>> | <<link "Pain">><<set $activeSlave.clitSetting = "masochist">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>> | <<link "Sadism">><<set $activeSlave.clitSetting = "sadist">><<replace "#setting">>$activeSlave.clitSetting<</replace>><</link>> @@ -1827,4 +1832,4 @@ __Financial__: | <<link "Export this slave" "Export Slave">><</link>> <<if $cheatMode>> | <<link "Import a slave" "Import Slave">><</link>> -<</if>> +<</if>> \ No newline at end of file diff --git a/src/uncategorized/slaveStats.tw b/src/uncategorized/slaveStats.tw index 3647e439aa6d955c3a496fc9738f71af25d05423..d416a2b99dc8ecef331a684e6e60a4636220c8c7 100644 --- a/src/uncategorized/slaveStats.tw +++ b/src/uncategorized/slaveStats.tw @@ -1,10 +1,387 @@ :: Slave Stats [nobr] -/* TODO: add more stats here */ +/* TODO: format this so it isn't so long */ <<run clearSummaryCache($activeSlave)>> <<setLocalPronouns $activeSlave>> -<<Deadliness $activeSlave>> -<<set _deadliness = $deadliness>> -<<print _deadliness>> \ No newline at end of file +slaveName: $activeSlave.slaveName /* TODO: figure out why this is being indented ingame */ +<br>slaveSurname: $activeSlave.slaveSurname +<br>birthName: $activeSlave.birthName +<br>birthSurname: $activeSlave.birthSurname +<br>genes: $activeSlave.genes +<br>pronoun: $activeSlave.pronoun +<br>possessive: $activeSlave.possessive +<br>possessivePronoun: $activeSlave.possessivePronoun +<br>objectReflexive: $activeSlave.objectReflexive +<br>object: $activeSlave.object +<br>noun: $activeSlave.noun +<br>weekAcquired: $activeSlave.weekAcquired +<br>origin: $activeSlave.origin +<br>career: $activeSlave.career +<br>ID: $activeSlave.ID +<br>prestige: $activeSlave.prestige +<br>pornFeed: $activeSlave.pornFeed +<br>pornFame: $activeSlave.pornFame +<br>pornFameSpending: $activeSlave.pornFameSpending +<br>pornPrestige: $activeSlave.pornPrestige +<br>pornPrestigeDesc: $activeSlave.pornPrestigeDesc +<br>pornFameType: $activeSlave.pornFameType +<br>pornFocus: $activeSlave.pornFocus +<br>pornTypeGeneral: $activeSlave.pornTypeGeneral +<br>pornTypeFuckdoll: $activeSlave.pornTypeFuckdoll +<br>pornTypeRape: $activeSlave.pornTypeRape +<br>pornTypePreggo: $activeSlave.pornTypePreggo +<br>pornTypeBBW: $activeSlave.pornTypeBBW +<br>pornTypeGainer: $activeSlave.pornTypeGainer +<br>pornTypeStud: $activeSlave.pornTypeStud +<br>pornTypeLoli: $activeSlave.pornTypeLoli +<br>pornTypeDeepThroat: $activeSlave.pornTypeDeepThroat +<br>pornTypeStruggleFuck: $activeSlave.pornTypeStruggleFuck +<br>pornTypePainal: $activeSlave.pornTypePainal +<br>pornTypeTease: $activeSlave.pornTypeTease +<br>pornTypeRomantic: $activeSlave.pornTypeRomantic +<br>pornTypePervert: $activeSlave.pornTypePervert +<br>pornTypeCaring: $activeSlave.pornTypeCaring +<br>pornTypeUnflinching: $activeSlave.pornTypeUnflinching +<br>pornTypeSizeQueen: $activeSlave.pornTypeSizeQueen +<br>pornTypeNeglectful: $activeSlave.pornTypeNeglectful +<br>pornTypeCumAddict: $activeSlave.pornTypeCumAddict +<br>pornTypeAnalAddict: $activeSlave.pornTypeAnalAddict +<br>pornTypeAttentionWhore: $activeSlave.pornTypeAttentionWhore +<br>pornTypeBreastGrowth: $activeSlave.pornTypeBreastGrowth +<br>pornTypeAbusive: $activeSlave.pornTypeAbusive +<br>pornTypeMalicious: $activeSlave.pornTypeMalicious +<br>pornTypeSelfHating: $activeSlave.pornTypeSelfHating +<br>pornTypeBreeder: $activeSlave.pornTypeBreeder +<br>pornTypeSub: $activeSlave.pornTypeSub +<br>pornTypeCumSlut: $activeSlave.pornTypeCumSlut +<br>pornTypeAnal: $activeSlave.pornTypeAnal +<br>pornTypeHumiliation: $activeSlave.pornTypeHumiliation +<br>pornTypeBoobs: $activeSlave.pornTypeBoobs +<br>pornTypeDom: $activeSlave.pornTypeDom +<br>pornTypeSadist: $activeSlave.pornTypeSadist +<br>pornTypeMasochist: $activeSlave.pornTypeMasochist +<br>pornTypePregnancy: $activeSlave.pornTypePregnancy +<br>prestigeDesc: $activeSlave.prestigeDesc +<br>recruiter: $activeSlave.recruiter +<br>relation: $activeSlave.relation +<br>relationTarget: $activeSlave.relationTarget +<br>relationship: $activeSlave.relationship +<br>relationshipTarget: $activeSlave.relationshipTarget +<br>rivalry: $activeSlave.rivalry +<br>rivalryTarget: $activeSlave.rivalryTarget +<br>subTarget: $activeSlave.subTarget +<br>father: $activeSlave.father +<br>mother: $activeSlave.mother +<br>daughters: $activeSlave.daughters +<br>sisters: $activeSlave.sisters +<br>canRecruit: $activeSlave.canRecruit +<br>choosesOwnAssignment: $activeSlave.choosesOwnAssignment +<br>assignment: $activeSlave.assignment +<br>assignmentVisible: $activeSlave.assignmentVisible +<br>sentence: $activeSlave.sentence +<br>training: $activeSlave.training +<br>toyHole: $activeSlave.toyHole +<br>indenture: $activeSlave.indenture +<br>indentureRestrictions: $activeSlave.indentureRestrictions +<br>birthWeek: $activeSlave.birthWeek +<br>actualAge: $activeSlave.actualAge +<br>visualAge: $activeSlave.visualAge +<br>physicalAge: $activeSlave.physicalAge +<br>ovaryAge: $activeSlave.ovaryAge +<br>ageImplant: $activeSlave.ageImplant +<br>health: $activeSlave.health +<br>minorInjury: $activeSlave.minorInjury +<br>trust: $activeSlave.trust +<br>oldTrust: $activeSlave.oldTrust +<br>devotion: $activeSlave.devotion +<br>oldDevotion: $activeSlave.oldDevotion +<br>weight: $activeSlave.weight +<br>muscles: $activeSlave.muscles +<br>height: $activeSlave.height +<br>heightImplant: $activeSlave.heightImplant +<br>nationality: $activeSlave.nationality +<br>race: $activeSlave.race +<br>origRace: $activeSlave.origRace +<br>markings: $activeSlave.markings +<br>eyes: $activeSlave.eyes +<br>eyeColor: $activeSlave.eyeColor +<br>origEye: $activeSlave.origEye +<br>pupil: $activeSlave.pupil +<br>sclerae: $activeSlave.sclerae +<br>eyewear: $activeSlave.eyewear +<br>hears: $activeSlave.hears +<br>earwear: $activeSlave.earwear +<br>earImplant: $activeSlave.earImplant +<br>origHColor: $activeSlave.origHColor +<br>hColor: $activeSlave.hColor +<br>pubicHColor: $activeSlave.pubicHColor +<br>underArmHColor: $activeSlave.underArmHColor +<br>eyebrowHColor: $activeSlave.eyebrowHColor +<br>origSkin: $activeSlave.origSkin +<br>skin: $activeSlave.skin +<br>hLength: $activeSlave.hLength +<br>eyebrowFullness: $activeSlave.eyebrowFullness +<br>hStyle: $activeSlave.hStyle +<br>pubicHStyle: $activeSlave.pubicHStyle +<br>underArmHStyle: $activeSlave.underArmHStyle +<br>eyebrowHStyle: $activeSlave.eyebrowHStyle +<br>waist: $activeSlave.waist +<br>corsetPiercing: $activeSlave.corsetPiercing +<br>PLimb: $activeSlave.PLimb +<br>amp: $activeSlave.amp +<br>heels: $activeSlave.heels +<br>voice: $activeSlave.voice +<br>voiceImplant: $activeSlave.voiceImplant +<br>accent: $activeSlave.accent +<br>shoulders: $activeSlave.shoulders +<br>shouldersImplant: $activeSlave.shouldersImplant +<br>boobs: $activeSlave.boobs +<br>boobsMilk: $activeSlave.boobsMilk +<br>boobsImplant: $activeSlave.boobsImplant +<br>boobsImplantType: $activeSlave.boobsImplantType +<br>boobShape: $activeSlave.boobShape +<br>nipples: $activeSlave.nipples +<br>nipplesPiercing: $activeSlave.nipplesPiercing +<br>nipplesAccessory: $activeSlave.nipplesAccessory +<br>areolae: $activeSlave.areolae +<br>areolaePiercing: $activeSlave.areolaePiercing +<br>areolaeShape: $activeSlave.areolaeShape +<br>boobsTat: $activeSlave.boobsTat +<br>lactation: $activeSlave.lactation +<br>lactationDuration: $activeSlave.lactationDuration +<br>induceLactation: $activeSlave.induceLactation +<br>lactationAdaptation: $activeSlave.lactationAdaptation +<br>milk: $activeSlave.milk +<br>cum: $activeSlave.cum +<br>hips: $activeSlave.hips +<br>hipsImplant: $activeSlave.hipsImplant +<br>butt: $activeSlave.butt +<br>buttImplant: $activeSlave.buttImplant +<br>buttImplantType: $activeSlave.buttImplantType +<br>buttTat: $activeSlave.buttTat +<br>face: $activeSlave.face +<br>faceImplant: $activeSlave.faceImplant +<br>faceShape: $activeSlave.faceShape +<br>lips: $activeSlave.lips +<br>lipsImplant: $activeSlave.lipsImplant +<br>lipsPiercing: $activeSlave.lipsPiercing +<br>lipsTat: $activeSlave.lipsTat +<br>teeth: $activeSlave.teeth +<br>tonguePiercing: $activeSlave.tonguePiercing +<br>vagina: $activeSlave.vagina +<br>vaginaLube: $activeSlave.vaginaLube +<br>vaginaPiercing: $activeSlave.vaginaPiercing +<br>vaginaTat: $activeSlave.vaginaTat +<br>preg: $activeSlave.preg +<br>pregSource: $activeSlave.pregSource +<br>pregType: $activeSlave.pregType +<br>pregAdaptation: $activeSlave.pregAdaptation +<br>ovaImplant: $activeSlave.ovaImplant +<br>wombImplant: $activeSlave.wombImplant +<br>broodmother: $activeSlave.broodmother +<br>broodmotherFetuses: $activeSlave.broodmotherFetuses +<br>broodmotherOnHold: $activeSlave.broodmotherOnHold +<br>broodmotherCountDown: $activeSlave.broodmotherCountDown +<br>labor: $activeSlave.labor +<br>births: $activeSlave.births +<br>laborCount: $activeSlave.laborCount +<br>cSec: $activeSlave.cSec +<br>bellyAccessory: $activeSlave.bellyAccessory +<br>labia: $activeSlave.labia +<br>clit: $activeSlave.clit +<br>clitPiercing: $activeSlave.clitPiercing +<br>clitSetting: $activeSlave.clitSetting +<br>foreskin: $activeSlave.foreskin +<br>anus: $activeSlave.anus +<br>dick: $activeSlave.dick +<br>analArea: $activeSlave.analArea +<br>dickPiercing: $activeSlave.dickPiercing +<br>dickTat: $activeSlave.dickTat +<br>prostate: $activeSlave.prostate +<br>balls: $activeSlave.balls +<br>scrotum: $activeSlave.scrotum +<br>ovaries: $activeSlave.ovaries +<br>anusPiercing: $activeSlave.anusPiercing +<br>anusTat: $activeSlave.anusTat +<br>makeup: $activeSlave.makeup +<br>nails: $activeSlave.nails +<br>brand: $activeSlave.brand +<br>brandLocation: $activeSlave.brandLocation +<br>earPiercing: $activeSlave.earPiercing +<br>nosePiercing: $activeSlave.nosePiercing +<br>eyebrowPiercing: $activeSlave.eyebrowPiercing +<br>navelPiercing: $activeSlave.navelPiercing +<br>shouldersTat: $activeSlave.shouldersTat +<br>armsTat: $activeSlave.armsTat +<br>legsTat: $activeSlave.legsTat +<br>backTat: $activeSlave.backTat +<br>stampTat: $activeSlave.stampTat +<br>vaginalSkill: $activeSlave.vaginalSkill +<br>oralSkill: $activeSlave.oralSkill +<br>analSkill: $activeSlave.analSkill +<br>whoreSkill: $activeSlave.whoreSkill +<br>entertainSkill: $activeSlave.entertainSkill +<br>combatSkill: $activeSlave.combatSkill +<br>livingRules: $activeSlave.livingRules +<br>speechRules: $activeSlave.speechRules +<br>releaseRules: $activeSlave.releaseRules +<br>relationshipRules: $activeSlave.relationshipRules +<br>lactationRules: $activeSlave.lactationRules +<br>standardPunishment: $activeSlave.standardPunishment +<br>standardReward: $activeSlave.standardReward +<br>useRulesAssistant: $activeSlave.useRulesAssistant +<br>diet: $activeSlave.diet +<br>dietCum: $activeSlave.dietCum +<br>dietMilk: $activeSlave.dietMilk +<br>tired: $activeSlave.tired +<br>hormones: $activeSlave.hormones +<br>drugs: $activeSlave.drugs +<br>curatives: $activeSlave.curatives +<br>chem: $activeSlave.chem +<br>aphrodisiacs: $activeSlave.aphrodisiacs +<br>addict: $activeSlave.addict +<br>fuckdoll: $activeSlave.fuckdoll +<br>choosesOwnClothes: $activeSlave.choosesOwnClothes +<br>clothes: $activeSlave.clothes +<br>collar: $activeSlave.collar +<br>shoes: $activeSlave.shoes +<br>vaginalAccessory: $activeSlave.vaginalAccessory +<br>dickAccessory: $activeSlave.dickAccessory +<br>legAccessory: $activeSlave.legAccessory +<br>buttplug: $activeSlave.buttplug +<br>buttplugAttachment: $activeSlave.buttplugAttachment +<br>intelligence: $activeSlave.intelligence +<br>intelligenceImplant: $activeSlave.intelligenceImplant +<br>energy: $activeSlave.energy +<br>need: $activeSlave.need +<br>attrXX: $activeSlave.attrXX +<br>attrXY: $activeSlave.attrXY +<br>attrKnown: $activeSlave.attrKnown +<br>fetish: $activeSlave.fetish +<br>fetishStrength: $activeSlave.fetishStrength +<br>fetishKnown: $activeSlave.fetishKnown +<br>behavioralFlaw: $activeSlave.behavioralFlaw +<br>behavioralQuirk: $activeSlave.behavioralQuirk +<br>sexualFlaw: $activeSlave.sexualFlaw +<br>sexualQuirk: $activeSlave.sexualQuirk +<br>''Genetic Quirks'' +<br>geneticQuirks: $activeSlave.geneticQuirks.gigantomastia +<br>geneticQuirks: $activeSlave.geneticQuirks.fertility +<br>geneticQuirks: $activeSlave.geneticQuirks.hyperFertility +<br>geneticQuirks: $activeSlave.geneticQuirks.superfetation +<br>geneticQuirks: $activeSlave.geneticQuirks.gigantism +<br>geneticQuirks: $activeSlave.geneticQuirks.dwarfism +<br>geneticQuirks: $activeSlave.geneticQuirks.pFace +<br>geneticQuirks: $activeSlave.geneticQuirks.uFace +<br>geneticQuirks: $activeSlave.geneticQuirks.albinism +<br>geneticQuirks: $activeSlave.geneticQuirks.rearLipedema +<br>geneticQuirks: $activeSlave.geneticQuirks.wellHung +<br>geneticQuirks: $activeSlave.geneticQuirks.wGain +<br>geneticQuirks: $activeSlave.geneticQuirks.wLoss +<br>geneticQuirks: $activeSlave.geneticQuirks.androgyny +<br>oralCount: $activeSlave.oralCount +<br>vaginalCount: $activeSlave.vaginalCount +<br>analCount: $activeSlave.analCount +<br>mammaryCount: $activeSlave.mammaryCount +<br>penetrativeCount: $activeSlave.penetrativeCount +<br>publicCount: $activeSlave.publicCount +<br>pitKills: $activeSlave.pitKills +<br>customTat: $activeSlave.customTat +<br>customLabel: $activeSlave.customLabel +<br>customDesc: $activeSlave.customDesc +<br>customTitle: $activeSlave.customTitle +<br>customTitleLisp: $activeSlave.customTitleLisp +<br>rudeTitle: $activeSlave.rudeTitle +<br>customImage: $activeSlave.customImage +<br>currentRules: $activeSlave.currentRules +<br>bellyTat: $activeSlave.bellyTat +<br>induce: $activeSlave.induce +<br>mpreg: $activeSlave.mpreg +<br>inflation: $activeSlave.inflation +<br>inflationType: $activeSlave.inflationType +<br>inflationMethod: $activeSlave.inflationMethod +<br>milkSource: $activeSlave.milkSource +<br>cumSource: $activeSlave.cumSource +<br>burst: $activeSlave.burst +<br>pregKnown: $activeSlave.pregKnown +<br>pregWeek: $activeSlave.pregWeek +<br>belly: $activeSlave.belly +<br>bellyPreg: $activeSlave.bellyPreg +<br>bellyFluid: $activeSlave.bellyFluid +<br>bellyImplant: $activeSlave.bellyImplant +<br>bellySag: $activeSlave.bellySag +<br>bellySagPreg: $activeSlave.bellySagPreg +<br>bellyPain: $activeSlave.bellyPain +<br>cervixImplant: $activeSlave.cervixImplant +<br>birthsTotal: $activeSlave.birthsTotal +<br>pubertyAgeXX: $activeSlave.pubertyAgeXX +<br>pubertyAgeXY: $activeSlave.pubertyAgeXY +<br>scars: $activeSlave.scars +<br>breedingMark: $activeSlave.breedingMark +<br>bodySwap: $activeSlave.bodySwap +<br>HGExclude: $activeSlave.HGExclude +<br>ballType: $activeSlave.ballType +<br>eggType: $activeSlave.eggType +<br>choosesOwnChastity: $activeSlave.choosesOwnChastity +<br>pregControl: $activeSlave.pregControl +<br>readyLimbs: $activeSlave.readyLimbs +<br>ageAdjust: $activeSlave.ageAdjust +<br>bald: $activeSlave.bald +<br>origBodyOwner: $activeSlave.origBodyOwner +<br>origBodyOwnerID: $activeSlave.origBodyOwnerID +<br>death: $activeSlave.death +<br>hormoneBalance: $activeSlave.hormoneBalance +<br>onDiet: $activeSlave.onDiet +<br>breastMesh: $activeSlave.breastMesh +<br>slavesFathered: $activeSlave.slavesFathered +<br>PCChildrenFathered: $activeSlave.PCChildrenFathered +<br>slavesKnockedUp: $activeSlave.slavesKnockedUp +<br>PCKnockedUp: $activeSlave.PCKnockedUp +<br>prematureBirth: $activeSlave.prematureBirth +<br>premature: $activeSlave.premature +<br>vasectomy: $activeSlave.vasectomy +<br>haircuts: $activeSlave.haircuts +<br>newGamePlus: $activeSlave.newGamePlus +<br>skillHG: $activeSlave.skillHG +<br>skillRC: $activeSlave.skillRC +<br>skillBG: $activeSlave.skillBG +<br>skillMD: $activeSlave.skillMD +<br>skillDJ: $activeSlave.skillDJ +<br>skillNU: $activeSlave.skillNU +<br>skillTE: $activeSlave.skillTE +<br>skillAT: $activeSlave.skillAT +<br>skillMT: $activeSlave.skillMT +<br>skillST: $activeSlave.skillST +<br>skillMM: $activeSlave.skillMM +<br>skillFA: $activeSlave.skillFA +<br>skillWA: $activeSlave.skillWA +<br>skillS: $activeSlave.skillS +<br>skillE: $activeSlave.skillE +<br>skillW: $activeSlave.skillW +<br>tankBaby: $activeSlave.tankBaby +<br>clone: $activeSlave.clone +<br>''Gene Mods'' +<br>geneMods: $activeSlave.geneMods.NCS +<br>geneMods: $activeSlave.geneMods.rapidCellGrowth +<br>NCSyouthening: $activeSlave.NCSyouthening +<br>override_Race: $activeSlave.override_Race +<br>override_Skin: $activeSlave.override_Skin +<br>override_Eye_Color: $activeSlave.override_Eye_Color +<br>override_H_Color: $activeSlave.override_H_Color +<br>override_Pubic_H_Color: $activeSlave.override_Pubic_H_Color +<br>override_Arm_H_Color: $activeSlave.override_Arm_H_Color +<br>override_Brow_H_Color: $activeSlave.override_Brow_H_Color +<br>missingEyes: $activeSlave.missingEyes +<br>missingArms: $activeSlave.missingArms +<br>missingLegs: $activeSlave.missingLegs +<br>slaveCost: $activeSlave.slaveCost +<br>lifetimeCashExpenses: $activeSlave.lifetimeCashExpenses +<br>lifetimeCashIncome: $activeSlave.lifetimeCashIncome +<br>lastWeeksCashIncome: $activeSlave.lastWeeksCashIncome +<br>lifetimeRepExpenses: $activeSlave.lifetimeRepExpenses +<br>lifetimeRepIncome: $activeSlave.lifetimeRepIncome +<br>lastWeeksRepIncome: $activeSlave.lastWeeksRepIncome +<br>Deadliness <<print Deadliness($activeSlave)>> +<br><br> \ No newline at end of file diff --git a/src/uncategorized/slaveSummary.tw b/src/uncategorized/slaveSummary.tw index 7fe01ef12b77e8195121cb5436eb3a836353eb3d..8b9444e82235598e555303b37cfe2beb2110d8ea 100644 --- a/src/uncategorized/slaveSummary.tw +++ b/src/uncategorized/slaveSummary.tw @@ -189,8 +189,6 @@ <<if (_Slave.assignment != "serve the public")>><<continue>><</if>> <<elseif $slaveAssignmentTab == "be a servant">> <<if (_Slave.assignment != "be a servant")>><<continue>><</if>> - <<elseif $slaveAssignmentTab == "work as a nanny">> - <<if (_Slave.assignment != "work as a nanny")>><<continue>><</if>> <<elseif $slaveAssignmentTab == "get milked">> <<if (_Slave.assignment != "get milked")>><<continue>><</if>> <<elseif $slaveAssignmentTab == "work a glory hole">> @@ -448,17 +446,12 @@ <<case "Milkmaid Select">> <br style="clear:both" /><<if $lineSeparations == 0>><br><<else>><hr style="margin:0"><</if>><<if ($seeImages == 1) && ($seeSummaryImages == 1)>><div class="imageRef smlImg"><<SlaveArt _Slave 1>></div><</if>> [[_slaveName|Milkmaid Workaround][$i = _ssi]] -<<case "Farmyard">> /* TODO: THIS WILL NEED TO BE REWORKED - CURRENTLY AN AMALGAMATION OF THE SERVANTS' QUARTERS AND THE DAIRY REQUIREMENTS (but mostly the servant's quarters)*/ +<<case "Farmyard">> <<if $Flag == 0>> - <<if _Slave.assignment == "work as a farmhand">><<continue>><</if>> + <<if _Slave.assignment == ("work as a farmhand")>><<continue>><</if>> <<if $farmyard <= $farmyardSlaves>><<continue>><</if>> - <<if (_Slave.devotion >= -20) || ((_Slave.devotion >= -50) && (_Slave.trust <= 20)) || (_Slave.trust < -20)>> <br style="clear:both" /><<if $lineSeparations == 0>><br><<else>><hr style="margin:0"><</if>><<if ($seeImages == 1) && ($seeSummaryImages == 1)>><div class="imageRef smlImg"><<SlaveArt _Slave 1>></div><</if>> [[_slaveName|Slave Interact][$activeSlave = $slaves[_ssi]]] - <<else>> - <br>//_Slave.slaveName must be either more fearful of you or devoted to you// - <<continue>> - <</if>> <<elseif $Flag == 1>> <br style="clear:both" /><<if $lineSeparations == 0>><br><<else>><hr style="margin:0"><</if>><<if ($seeImages == 1) && ($seeSummaryImages == 1)>><div class="imageRef smlImg"><<SlaveArt _Slave 1>></div><</if>> [[_slaveName|Slave Interact][$activeSlave = $slaves[_ssi]]] @@ -771,8 +764,8 @@ will <</if>> <<if $farmyard != 0>> - <<if $farmyard > $farmyardSlaves>> /* TODO: the requirement will need to be expanded, but I'm not sure what they should be at the moment */ - [[Farmyard|Assign][$assignTo = "Farmyard", $i = _ssi]] + <<if $farmyard > $farmyardSlaves>> + [[Farmyard|Assign][$assignTo = "Farmyard", $i = _ssi]] /* $i = -1 tells Assign to use _Slave as-is */ <<else>>Farmyard<</if>> <<if _numFacilities-- > 1>>|<</if>> <</if>> diff --git a/src/uncategorized/storyCaption.tw b/src/uncategorized/storyCaption.tw index 7d267919028c2b5068ce27ccd19cf02dd3c150c9..78cd9cb0b050b9be72ab2ac7c639fda13ebb88f2 100644 --- a/src/uncategorized/storyCaption.tw +++ b/src/uncategorized/storyCaption.tw @@ -121,9 +121,74 @@ since last week) <</link>> <</if>> + + <br> + <<if $foodMarket > 0>> + <<set $food = Math.trunc($food)>> + <<set $foodConsumption = (($lowerClass*$lowerRate) + ($middleClass*$middleRate) + ($upperClass*$upperRate) + ($topClass*$topRate))>> + <span id="food"> + <<if $food > $foodConsumption>> /* if there is enough food for the next week */ + @@.chocolate;Food@@ + <<else>> + @@.red;Food@@ + <</if>> + | <<print massFormat($food)>> + </span> + + <br> + + <<set _TFood2 = ($food-$foodLastWeek)>> + <span id="oldfood"> + <<if _TFood2 < 0>> + (@@.red;<<print massFormat(_TFood2)>>@@ + <<else>> + (@@.chocolate;+<<print massFormat(_TFood2)>>@@ + <</if>> + </span> + since last week) + <<if ($cheatMode) && ($cheatModeM)>> + <<set _TFood1 = $food>> + <<textbox "$food" $food>> + <<link "Apply">> + <<if $food > 0>> + <<set $food = Math.trunc(Number($food) || _TFood1), $cheater = 1>> + <<else>> + <<set $food = 0>> + <</if>> + <<replace "#food">> + <<if $food > $foodConsumption>> /* if there is enough food for the next week */ + @@.chocolate;Food@@ + <<else>> + __@@.red;Food@@__ + <</if>> + | <<print massFormat($food)>> + <</replace>> + <<set _TFood2 = ($food-$foodLastWeek)>> + <<replace "#oldfood">> + <<if _TFood2 < 0>> + (@@.red;<<print massFormat(_TFood2)>>@@ + <<else>> + (@@.chocolate;+<<print massFormat(_TFood2)>>@@ + <</if>> + <</replace>> + since last week) + <</link>> + <</if>> + <</if>> <br>[[Upkeep|Costs Budget]] | <<else>> - <br>Upkeep | + <<if $foodMarket > 0>> + <<set $food = Math.trunc($food)>> + <span id="food"> + <<if $food > $foodConsumption>> /* if there is enough food for the next week */ + @@.chocolate;Food@@ + <<else>> + @@.red;Food@@ + <</if>> + | <<print massFormat($food)>> + </span> + <</if>> + <br>@@.link;Upkeep@@ | <</if>><<print cashFormat($costs)>> <br><br>@@.pink;Total Sex Slaves@@ | <<print commaNum(_SL)>> <br>@@.pink;Penthouse Beds@@ | @@ -365,7 +430,7 @@ <<link "Apply">> <<set $security = Math.clamp(Math.trunc(Number($security) || _TSec), 0, 100), $cheater = 1>> <<replace "#sec">> - <br>@@.deepskyblue;Security@@ | @@.deepskyblue;<<print Math.trunc($security)>>%@@ + <br>@@.deepskyblue;Security@@ | <<print Math.trunc($security)>>% <</replace>> <</link>> <</if>> @@ -380,7 +445,7 @@ <<link "Apply">> <<set $crime = Math.clamp(Math.trunc(Number($crime) || _TCrime), 0, 100), $cheater = 1>> <<replace "#crime">> - <br>@@.orangered;Crime@@ | @@.orangered;<<print Math.trunc($crime)>>%@@ + <br>@@.orangered;Crime@@ | <<print Math.trunc($crime)>>% <</replace>> <</link>> <</if>> @@ -620,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/uncategorized/surgeryDegradation.tw b/src/uncategorized/surgeryDegradation.tw index 2057da137cfd0e05bcb156b6043672153d8cda9e..3b0bbbd3113383bd3b3ceaf6c7942e72e17d2490 100644 --- a/src/uncategorized/surgeryDegradation.tw +++ b/src/uncategorized/surgeryDegradation.tw @@ -1968,7 +1968,6 @@ As the remote surgery's long recovery cycle completes, $He doesn't even have the chance to reach the slave quarters before $his new reproductive system detects $his unprotected fertility and begins to internally cum. <<if canWalk($activeSlave)>>$He struggles to stand as wave after wave of pleasure radiates from inside $his self-fertilizing womb<<else>>The slave carrying $him struggles to keep their grip on the orgasm wracked $girl<</if>>. By the time $he is finished, $he is a sweat-soaked, panting mess with a womb @@.lime;<<if $activeSlave.pregType > 50>>stuffed full of fertilized eggs<<elseif $activeSlave.pregType > 20>>filled with new life<<elseif $activeSlave.pregType > 1>>housing several new lives<<else>>filled with seed and a new life<</if>>.@@ <</if>> -/* TODO: these descriptions may need some more tweaking to sound more natural */ <<case "addAnimalOvaries">> <<if $activeSlave.fetish == "mindbroken">> $He leaves the surgery with nothing but a nonspecific ache in $his lower abdomen, but lacks the mental faculties to realize that $he now has a chance of carrying an animal baby to term. As with all surgery @@.red;$his health has been slightly affected.@@ diff --git a/src/utility/birthWidgets.tw b/src/utility/birthWidgets.tw index f2b2f49fd767e9f78f7d594e94fbb02926f835e9..c78be40b883c276d13097f1f3c3b236a5a6c53ee 100644 --- a/src/utility/birthWidgets.tw +++ b/src/utility/birthWidgets.tw @@ -110,14 +110,28 @@ <</if>> <<case "work as a farmhand">> /* TODO: This needs a rewrite */ + <<set _animals = []>> + <<if $canines.length > 0>> + <<set _roll = random(0, $canines.length)>> + <<set _animals.push($canines[_roll])>> + <</if>> + <<if $hooved.length > 0>> + <<set _roll = random(0, $hooved.length)>> + <<set _animals.push($hooved[_roll])>> + <</if>> + <<if $canines.length > 0>> + <<set _roll = random(0, $canines.length)>> + <<set _animals.push($canines[_roll])>> + <</if>> <<if $slaves[$i].fetish == "mindbroken">> - <<if $farmyardPregSetting > 0>> - Since the farmyard is designed for pregnant slaves, $he stays hooked up to the milkers. $He shows little interest in $his coming birth, instead focusing on $his milky breasts. Instinctively, $he begins to push out $his bab<<if $slaves[$i].pregType > 1>>ies<<else>>y<</if>>. $He pays no heed to $his child<<if $slaves[$i].pregType > 1>>ren<</if>> being removed from the milking stall, nor when $he is hosed off. + <<if $farmyardShows == 1>> + <<set _roll = random(0, _animals.length)>> + $He shows no interest in $his coming birth as $he continues being rutted by a <<print _animals[_roll].species>>, so <<if $Farmer > 0>>$Farmer.name<<else>>another slave<</if>> has to pull the animal off of $him and drag $him into the nearest birthing stall. $He also shows almost no reaction when $his child<<if $slaves[$i].pregType > 1>>ren<</if>> begin<<if $slaves[$i].pregType <= 1>>s<</if>> to come out, or when $he is subsequently hosed off before being led back to $farmyardName. <<else>> - <<if !canWalk($slaves[$i])>>$He is helped back to $his bed and stripped before slipping into it<<else>>$He returns to $his bed and strips before slipping into it<</if>>. Instinctively, $he begins to push out $his bab<<if $slaves[$i].pregType > 1>>ies<<else>>y<</if>>. $His child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> promptly taken and $he rests awhile before returning to the milkers to lighten $his swelling breasts. + $He shows no interest in $his coming birth as $he continues <<print either("loading hay bales", "pulling weeds", "milking a cow")>>, until $his contractions become so strong that $he collapses to $his knees. <<if $Farmer > 0>>$Farmer.name<<else>>Another slave<</if>> is at $his side in an instant, pulling $him to $his feet and into a birthing stall. $He also shows almost no reaction when $his child<<if $slaves[$i].pregType > 1>>ren<</if>> begin<<if $slaves[$i].pregType <= 1>>s<</if>> to come out, or when $he is subsequently hosed off before being led back to $farmyardName. <</if>> <<else>> - <<if $farmyardPregSetting > 0>> + <<if $farmyardShows == 1>> Since the farmyard is designed for pregnant slaves, $he stays hooked up to the milkers. $He meekly protests $his situation, but ultimately accepts it. $He begins working on birthing $his bab<<if $slaves[$i].pregType > 1>>ies<<else>>y<</if>>, and catches a glimpse of $his child<<if $slaves[$i].pregType > 1>>ren<</if>> being removed from the milking stall, but quickly forgets when $he is hosed off. <<set $humiliation = 1>> <<else>> diff --git a/src/utility/slaveCreationWidgets.tw b/src/utility/slaveCreationWidgets.tw index b3c898a43b5d88db4b672f837b35efb63ffde3c5..68295c7bd9438f758bbe024e398f8e5c7e6519b6 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>>