Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
window.saTakeClasses = (function saServeThePublic() {
"use strict";
let r;
let he, him, his, hers, himself, girl, loli, He, His;
let learning;
let teaching;
return saTakeClasses;
/**
* @param {App.Entity.SlaveState} slave
* @returns {string}
*/
function saTakeClasses(slave) {
r = ` `;
learning = 1;
teaching = 0;
({
he, him, his, hers, himself, girl, He, His, loli
} = getPronouns(slave));
jobPreface(slave);
if (slave.fetish !== "mindbroken") {
learningDisability(slave);
learningProgress(slave);
if (slave.lactation > 0) {
lactationBreak(slave);
}
skillLessons(slave);
generalLessons(slave);
if (slave.accent > 1 && slave.voice !== 0) {
speechLessons(slave);
}
graduation(slave);
}
return r;
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function jobPreface(slave) {
if (slave.fetish === "mindbroken") {
r += `is no longer mentally capable and <span class="yellow">has been dropped from class.</span>`;
if (slave.assignment === "take classes") {
removeJob(slave, "take classes");
}
} else {
r += `takes courses in slavery`;
if (V.schoolroomUpgradeSkills + V.schoolroomUpgradeRemedial + V.schoolroomUpgradeLanguage !== 0) {
r += `, using ${V.schoolroomName}'s improved educational materials,`;
}
if (slave.assignment === "learn in the schoolroom" && V.Schoolteacher !== 0) {
const schoolteacherPronouns = getPronouns(V.Schoolteacher);
teaching = (V.Schoolteacher.intelligence + V.Schoolteacher.intelligenceImplant);
if (V.Schoolteacher.visualAge > 35) {
teaching += 10;
}
if (setup.schoolteacherCareers.includes(V.Schoolteacher.career)) {
teaching += 10;
}
if (V.Schoolteacher.face > 40) {
teaching += 10;
}
if (jsRandom(1, 150) < teaching) {
learning += 1;
}
r += ` under ${V.Schoolteacher.slaveName}'s supervision;`;
if (slave.devotion > 20) {
r += ` ${he} is such an obedient slave that ${schoolteacherPronouns.pronoun} <span class="hotpink">encourages ${him}</span> to be the best slave ${he} can.`;
slave.devotion += 2;
} else if (slave.trust < -20) {
r += ` ${he} obeys out of fear, so ${schoolteacherPronouns.pronoun} <span class="hotpink">encourages ${him}</span> to be a better slave.`;
slave.devotion++;
} else {
r += ` ${he} is resistant, so ${schoolteacherPronouns.pronoun} ends up mostly <span class="gold">punishing ${him},</span> increasing ${his} <span class="mediumorchid">dislike for slavery.</span>`;
slave.devotion -= 2;
slave.trust -= 4;
}
} else {
r += ` under ${V.assistantName}'s supervision;`;
if (slave.devotion > 20) {
r += ` ${he} is such an obedient slave that ${V.assistantName} mostly <span class="hotpink">encourages ${him}.</span>`;
slave.devotion += 2;
} else if (slave.trust < -20) {
r += ` ${he} obeys out of fear, so ${V.assistantName} mostly <span class="hotpink">encourages ${him}</span> to be a better slave.`;
slave.devotion++;
} else {
r += ` ${he} is resistant, so ${V.assistantName} mostly <span class="gold">punishes ${him},</span> increasing ${his} <span class="mediumorchid">dislike for slavery.</span>`;
slave.devotion -= 2;
slave.trust -= 4;
}
}
}
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function learningDisability(slave) {
if (!canHear(slave) && !canSee(slave)) {
r += ` With ${his} inability to hear and see, absorbing the content is extremely difficult.`;
learning -= 3;
} else if (!canHear(slave) || !canSee(slave)) {
r += ` With ${his} impairments, ${he} needs special lessons to properly learn.`;
learning -= 1;
}
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function learningProgress(slave) {
if (V.schoolroomRemodelBimbo !== 1 || slave.assignment !== "learn in the schoolroom") {
if (slave.intelligence > 95) {
learning += 2;
} else if (slave.intelligence > 50) {
learning++;
} else if (slave.intelligence > 15) {
if (jsRandom(1, 100) < 70) {
learning++;
}
} else if (slave.intelligence >= -15) {
if (jsRandom(1, 100) < 50) {
learning++;
}
} else {
let slaveDensity = (50 + slave.intelligence);
if (V.schoolroomUpgradeRemedial === 1 && jsRandom(1, 100) < 50) {
slaveDensity = 55;
}
if (jsRandom(1, 100) > slaveDensity) {
learning++;
}
}
} else {
if (slave.intelligence < -95) {
learning += 2;
} else if (slave.intelligence < -50) {
learning++;
} else if (slave.intelligence < -15) {
if (jsRandom(1, 100) < 70) {
learning++;
}
} else if (slave.intelligence > 15) {
if (jsRandom(1, 100) < 50) {
learning++;
}
} else {
let slaveDensity = (-10 + slave.intelligence);
if (V.schoolroomUpgradeRemedial === 1 && jsRandom(1, 100) < 50) {
slaveDensity = 55;
}
if (jsRandom(1, 100) < slaveDensity) {
learning++;
}
}
}
r += ` ${He} is `;
if (slave.intelligence > 95) {
r += `a genius,`;
} else if (slave.intelligence > 50) {
r += `highly intelligent`;
} else if (slave.intelligence > 15) {
r += `of above average intelligence`;
} else if (slave.intelligence >= -15) {
r += `of average intelligence`;
} else if (slave.intelligence >= -50) {
r += `of below average intelligence`;
} else if (slave.intelligence >= -95) {
r += `quite stupid`;
} else {
r += `an imbecile,`;
}
if (slave.devotion > 95) {
r += ` and worshipful of you,`;
learning++;
} else if (slave.devotion > 50) {
r += ` and devoted to you,`;
if (jsRandom(1, 100) < 70) {
learning++;
}
} else if (slave.devotion > 20) {
r += ` and obedient to you,`;
if (jsRandom(1, 100) < 50) {
learning++;
}
} else if (slave.trust < -20) {
r += ` and frightened of you,`;
if (jsRandom(1, 100) < 40) {
learning++;
}
} else {
r += ` and neither likes you nor is afraid of you,`;
}
r += ` and ${he} `;
if (V.schoolroomRemodelBimbo !== 1 || slave.assignment !== "learn in the schoolroom") {
if (learning <= 1) {
r += `learns slowly`;
} else if (learning === 2) {
r += `does well with ${his} studies`;
} else {
r += `is perfectly studious`;
}
} else {
if (learning <= 1) {
r += `struggles with the lessons`;
} else if (learning === 2) {
r += `makes progress with the materials`;
} else {
r += `breezes through ${his} lessons`;
}
}
r += ` this week.`;
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function lactationBreak(slave) {
// room for growth — do so during lactation rules expansion
if (slave.lactation === 1 && slave.assignment === "learn in the schoolroom" && V.Schoolteacher !== 0 && hasAnyArms(V.Schoolteacher)) {
r += ` With ${his} natural lactation, ${he} often finds ${himself} milked before the class by ${V.Schoolteacher.slaveName} both to serve as a lesson and to keep ${him} from becoming a milky mess.`;
slave.lactationDuration = 2;
slave.boobs -= slave.boobsMilk;
slave.boobsMilk = 0;
}
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function skillLessons(slave) {
let undevoted = 0; // forces an obedience lesson to replace the first skill lesson
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
let skillIncrease = 0;
if (V.schoolroomRemodelBimbo !== 1 || slave.assignment !== "learn in the schoolroom") {
skillIncrease = (10 + Math.floor((slave.intelligence + slave.intelligenceImplant) / 32));
} else {
skillIncrease = (10 + (Math.abs(Math.floor((slave.intelligence + slave.intelligenceImplant) / 32))));
}
for (let lessons = 0; lessons < learning; lessons++) {
if (slave.devotion <= 20 && undevoted === 0) {
r += ` Since ${he} is wanting in basic obedience, ${he} suffers through courses on <span class="hotpink">$his place</span> in the Free Cities world.`;
slave.devotion += 10;
undevoted++;
} else if (slave.skill.oral <= 10) {
r += ` Since ${he} is orally incompetent, ${he} is taught basic gag reflex suppression exercises and other simple oral things.`;
r += ` ${SkillIncrease.Oral(slave, skillIncrease)}`;
} else if (slave.skill.vaginal <= 10 && slave.vagina > 0 && canDoVaginal(slave)) {
r += ` Since ${he} is unskilled at using ${his} pussy, ${he} is taught Kegel exercises and other simple vaginal skills.`;
r += ` ${SkillIncrease.Vaginal(slave, skillIncrease)}`;
} else if (slave.skill.vaginal <= 10 && slave.vagina >= 0) {
r += ` Since ${he} is unskilled at using ${his} pussy and not permitted to learn through practice, ${he} is taught Kegel exercises, vaginal basics and several new positions.`;
r += ` ${SkillIncrease.Vaginal(slave, skillIncrease)}`;
} else if (slave.skill.anal <= 10 && slave.anus > 0 && canDoAnal(slave)) {
r += ` Since ${he} is a novice at taking it up ${his} butt, ${he} is taught relaxation exercises and other simple anal basics.`;
r += ` ${SkillIncrease.Anal(slave, skillIncrease)}`;
} else if (slave.skill.anal <= 10 && slave.anus >= 0) {
r += ` Since ${he} is a novice at taking it up ${his} butt and not permitted to learn through practice, ${he} is taught relaxation exercises and other simple anal basics.`;
r += ` ${SkillIncrease.Anal(slave, skillIncrease)}`;
} else if (slave.skill.whoring <= 10) {
r += ` Since ${he} has little idea what's involved in selling ${his} body, ${he} is taught basic safety practices and other simple prostitution skills.`;
r += ` ${SkillIncrease.Whore(slave, skillIncrease)}`;
} else if (slave.skill.entertainment <= 10) {
r += ` Since ${his} entertainment value is limited to ${his} holes, ${he} is taught simple conversational skills and other courtesan's essentials.`;
r += ` ${SkillIncrease.Entertain(slave, skillIncrease)}`;
} else if (V.schoolroomUpgradeSkills === 1) {
if (slave.skill.oral <= 30) {
r += ` Having completed the basic sex slave curriculum, ${he} studies more advanced ways to use ${his} lips and tongue to please cocks, cunts, and asses.`;
r += ` ${SkillIncrease.Oral(slave, skillIncrease)}`;
} else if (slave.skill.whoring <= 30) {
r += ` Having completed the basic sex slave curriculum, ${he} studies intermediate prostitution, including how to stay as safe as possible and maximize ${his} efficiency.`;
r += ` ${SkillIncrease.Whore(slave, skillIncrease)}`;
} else if (slave.skill.entertainment <= 30) {
r += ` Having completed the basic sex slave curriculum, ${he} studies courtesanship, including social dynamics and flirtation more subtle than straightforward begging for sex.`;
r += ` ${SkillIncrease.Entertain(slave, skillIncrease)}`;
} else if (slave.skill.vaginal <= 30 && slave.vagina >= 0) {
r += ` Having completed the basic sex slave curriculum, ${he} studies more advanced techniques and exotic positions to make use of ${his} `;
if (slave.vagina === 0) {
r += `virgin pussy for use in ${his} first time.`;
} else {
r += `pussy.`;
}
r += ` ${SkillIncrease.Vaginal(slave, skillIncrease)}`;
} else if (slave.skill.anal <= 30) {
r += ` Having completed the basic sex slave curriculum, ${he} studies more advanced techniques and exotic positions to make use of ${his} `;
if (slave.anus === 0) {
r += `virgin ass for use in ${his} first time.`;
} else {
r += `ass.`;
}
r += ` ${SkillIncrease.Anal(slave, skillIncrease)}`;
}
}
}
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function generalLessons(slave) {
if (slave.intelligenceImplant > -15 && V.schoolroomRemodelBimbo === 1 && slave.assignment === "learn in the schoolroom") {
r += ` ${He} makes some progress `;
if (slave.intelligenceImplant < 0) {
r += `towards ${his} special education.`;
} else {
r += `in undoing ${his} education.`;
}
slave.intelligenceImplant -= Math.max(1, learning);
if (slave.intelligenceImplant <= -15) {
slave.intelligenceImplant = -15;
r += ` ${He} has completed ${his} special education, and for most purposes ${he} has become <span class="orangered">less intelligent.</span>`;
}
} else if (slave.intelligenceImplant < 30 && slave.assignment === "learn in the schoolroom") {
r += ` ${He} makes some progress `;
if (slave.intelligenceImplant < 15) {
r += `towards a basic education.`;
} else {
r += `in furthering ${his} education.`;
}
slave.intelligenceImplant += Math.max(1, learning);
if (slave.intelligenceImplant >= 30) {
slave.intelligenceImplant = 30;
r += ` ${He} has completed ${his} advanced education, and for most purposes ${he} has become <span class="deepskyblue">more intelligent.</span>`;
}
} else if (slave.intelligenceImplant < 15 && slave.assignment === "take classes") {
r += ` ${He} makes some progress towards a basic education.`;
slave.intelligenceImplant += Math.max(1, learning);
if (slave.intelligenceImplant >= 15) {
slave.intelligenceImplant = 15;
r += ` ${He} has completed a course of slave education, and for most purposes ${he} has become <span class="deepskyblue">more intelligent.</span>`;
}
}
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function speechLessons(slave) {
if (slave.intelligenceImplant >= 15 || slave.intelligenceImplant < 0) {
if (slave.intelligence > jsRandom(-110, 110)) {
if (slave.accent > 3) {
const langWeekThreshold = (V.schoolroomUpgradeLanguage === 0) ? 24 : 16;
if (V.week - slave.weekAcquired > langWeekThreshold) {
r += ` ${He} has <span class="green">learned some ${V.language},</span> and can make ${his} point with some gesturing, though ${he} speaks ${V.language} horribly.`;
slave.accent--;
if (slave.speechRules === "language lessons") {
slave.speechRules = "accent elimination";
}
}
} else if (slave.accent === 3) {
r += ` ${He} has <span class="green">learned functional ${V.language},</span> and can make ${himself} understood, though ${his} ${aNational(slave.nationality)} accent is still quite heavy.`;
slave.accent--;
} else if (slave.accent === 2 && V.schoolroomUpgradeLanguage === 1) {
r += ` ${He} has <span class="green">learned decent ${V.language},</span> though ${he} retains enough of ${his} ${aNational(slave.nationality)} accent to make ${his} voice distinctly sexy.`;
slave.accent--;
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
}
}
}
}
/**
* @param {App.Entity.SlaveState} slave
*
*/
function graduation(slave) {
if (slave.intelligenceImplant >= 15 && slave.assignment === "take classes") {
if ((slave.voice === 0) || (slave.accent <= 1) || ((V.schoolroomUpgradeLanguage === 0 && slave.accent <= 2))) {
if ((slave.skill.oral > 30) || (V.schoolroomUpgradeSkills === 0 && slave.skill.oral > 10)) {
if ((slave.skill.whoring > 30) || (V.schoolroomUpgradeSkills === 0 && slave.skill.whoring > 10)) {
if ((slave.skill.entertainment > 30) || (V.schoolroomUpgradeSkills === 0 && slave.skill.entertainment > 10)) {
if ((slave.skill.anal > 30) || (V.schoolroomUpgradeSkills === 0 && slave.skill.anal > 10)) {
if ((slave.skill.vaginal > 30) || (V.schoolroomUpgradeSkills === 0 && slave.skill.vaginal > 10) || (slave.vagina < 0)) {
r += ` ${He} can learn little from further classes, so <span class="yellow">${his} assignment has defaulted to rest.</span>`;
removeJob(slave, "take classes");
}
}
}
}
}
}
}
}
})();