From c9e21bd195c4eabac5fc6eacffc7b65680ec1345 Mon Sep 17 00:00:00 2001 From: ezsh <ezsh.junk@gmail.com> Date: Fri, 7 Aug 2020 13:58:54 +0200 Subject: [PATCH] trivial fixes from Ts and spellchecker --- src/debugging/debugJS.js | 4 ++-- src/endWeek/saDrugs.js | 2 +- src/endWeek/saPorn.js | 4 ++-- src/endWeek/saTakeClasses.js | 20 ++++++++++---------- src/events/RESS/obedientBitchy.js | 2 +- src/events/RETS/reSiblingTussle.js | 4 ++-- src/facilities/nursery/utils/nurseryUtils.js | 7 +++---- src/interaction/slaveInteract.js | 19 ++++++++----------- src/js/futureSocietyJS.js | 14 +++++++------- src/js/rulesAssistantOptions.js | 16 ++++++++-------- src/js/wombJS.js | 4 ++-- src/npc/databases/dSlavesDatabase.js | 2 +- src/npc/descriptions/boobs/boobs.js | 4 ++-- src/npc/descriptions/longSlave.js | 3 ++- src/npc/descriptions/skin.js | 2 +- src/npc/descriptions/style/clothing.js | 2 +- src/npc/descriptions/womb/pregnancy.js | 2 +- src/npc/generate/lawCompliance.js | 1 + src/npc/surgery/organs.js | 2 +- 19 files changed, 56 insertions(+), 58 deletions(-) diff --git a/src/debugging/debugJS.js b/src/debugging/debugJS.js index ed7a4c0283b..8cc94e24f33 100644 --- a/src/debugging/debugJS.js +++ b/src/debugging/debugJS.js @@ -107,9 +107,9 @@ App.Debug.dumpGameState = function() { // we will replace SugarCube onSave handler let oldHandler = SugarCube.Config.saves.onSave; try { - SugarCube.Config.saves.onSave = function(save) { + SugarCube.Config.saves.onSave = function(save, details) { if (oldHandler) { - oldHandler(save); + oldHandler(save, details); } downloadToFile(JSON.stringify(save, null, 2), save.id + ".json", "text/plain"); }; diff --git a/src/endWeek/saDrugs.js b/src/endWeek/saDrugs.js index 6d644bf87d9..f6f831799f2 100644 --- a/src/endWeek/saDrugs.js +++ b/src/endWeek/saDrugs.js @@ -1858,7 +1858,7 @@ App.SlaveAssignment.drugs = (function() { r += ` Getting buttfucked morning and night by reciprocating dildos that ejaculate ${his} drug regime has <span class="lightcoral">deepened ${his} anal fixation.</span>`; slave.fetishStrength += 5; } - } else if (slave.fetish !== "buttslut") { + } else { if (slave.devotion < -20) { r += ` Getting buttfucked morning and night by reciprocating dildos that ejaculate ${his} drug regime <span class="mediumorchid">disgusts ${him}.</span>`; slave.devotion -= 2; diff --git a/src/endWeek/saPorn.js b/src/endWeek/saPorn.js index fc7dfd49852..7d6c236b5ad 100644 --- a/src/endWeek/saPorn.js +++ b/src/endWeek/saPorn.js @@ -308,7 +308,7 @@ App.SlaveAssignment.porn = (function() { * @param {App.Entity.SlaveState} slave */ function getHighestPornGenre(slave) { - return App.Porn.getAllGenres().reduce((acc, cur) => slave.porn.fame[cur] > slave.porn.fame[acc] ? cur : acc); + return App.Porn.getAllGenres().reduce((acc, cur) => slave.porn.fame[cur.fameVar] > slave.porn.fame[acc.fameVar] ? cur : acc); } /** @@ -338,7 +338,7 @@ App.SlaveAssignment.porn = (function() { slave.porn.prestige = 2; slave.porn.prestigeDesc = `$He is well known from $his career in slave pornography. ${genre.prestigeDesc2}.`; r += `<span class="green">${He} has gained a hold in ${slave.porn.fameType} pornography!</span> ${genre.prestigeDesc2}, so it is now prestigious to own ${him}. `; - } else if (slave.porn.fame[highestPorn] >= slave.porn.fame[genre.fameVar] * swapPoint) { + } else if (slave.porn.fame[highestPorn.fameVar] >= slave.porn.fame[genre.fameVar] * swapPoint) { r += `${His} fame in ${slave.porn.fameType} pornography has been overwhelmed by ${his} surging popularity in other aspects. <span class="yellow">${He} is now better known for ${his} ${highestPorn.fameName} porn.</span> `; slave.porn.fameType = highestPorn.fameName; slave.porn.prestigeDesc = `$He has a following in slave pornography. ${highestPorn.prestigeDesc1}.`; diff --git a/src/endWeek/saTakeClasses.js b/src/endWeek/saTakeClasses.js index 2dc4501d554..6a7cca4b4e2 100644 --- a/src/endWeek/saTakeClasses.js +++ b/src/endWeek/saTakeClasses.js @@ -485,7 +485,7 @@ App.SlaveAssignment.takeClasses = (function() { switch (tutorForSlave(slave)) { case "Headgirl": if (slave.skill.headGirl <= 10) { - r += ` ${He} is so unskilled that the tutor teaches ${him} the basics. ${He} learns how to make slaves obey ${him} and how to treat minor injuries.`; + r += ` ${He} is so unskilled that the tutor teaches ${him} the basics. ${He} learns how to make slaves obey ${him} and how to treat minor injuries.`; } else if (slave.skill.headGirl <= 30) { r += ` ${He} has some experience teaching others. The tutor has ${him} practice teaching slaves how to please their master, and has ${him} attend lectures on slave psychology.`; } else if (slave.skill.headGirl <= 60) { @@ -499,7 +499,7 @@ App.SlaveAssignment.takeClasses = (function() { if (slave.skill.recruiter <= 10) { r += ` The tutor starts teaching ${him} the basics. ${He} is given lessons on conversing, pronounciation, style and fashion.`; } else if (slave.skill.recruiter <= 30) { - r += ` Having been taught the basics by ${his} tutor, ${he} is no longer awkard in conversation. But ${he} has a long way to go, the tutor teaches ${him} how to carry ${himself} and how to interpret others' non-verbal cues.`; + r += ` Having been taught the basics by ${his} tutor, ${he} is no longer awkard in conversation. But ${he} has a long way to go, the tutor teaches ${him} how to carry ${himself} and how to interpret others' non-verbal cues.`; } else if (slave.skill.recruiter <= 60) { r += ` The tutor has ${him} practice convincing others. ${He} watches online lectures on slave pschyology, and applies it in practice by convincing others to make unfavorable deals.`; } else if (slave.skill.recruiter <= 100) { @@ -524,7 +524,7 @@ App.SlaveAssignment.takeClasses = (function() { } else if (slave.skill.madam <= 30) { r += ` Having been taught the basics, the lessons shift to learning how to best please a customer. ${He} is taught to converse and how to respond to a customer's desires.`; } else if (slave.skill.madam <= 60) { - r += ` Now that ${he} is a masterful whore, the tutor teaches ${him} how to discipline her subordinate whores. ${He} attends online lectures on marketing.`; + r += ` Now that ${he} is a masterful whore, the tutor teaches ${him} how to discipline her subordinate whores. ${He} attends online lectures on marketing.`; } else if (slave.skill.madam <= 100) { r += ` ${He} is becoming a master at extracting maximum value from the assets ${he} commands, and is learning how to run the brothel effectively.`; } @@ -534,9 +534,9 @@ App.SlaveAssignment.takeClasses = (function() { if (slave.skill.DJ <= 10) { r += ` The tutor trains ${him} to perform as a DJ. The Club is crucial for your reputation, and the DJ is in charge of the club, so classes are quite demanding. ${He} is absolutely unskilled so he is teaching ${him} the very basics. ${He} is undergoing military-like drills in dancing and composure.`; } else if (slave.skill.DJ <= 30) { - r += ` The tutor trains ${him} to perform as a DJ. ${He} is still quite inexperienced, although ${he} is at least not awkard in conversation anymore. ${His} classes are heavily focused on slut etiquette, dancing and composure, but ${his} moves are still stiff and unsure.`; + r += ` The tutor trains ${him} to perform as a DJ. ${He} is still quite inexperienced, although ${he} is at least not awkward in conversation anymore. ${His} classes are heavily focused on slut etiquette, dancing and composure, but ${his} moves are still stiff and unsure.`; } else if (slave.skill.DJ <= 60) { - r += ` ${He} is already a skilled entartainer, yet ${his} DJ training continues. ${His} training is now more focused on putting ${him} in charge of the whole club facility, which serves to increase public opinion of ${his} owner. ${He} is taught how to make guests feel welcome, and how to manage ${his} employees. `; + r += ` ${He} is already a skilled entertainer, yet ${his} DJ training continues. ${His} training is now more focused on putting ${him} in charge of the whole club facility, which serves to increase public opinion of ${his} owner. ${He} is taught how to make guests feel welcome, and how to manage ${his} employees. `; } else if (slave.skill.DJ <= 100) { r += `Every movement and gesture of ${him} must engage the crowd. ${He} is so well-trained that ${his} sultry and inviting composure seems entirely natural. ${He} is also taught how to look after subordinate club sluts, to make sure they perform at their best and give the guests an unforgettable experience.`; } @@ -558,7 +558,7 @@ App.SlaveAssignment.takeClasses = (function() { if (slave.skill.teacher <= 10) { r += ` ${He} is so inept that the tutor has to teach ${him} the very basics before ${he} can progress any further. ${He} is given grammar and arithmetic lessons.`; } else if (slave.skill.teacher <= 30) { - r += ` Now that ${he} has some understanding of the basics, the tutor has ${him} attend more advanced lectures on grammar, mathematics and pronounciation.`; + r += ` Now that ${he} has some understanding of the basics, the tutor has ${him} attend more advanced lectures on grammar, mathematics and pronunciation.`; } else if (slave.skill.teacher <= 60) { r += ` Having mastered basic skills, ${he} is now being taught how to teach others. The tutor sends ${him} to work at a local slave school.`; } else if (slave.skill.teacher <= 100) { @@ -580,11 +580,11 @@ App.SlaveAssignment.takeClasses = (function() { break; case "Matron": if (slave.skill.matron <= 10) { - r += ` The tutor teaches ${him} how to care for ${his} body during pregnancy. To eat well, rest, and avoid strenous activity.`; + r += ` The tutor teaches ${him} how to care for ${his} body during pregnancy. To eat well, rest, and avoid strenuous activity.`; } else if (slave.skill.matron <= 30) { r += ` ${He} learns how to best prepare ${his} body for a baby's birth. And how to take care of the baby after it has been born.`; } else if (slave.skill.matron <= 60) { - r += ` The tutor has ${her} serve as a midwife at a local hospital. ${He} also attends lectures on child development and child psychology.`; + r += ` The tutor has ${him} serve as a midwife at a local hospital. ${He} also attends lectures on child development and child psychology.`; } else if (slave.skill.matron <= 100) { r += ` ${He} continues attending lectures, but at the same time the tutor teaches ${him} how to take care of others while they are pregnant. ${He}'s quickly learning how to best rear children.`; } @@ -604,7 +604,7 @@ App.SlaveAssignment.takeClasses = (function() { break; case "Milkmaid": if (slave.skill.milkmaid <= 10) { - r += ` The tutor teaches ${her} the basics. ${He} is taught what to eat to maximize ${his} fluid production, as well as how to milk udders.`; + r += ` The tutor teaches ${him} the basics. ${He} is taught what to eat to maximize ${his} fluid production, as well as how to milk udders.`; } else if (slave.skill.milkmaid <= 30) { r += ` Having been taught the basics, the tutor has ${him} work at a farm milking cows. ${He} also attends online lectures on nutrition and health.`; } else if (slave.skill.milkmaid <= 60) { @@ -622,7 +622,7 @@ App.SlaveAssignment.takeClasses = (function() { } else if (slave.skill.farmer <= 60) { r += ` ${He} oversees a group of farmhands as they care for the animals and plow the fields. Having mastered farming, ${he}'s now training ${his} leadership skills.`; } else if (slave.skill.farmer <= 100) { - r += ` The tutor has him lead an entire farm. ${He} manages every aspect, and does so admirably. ${He} is also introduced to a different side of slave farming, the "shows". It doesn't take long before ${he}'s overseeing those too...`; + r += ` The tutor has him lead an entire farm. ${He} manages every aspect, and does so admirably. ${He} is also introduced to a different side of slave farming, the "shows". It doesn't take long before ${he}'s overseeing those too...`; } r += ` ${SkillIncrease.Farmer(slave, skillIncrease)}`; break; diff --git a/src/events/RESS/obedientBitchy.js b/src/events/RESS/obedientBitchy.js index 556716dd4b7..903ba6a17d2 100644 --- a/src/events/RESS/obedientBitchy.js +++ b/src/events/RESS/obedientBitchy.js @@ -85,7 +85,7 @@ App.Events.RESSObedientBitchy = class RESSObedientBitchy extends App.Events.Base } else { t.push("arrange your bitchy little sex toy between you and your guest."); } - t.push(`The businesswoman clearly wants ${his} ass, so you ${!canDoAnal(eventSlave.slaveName) ? `quickly unfasten ${his} anal chastity. You` : ""} ${PC.vagina !== -1 ? `ride ${eventSlave.slaveName}'s face` : `facefuck ${eventSlave.slaveName}`} roughly as ${eventSlave.slaveName} takes a painful anal raping from the huge dildo. The businesswoman winks at you companionably and extracts squeals from ${eventSlave.slaveName} that feel especially delicious ${PC.vagina !== -1 ? "against your cunt" : "along your dick"}.`); + t.push(`The businesswoman clearly wants ${his} ass, so you ${!canDoAnal(eventSlave) ? `quickly unfasten ${his} anal chastity. You` : ""} ${PC.vagina !== -1 ? `ride ${eventSlave.slaveName}'s face` : `facefuck ${eventSlave.slaveName}`} roughly as ${eventSlave.slaveName} takes a painful anal raping from the huge dildo. The businesswoman winks at you companionably and extracts squeals from ${eventSlave.slaveName} that feel especially delicious ${PC.vagina !== -1 ? "against your cunt" : "along your dick"}.`); if (canMove(eventSlave)) { t.push(`${eventSlave.slaveName} collapses ${eventSlave.belly >= 5000 ? `and rolls onto ${his} side` : ""} after a long punishment fuck;`); } else { diff --git a/src/events/RETS/reSiblingTussle.js b/src/events/RETS/reSiblingTussle.js index 23d4d79106c..669a14e7972 100644 --- a/src/events/RETS/reSiblingTussle.js +++ b/src/events/RETS/reSiblingTussle.js @@ -210,12 +210,12 @@ App.Events.RETSSiblingTussle = class RETSSiblingTussle extends App.Events.BaseEv if (sexType === "vaginal") { t.push(`${winner.slaveName} slides ${hisW} ${winner.dick > 3 ? "stiff prick" : "hard little dick"} into ${hisW} ${relativeTerm(winner, loser)}'s ${loser.vagina < 2 ? "tight slit" : "cunt"} and starts pounding away.`); if (canImpreg(loser, winner)) { - knockMeUp(loser, 10, 0, winner.id); + knockMeUp(loser, 10, 0, winner.ID); } } else if (sexType === "anal") { t.push(`${winner.slaveName} slides ${hisW} ${winner.dick > 3 ? "stiff prick" : "hard little dick"} into ${hisW} ${relativeTerm(winner, loser)}'s ${loser.anus < 2 ? "tight ass" : "well-used ass"} and starts pounding away.`); if (canImpreg(loser, winner)) { - knockMeUp(loser, 10, 1, winner.id); + knockMeUp(loser, 10, 1, winner.ID); } } else { t.push(`${winner.slaveName} encourages ${loser.slaveName} to ${winner.dick > 0 ? `suck ${himW} off` : `eat ${himW} out`} quickly, knowing that they both still have to get to work.`); diff --git a/src/facilities/nursery/utils/nurseryUtils.js b/src/facilities/nursery/utils/nurseryUtils.js index a20b79001d1..b3102a003ab 100644 --- a/src/facilities/nursery/utils/nurseryUtils.js +++ b/src/facilities/nursery/utils/nurseryUtils.js @@ -386,6 +386,8 @@ App.Facilities.Nursery.nameChild = function nameChild(child) { father = 0, mother = 0; + const {him} = getPronouns(child); + if (child.father === -1 && child.mother === -1) { father = PC; mother = PC; @@ -403,9 +405,6 @@ App.Facilities.Nursery.nameChild = function nameChild(child) { } function newChildName(child) { - const - V = State.variable; - child.birthName = generateName(child.nationality, child.race, child.genes === "XY"); if (child.genes === "XY" && !V.allowMaleSlaveNames && isMaleName(child.birthName, child.nationality, child.race)) { @@ -868,7 +867,7 @@ App.Facilities.Nursery.nurserySort = function nurserySort() { r += `<br><b><span class="pink">You're pregnant</span></b> and going to have ${WL === 1 ? `a baby. ` : pregNumberName(WL, 1)} `; if (reservedNursery > 0) { - nurseryHasReservedChildren = 1; + nurseryHasReservedChildren = true; if (WL === 1) { r += `Your child will be placed in ${V.nurseryName}.`; } else if (reservedNursery < WL) { diff --git a/src/interaction/slaveInteract.js b/src/interaction/slaveInteract.js index 79246bd04c1..50bf44c582c 100644 --- a/src/interaction/slaveInteract.js +++ b/src/interaction/slaveInteract.js @@ -217,9 +217,6 @@ App.UI.SlaveInteract.work = function(slave) { span = document.createElement('span'); span.className = "note"; switch (slave.assignment) { - case "recover from surgery": - span.textContent = `${He} is recovering from surgery this week`; - break; case Job.BODYGUARD: span.textContent = `${He} is your Bodyguard and is not available for other work`; break; @@ -418,7 +415,7 @@ App.UI.SlaveInteract.tutorBlock = function(slave) { let el = App.UI.DOM.makeElement("div"); let title = App.UI.DOM.appendNewElement("div", el, `Private tutoring: `); let tutor = tutorForSlave(slave); - + if (tutor === null) { App.UI.DOM.appendNewElement("span", title, `none.`, "bold"); } else { @@ -1454,7 +1451,7 @@ App.UI.SlaveInteract.fertility = function(slave) { let link = document.createElement('div'); link.className = "choices"; if (slave.ovaries === 1 || slave.mpreg === 1 || slave.preg > 0) { - let note = document.createTextNode(``); + let note = document.createElement("span"); note.className = "note"; if (slave.preg < -1) { note.textContent += `${He} is sterile`; @@ -2102,7 +2099,7 @@ App.UI.SlaveInteract.rules = function(slave) { App.UI.SlaveInteract.rules(slave); } ) - ) + ); } else { p.append(`Will not be bred by you when fertile. `); p.append( @@ -2113,7 +2110,7 @@ App.UI.SlaveInteract.rules = function(slave) { App.UI.SlaveInteract.rules(slave); } ) - ) + ); } } else if (V.universalRulesImpregnation === "HG") { if (slave.HGExclude === 0) { @@ -2126,7 +2123,7 @@ App.UI.SlaveInteract.rules = function(slave) { App.UI.SlaveInteract.rules(slave); } ) - ) + ); } else { p.append(`Will not be bred by the Head Girl when fertile. `); p.append( @@ -2137,7 +2134,7 @@ App.UI.SlaveInteract.rules = function(slave) { App.UI.SlaveInteract.rules(slave); } ) - ) + ); } } else if (V.universalRulesImpregnation === "Stud") { if (slave.StudExclude === 0) { @@ -2150,7 +2147,7 @@ App.UI.SlaveInteract.rules = function(slave) { App.UI.SlaveInteract.rules(slave); } ) - ) + ); } else { p.append(`Will not be bred by your Stud when fertile. `); p.append( @@ -2161,7 +2158,7 @@ App.UI.SlaveInteract.rules = function(slave) { App.UI.SlaveInteract.rules(slave); } ) - ) + ); } } frag.append(p); diff --git a/src/js/futureSocietyJS.js b/src/js/futureSocietyJS.js index 944ec9fc022..3253f9605fc 100644 --- a/src/js/futureSocietyJS.js +++ b/src/js/futureSocietyJS.js @@ -297,14 +297,14 @@ globalThis.FutureSocieties = (function() { case "FSPaternalist": arcology[FSLaw] = 0; arcology[FSSMR] = 0; - if (_.get(V.SecExp.edicts)) { + if (_.get(V, "SecExp.edicts")) { V.SecExp.edicts.slaveWatch = 0; } break; case "FSDegradationist": arcology[FSLaw] = 0; arcology[FSSMR] = 0; - if (_.get(V.SecExp.edicts)) { + if (_.get(V, "SecExp.edicts")) { V.SecExp.edicts.defense.liveTargets = 0; } break; @@ -320,7 +320,7 @@ globalThis.FutureSocieties = (function() { case "FSSupremacist": arcology[FSLaw] = 0; arcology[FSSMR] = 0; - if (_.get(V.SecExp.edicts)) { + if (_.get(V, "SecExp.edicts")) { V.SecExp.edicts.defense.noSubhumansInArmy = 0; } break; @@ -332,7 +332,7 @@ globalThis.FutureSocieties = (function() { arcology.FSPhysicalIdealistLaw = 0; arcology.FSPhysicalIdealistSMR = 0; arcology.FSPhysicalIdealistStrongFat = 0; - if (_.get(V.SecExp.edicts)) { + if (_.get(V, "SecExp.edicts")) { V.SecExp.edicts.defense.martialSchool = 0; } break; @@ -346,7 +346,7 @@ globalThis.FutureSocieties = (function() { arcology.FSChattelReligionistLaw = 0; arcology.FSChattelReligionistSMR = 0; arcology.FSChattelReligionistCreed = 0; - if (_.get(V.SecExp.edicts)) { + if (_.get(V, "SecExp.edicts")) { V.SecExp.edicts.subsidyChurch = 0; } break; @@ -354,14 +354,14 @@ globalThis.FutureSocieties = (function() { arcology[FSLaw] = 0; arcology[FSSMR] = 0; V.universalRulesChildrenBecomeBreeders = 0; - if (_.get(V.SecExp.edicts)) { + if (_.get(V, "SecExp.edicts")) { V.SecExp.edicts.defense.pregExemption = 0; } break; case "FSRestart": arcology[FSLaw] = 0; arcology[FSSMR] = 0; - if (_.get(V.SecExp.edicts)) { + if (_.get(V, "SecExp.edicts")) { V.SecExp.edicts.defense.eliteOfficers = 0; } V.propOutcome = 0; diff --git a/src/js/rulesAssistantOptions.js b/src/js/rulesAssistantOptions.js index b64cb442be3..ee6a875b4b8 100644 --- a/src/js/rulesAssistantOptions.js +++ b/src/js/rulesAssistantOptions.js @@ -1878,7 +1878,7 @@ globalThis.rulesAssistantOptions = (function() { ["hand gloves"], ["elbow gloves"], ]; - super("Arm accessory", items, true, false, true); + super("Arm accessory", items, true); this.setValue(current_rule.set.armAccessory); this.onchange = (value) => current_rule.set.armAccessory = value; } @@ -1891,7 +1891,7 @@ globalThis.rulesAssistantOptions = (function() { ["short stockings"], ["long stockings"], ]; - super("Leg accessory", items, true, false, true); + super("Leg accessory", items, true); this.setValue(current_rule.set.legAccessory); this.onchange = (value) => current_rule.set.legAccessory = value; } @@ -2212,7 +2212,7 @@ globalThis.rulesAssistantOptions = (function() { ["preventatives", 1], ["curatives", 2], ]; - super("Health drugs", pairs, true, false, true); + super("Health drugs", pairs, true); this.setValue(current_rule.set.curatives); this.onchange = (value) => current_rule.set.curatives = value; } @@ -3038,7 +3038,7 @@ globalThis.rulesAssistantOptions = (function() { ["very long", 100], ["floor length", 150] ]; - super("Hair length", pairs, true, false, true); + super("Hair length", pairs, true); this.setValue(current_rule.set.hLength); this.onchange = (value) => current_rule.set.hLength = value; } @@ -3050,7 +3050,7 @@ globalThis.rulesAssistantOptions = (function() { ["maintain hair length", 1], ["do not maintain hair length", 0] ]; - super("Hair length maintenance", pairs, true, false, true); + super("Hair length maintenance", pairs, true); this.setValue(current_rule.set.haircuts); this.onchange = (value) => current_rule.set.haircuts = value; } @@ -3249,7 +3249,7 @@ globalThis.rulesAssistantOptions = (function() { ["remove birthmarks"], ["remove both"] ]; - super("Facial markings", pairs, true, false, true); + super("Facial markings", pairs, true); this.setValue(current_rule.set.markings); this.onchange = (value) => current_rule.set.markings = value; } @@ -3429,7 +3429,7 @@ globalThis.rulesAssistantOptions = (function() { ["none", 0], ["studded", 1] ]; - super("Areola studs", pairs, true, false, true); + super("Areola studs", pairs, true); this.setValue(current_rule.set.areolaePiercing); this.onchange = (value) => current_rule.set.areolaePiercing = value; } @@ -3489,7 +3489,7 @@ globalThis.rulesAssistantOptions = (function() { ["none", 0], ["applied", 1] ]; - super("Corset piercings", pairs, true, false, true); + super("Corset piercings", pairs, true); this.setValue(current_rule.set.corsetPiercing); this.onchange = (value) => current_rule.set.corsetPiercing = value; } diff --git a/src/js/wombJS.js b/src/js/wombJS.js index 2cdf98b6a0f..10cbcc47455 100644 --- a/src/js/wombJS.js +++ b/src/js/wombJS.js @@ -176,7 +176,7 @@ globalThis.WombImpregnateClone = function(actor, fCount, mother, motherOriginal, if (mother.ID === -1) { tf.genetics.motherName = mother.slaveName; tf.genetics.fatherName = mother.slaveName; - tf.genetics.clone = PlayerName(mother); + tf.genetics.clone = PlayerName(); tf.genetics.cloneID = -1; } else { tf.genetics.motherName = mother.slaveName; @@ -401,7 +401,7 @@ globalThis.FetusGetPrediction = function(actor, age) { } else if (actor.pregData.sizeType === 1) { vol = getVolByWeight(actor, age); } else if (actor.pregData.sizeType === 2) { - vol = getVolByRaw(actor, age); + vol = getVolByRaw(actor); } if (vol === 0) { diff --git a/src/npc/databases/dSlavesDatabase.js b/src/npc/databases/dSlavesDatabase.js index 02f590e2357..896dd033213 100644 --- a/src/npc/databases/dSlavesDatabase.js +++ b/src/npc/databases/dSlavesDatabase.js @@ -3605,8 +3605,8 @@ App.Data.HeroSlaves.D = [ anal: 100, whoring: 100, entertainment: 35, + combat: 0, }, - combat: 0, collar: "heavy gold", shoes: "flats", energy: 100, diff --git a/src/npc/descriptions/boobs/boobs.js b/src/npc/descriptions/boobs/boobs.js index 63bab197348..3dd6d7fc4bd 100644 --- a/src/npc/descriptions/boobs/boobs.js +++ b/src/npc/descriptions/boobs/boobs.js @@ -218,7 +218,7 @@ App.Desc.boobs = function() { /** * @param {App.Entity.SlaveState} slave * @param {object} params - * @param {number} [params.market] + * @param {number | string} [params.market] * @param {number} [params.eventDescription] * @returns {string} */ @@ -1611,7 +1611,7 @@ App.Desc.boobsExtra = function(slave, {market, eventDescription} = {}) { /** * @param {App.Entity.SlaveState} slave * @param {object} params - * @param {number} [params.market] + * @param {number | string} [params.market] * @param {number} [params.eventDescription] * @returns {string} */ diff --git a/src/npc/descriptions/longSlave.js b/src/npc/descriptions/longSlave.js index dc9cbb95dcf..5bf5b434c7f 100644 --- a/src/npc/descriptions/longSlave.js +++ b/src/npc/descriptions/longSlave.js @@ -1,7 +1,8 @@ /** * @param {App.Entity.SlaveState} slave * @param {object} params - * @param {string|number} [params.market] 0 if the slave is not for sale. Otherwise a string with the name of the market, partially to determine if laws apply to the market or not. + * @param {string|number} [params.market] 0 if the slave is not for sale. Otherwise a string with the name of the market, + * partially to determine if laws apply to the market or not. * @param {number} [params.eventDescription] * @returns {DocumentFragment} */ diff --git a/src/npc/descriptions/skin.js b/src/npc/descriptions/skin.js index 80a9d442928..6bd663641ac 100644 --- a/src/npc/descriptions/skin.js +++ b/src/npc/descriptions/skin.js @@ -1,7 +1,7 @@ /** * @param {App.Entity.SlaveState} slave * @param {object} params - * @param {number} [params.market] + * @param {number | string} [params.market] * @param {number} [params.eventDescription] * @returns {string} */ diff --git a/src/npc/descriptions/style/clothing.js b/src/npc/descriptions/style/clothing.js index 231e14bf1b0..9fe0884e121 100644 --- a/src/npc/descriptions/style/clothing.js +++ b/src/npc/descriptions/style/clothing.js @@ -1,7 +1,7 @@ /** * @param {App.Entity.SlaveState} slave * @param {object} params - * @param {number} [params.market] + * @param {number | string} [params.market] * @param {number} [params.eventDescription] * @returns {string} */ diff --git a/src/npc/descriptions/womb/pregnancy.js b/src/npc/descriptions/womb/pregnancy.js index 9b30e76f732..8d38aefc24a 100644 --- a/src/npc/descriptions/womb/pregnancy.js +++ b/src/npc/descriptions/womb/pregnancy.js @@ -1,7 +1,7 @@ /** * @param {App.Entity.SlaveState} slave * @param {object} params - * @param {number} [params.market] + * @param {number| string} [params.market] * @param {number} [params.eventDescription] * @returns {string} */ diff --git a/src/npc/generate/lawCompliance.js b/src/npc/generate/lawCompliance.js index f65daac17fc..c5801fe3cbf 100644 --- a/src/npc/generate/lawCompliance.js +++ b/src/npc/generate/lawCompliance.js @@ -1,5 +1,6 @@ /** * @param {App.Entity.SlaveState} slave + * @param {number | string} [market=0] * @returns {string} */ App.Desc.lawCompliance = function(slave, market = 0) { diff --git a/src/npc/surgery/organs.js b/src/npc/surgery/organs.js index e73f83bec6b..ecb0bfeb5fc 100644 --- a/src/npc/surgery/organs.js +++ b/src/npc/surgery/organs.js @@ -398,7 +398,7 @@ App.Medicine.OrganFarm.init = function() { implant: s => { s.bald = 0; s.hLength = 1; - s.hair = "neat"; + s.hStyle = "neat"; s.hColor = getGeneticHairColor(s); } }), -- GitLab