diff --git a/src/js/descriptionWidgets.js b/src/js/descriptionWidgets.js index 45341f4c26637eac86879dd91afa6c1cd088683e..e0c044cafceb9803411793ce01882971fe785608 100644 --- a/src/js/descriptionWidgets.js +++ b/src/js/descriptionWidgets.js @@ -3,12 +3,20 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { "use strict"; const V = State.variables; let r; - let p = getPronouns(slave); + var pronouns = getPronouns(V.HeadGirl); + var he = pronouns.pronoun; + var him = pronouns.object; + var his = pronouns.possessive; + var hers = pronouns.possessivePronoun; + var himself = pronouns.objectReflexive; + var boy = pronouns.noun; + var He = capFirstChar(he); + var His = capFirstChar(his); if (slave.eyes === -2) { const HC = hasVisibleHeterochromia(slave) ? 1 : 0; if (slave.eyeColor !== "empty") { - r += `${p.His} eyes are dull`; + r += `${His} eyes are dull`; if (V.saleDescription && V.PC.medicine >= 50 || V.PC.slaving >= 50) { r += `, unfocused`; if (HC) { @@ -21,22 +29,22 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { } r += ` and unfocused`; } - r += `,`; + r += `, `; } else { - r += `${p.His} gaze is empty.` + r += `${His} gaze is empty.` } if (slave.intelligence > 95) { - r += `but ${p.his} facial expressions reveal ${p.he} is incisive, quick, cunning;`; + r += `but ${his} facial expressions reveal ${he} is incisive, quick, cunning;`; if (slave.intelligence+slave.intelligenceImplant >= 130) { - r += `with ${p.his} education, ${p.he} is so far <span class=deepskyblue>beyond brilliant</span> that ${p.he} is nearly peerless.`; + r += `with ${his} education, ${he} is so far <span class=deepskyblue>beyond brilliant</span> that ${he} is nearly peerless.`; } else if (slave.intelligenceImplant >= 15) { - r += `${p.he} is both <span class=deepskyblue>brilliant</span> and `; + r += `${he} is both <span class=deepskyblue>brilliant</span> and `; if (slave.intelligenceImplant >= 30) { r += `well `; } r += `educated.`; } else { - r += `${p.he} is so <span class=deepskyblue>brilliant</span> that ${p.his} `; + r += `${he} is so <span class=deepskyblue>brilliant</span> that ${his} `; if (slave.intelligenceImplant > 0) { r += `meager `; } else { @@ -46,15 +54,15 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { } } else if(slave.intelligence > 50) { if (slave.intelligence+slave.intelligenceImplant > 95) { - r += `but ${p.his} facial expressions reveal ${p.he} is incisive, quick, cunning; with ${p.his} education, ${p.he} can be considered <span class=deepskyblue>brilliant.</span>`; + r += `but ${his} facial expressions reveal ${he} is incisive, quick, cunning; with ${his} education, ${he} can be considered <span class=deepskyblue>brilliant.</span>`; } else if (slave.intelligenceImplant >= 15) { - r += `but ${p.his} face is alive with intelligence; ${p.he} is both <span class=deepskyblue>highly intelligent</span> and `; + r += `but ${his} face is alive with intelligence; ${he} is both <span class=deepskyblue>highly intelligent</span> and `; if (slave.intelligenceImplant >= 30) { r += `well `; } r += `educated.`; } else { - r += `but ${p.his} face is alive with intelligence; ${p.he} is so <span class=deepskyblue>highly intelligent</span> that ${p.his}`; + r += `but ${his} face is alive with intelligence; ${he} is so <span class=deepskyblue>highly intelligent</span> that ${his}`; if (slave.intelligenceImplant > 0) { r += `meager`; } else { @@ -64,45 +72,45 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { } } else if (slave.intelligence > 15) { if (slave.intelligence+slave.intelligenceImplant > 50) { - r += `but ${p.his} face is alive with intelligence; with ${p.his} education, ${p.he} can be considered <span class=deepskyblue>highly intelligent.</span>`; + r += `but ${his} face is alive with intelligence; with ${his} education, ${he} can be considered <span class=deepskyblue>highly intelligent.</span>`; } else if (slave.intelligenceImplant >= 15) { - r += `but ${p.his} facial expressions reveal ${p.his} cleverness; ${p.he} is of <span class=deepskyblue>above average intelligence</span> and `; + r += `but ${his} facial expressions reveal ${his} cleverness; ${he} is of <span class=deepskyblue>above average intelligence</span> and `; if (slave.intelligenceImplant >= 30) { r += `well `; } r += `educated.`; } else { - r += `but ${p.his} facial expressions reveal ${p.his} cleverness; ${p.he} is of <span class=deepskyblue>above average intelligence</span> despite being undereducated.`; + r += `but ${his} facial expressions reveal ${his} cleverness; ${he} is of <span class=deepskyblue>above average intelligence</span> despite being undereducated.`; } } else if (slave.intelligence >= -15) { if (slave.intelligence+slave.intelligenceImplant > 15) { - r += `but ${p.his} facial expressions reveal ${p.his} cleverness; with ${p.his} education, ${p.he} can be considered of <span class=deepskyblue>above average intelligence.</span>`; + r += `but ${his} facial expressions reveal ${his} cleverness; with ${his} education, ${he} can be considered of <span class=deepskyblue>above average intelligence.</span>`; } else if (slave.intelligenceImplant >= 15) { - r += `but ${p.his} facial expressions reveal ${p.his} alertness; ${p.he} is of average intelligence due to being`; + r += `but ${his} facial expressions reveal ${his} alertness; ${he} is of average intelligence due to being`; if (slave.intelligenceImplant >= 30) { r += `well `; } r += `educated.`; } else { - r += `but ${p.his} facial expressions reveal ${p.his} alertness; ${p.he} is of average intelligence and is undereducated.`; + r += `but ${his} facial expressions reveal ${his} alertness; ${he} is of average intelligence and is undereducated.`; } } else if (slave.intelligence >= -50) { if (slave.intelligence+slave.intelligenceImplant >= -15) { - r += `but ${p.his} facial expressions reveal ${p.his} alertness; with ${p.his} education, ${p.he} can be considered of average intelligence.`; + r += `but ${his} facial expressions reveal ${his} alertness; with ${his} education, ${he} can be considered of average intelligence.`; } else if (slave.intelligenceImplant >= 15) { - r += `but ${p.his} facial expressions reveal ${p.he} is rather dim; ${p.he} is of <span class=orangered>below average intelligence</span> despite having been `; + r += `but ${his} facial expressions reveal ${he} is rather dim; ${he} is of <span class=orangered>below average intelligence</span> despite having been `; if (slave.intelligenceImplant >= 30) { r += `thoroughly `; } r += `educated.`; } else { - r += `but ${p.his} facial expressions reveal ${p.he} is rather dim; ${p.he} is of <span class=orangered>below average intelligence</span> and is poorly educated.`; + r += `but ${his} facial expressions reveal ${he} is rather dim; ${he} is of <span class=orangered>below average intelligence</span> and is poorly educated.`; } } else if (slave.intelligence >= -95) { if (slave.intelligence+slave.intelligenceImplant >= -50) { - r += `but ${p.his} facial expressions reveal ${p.he} is rather dim; even with ${p.his} education, ${p.he} can only be considered of <span class=orangered>below average intelligence.</span>`; + r += `but ${his} facial expressions reveal ${he} is rather dim; even with ${his} education, ${he} can only be considered of <span class=orangered>below average intelligence.</span>`; } else if (slave.intelligenceImplant >= 15) { - r += `but ${p.his} facial expressions reveal ${p.he} is as dull as ${p.his} eyes; ${p.he} is <span class=orangered>quite stupid</span> despite having `; + r += `but ${his} facial expressions reveal ${he} is as dull as ${his} eyes; ${he} is <span class=orangered>quite stupid</span> despite having `; if (slave.intelligenceImplant >= 30) { r += `an advanced`; } else { @@ -110,31 +118,31 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { } r += ` education.`; } else { - r += `but ${p.his} facial expressions reveal ${p.he} is as dull as ${p.his} eyes; ${p.he} is <span class=orangered>quite stupid</span> and ignorant.`; + r += `but ${his} facial expressions reveal ${he} is as dull as ${his} eyes; ${he} is <span class=orangered>quite stupid</span> and ignorant.`; } } else { - r += `though you doubt it would be much different if ${p.he} could see;`; + r += `though you doubt it would be much different if ${he} could see;`; if (slave.intelligence+slave.intelligenceImplant >= -95) { - r += `even with ${p.his} education, ${p.he} is still <span class=orangered>really stupid.</span>`; + r += `even with ${his} education, ${he} is still <span class=orangered>really stupid.</span>`; } else if (slave.intelligenceImplant > 0) { - r += `${p.he} is <span class=orangered>a moron,</span> yet somehow still remembers the basics of an education.`; + r += `${he} is <span class=orangered>a moron,</span> yet somehow still remembers the basics of an education.`; } else { - r += `${p.he} is <span class=orangered>a moron,</span> and ignorant to boot.`; + r += `${he} is <span class=orangered>a moron,</span> and ignorant to boot.`; } } } else { if (slave.intelligence > 95) { - r += `${p.His} ${App.Desc.EyeColor(slave)}-eyed gaze is incisive, quick, cunning;`; + r += `${His} ${App.Desc.EyeColor(slave)}-eyed gaze is incisive, quick, cunning;`; if (slave.intelligence+slave.intelligenceImplant >= 130) { - r += `with ${p.his} education, ${p.he} is so far <span class=deepskyblue>beyond brilliant</span> that ${p.he} is nearly peerless.`; + r += `with ${his} education, ${he} is so far <span class=deepskyblue>beyond brilliant</span> that ${he} is nearly peerless.`; } else if (slave.intelligenceImplant >= 15) { - r += `${p.he} is both <span class=deepskyblue>brilliant</span> and `; + r += `${he} is both <span class=deepskyblue>brilliant</span> and `; if (slave.intelligenceImplant >= 30) { r += `well `; } r += `educated.`; } else { - r += `${p.he} is so <span class=deepskyblue>brilliant</span> that ${p.his} `; + r += `${he} is so <span class=deepskyblue>brilliant</span> that ${his} `; if (slave.intelligenceImplant > 0) { r += `meager`; } else { @@ -143,15 +151,15 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { r += `education is unimportant.`; } } else if (slave.intelligence > 50) { - r += `${p.His} ${App.Desc.EyeColor(slave)}-eyed gaze is incisive, quick, cunning; with ${p.his} education, ${p.he} can be considered <span class=deepskyblue>brilliant.</span>`; + r += `${His} ${App.Desc.EyeColor(slave)}-eyed gaze is incisive, quick, cunning; with ${his} education, ${he} can be considered <span class=deepskyblue>brilliant.</span>`; if (slave.intelligence+slave.intelligenceImplant > 95) { - r += `${p.His} ${App.Desc.EyeColor(slave)} eyes are alive with intelligence; ${p.he} is both <span class=deepskyblue>highly intelligent</span> and `; + r += `${His} ${App.Desc.EyeColor(slave)} eyes are alive with intelligence; ${he} is both <span class=deepskyblue>highly intelligent</span> and `; } else if (slave.intelligenceImplant >= 15) { r += `well `; if (slave.intelligenceImplant >= 30) { r += `educated.`; } - r += `${p.His} ${App.Desc.EyeColor(slave)} eyes are alive with intelligence; ${p.he} is so <span class=deepskyblue>highly intelligent</span> that ${p.his} `; + r += `${His} ${App.Desc.EyeColor(slave)} eyes are alive with intelligence; ${he} is so <span class=deepskyblue>highly intelligent</span> that ${his} `; } else { r += `meager`; if (slave.intelligenceImplant > 0) { @@ -161,53 +169,53 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { } } } else if (slave.intelligence > 15) { - r += `${p.His} ${App.Desc.EyeColor(slave)} eyes are`; + r += `${His} ${App.Desc.EyeColor(slave)} eyes are`; if (slave.intelligence+slave.intelligenceImplant >= 50) { - r += `alive with intelligence; with ${p.his} education, ${p.he} can be considered <span class=deepskyblue>highly intelligent.</span>`; + r += `alive with intelligence; with ${his} education, ${he} can be considered <span class=deepskyblue>highly intelligent.</span>`; if (slave.intelligenceImplant >= 15) { - r += `clever; ${p.he} is of <span class=deepskyblue>above average intelligence</span> and `; + r += `clever; ${he} is of <span class=deepskyblue>above average intelligence</span> and `; if (slave.intelligenceImplant >= 30) { r += `well `; } r += `educated.`; } else { - r += `clever; ${p.he} is of <span class=deepskyblue>above average intelligence</span> despite being undereducated.`; + r += `clever; ${he} is of <span class=deepskyblue>above average intelligence</span> despite being undereducated.`; } } } else if (slave.intelligence >= -15) { - r += `${p.His} ${App.Desc.EyeColor(slave)} eyes are`; + r += `${His} ${App.Desc.EyeColor(slave)} eyes are`; if (slave.intelligence+slave.intelligenceImplant >= 15) { - r += `clever; with ${p.his} education, ${p.he} can be considered of <span class=deepskyblue>above average intelligence.</span>`; + r += `clever; with ${his} education, ${he} can be considered of <span class=deepskyblue>above average intelligence.</span>`; if (slave.intelligenceImplant >= 15) { - r += `alert; ${p.he} is of average intelligence due to being `; + r += `alert; ${he} is of average intelligence due to being `; if (slave.intelligenceImplant >= 30) { r += `well `; } r += `educated.`; } else { - r += `alert; ${p.he} is of average intelligence and is undereducated.`; + r += `alert; ${he} is of average intelligence and is undereducated.`; } } } else if (slave.intelligence >= -50) { - r += `${p.His} ${App.Desc.EyeColor(slave)} eyes are`; + r += `${His} ${App.Desc.EyeColor(slave)} eyes are`; if (slave.intelligence+slave.intelligenceImplant >= -15) { - r += `alert; with ${p.his} education, ${p.he} can be considered of average intelligence.`; + r += `alert; with ${his} education, ${he} can be considered of average intelligence.`; if (slave.intelligenceImplant >= 15) { - r += `dim; ${p.he} is of <span class=orangered>below average intelligence</span> despite having been `; + r += `dim; ${he} is of <span class=orangered>below average intelligence</span> despite having been `; if (slave.intelligenceImplant >= 30) { r += `thoroughly `; } else { r += `educated.`; } - r += `dim; ${p.he} is of <span class=orangered>below average intelligence</span> and is poorly educated.`; + r += `dim; ${he} is of <span class=orangered>below average intelligence</span> and is poorly educated.`; } else { - r += `dim; even with ${p.his} education, ${p.he} can only be considered of <span class=orangered>below average intelligence.</span>`; + r += `dim; even with ${his} education, ${he} can only be considered of <span class=orangered>below average intelligence.</span>`; } } } else if (slave.intelligence >= -95) { - r += `${p.His} ${App.Desc.EyeColor(slave)} eyes are`; + r += `${His} ${App.Desc.EyeColor(slave)} eyes are`; if (slave.intelligence+slave.intelligenceImplant >= -50) { - r += `dull; ${p.he} is <span class=orangered>quite stupid</span> despite having `; + r += `dull; ${he} is <span class=orangered>quite stupid</span> despite having `; if (slave.intelligenceImplant >= 15) { r += `an advanced`; if (slave.intelligenceImplant >= 30) { @@ -215,17 +223,17 @@ App.Desc.Eyes = /** @param {App.Entity.SlaveState} slave */ function(slave) { } r += ` education.`; } else { - r += `dull; ${p.he} is <span class=orangered>quite stupid</span> and ignorant.`; + r += `dull; ${he} is <span class=orangered>quite stupid</span> and ignorant.`; } } } else { - r += `${p.His} ${App.Desc.EyeColor(slave)}-eyed gaze betrays near-total insensibility;`; + r += `${His} ${App.Desc.EyeColor(slave)}-eyed gaze betrays near-total insensibility;`; if (slave.intelligence+slave.intelligenceImplant >= -95) { - r += `even with ${p.his} education, ${p.he} is still <span class=orangered>really stupid.</span>`; + r += `even with ${his} education, ${he} is still <span class=orangered>really stupid.</span>`; } if (slave.intelligenceImplant > 0) { - r += `${p.he} is <span class=orangered>a moron,</span> yet somehow still remembers the basics of an education.`; + r += `${he} is <span class=orangered>a moron,</span> yet somehow still remembers the basics of an education.`; } else { - r += `${p.he} is <span class=orangered>a moron,</span> and ignorant to boot.`; + r += `${he} is <span class=orangered>a moron,</span> and ignorant to boot.`; } } }