Skip to content
Snippets Groups Projects
Commit a68ef5a6 authored by kopareigns's avatar kopareigns
Browse files

More semicolons

parent c6b6ee66
No related branches found
No related tags found
No related merge requests found
...@@ -12912,7 +12912,7 @@ window.saRest = function saRest(slave) { ...@@ -12912,7 +12912,7 @@ window.saRest = function saRest(slave) {
   
if (V.showVignettes == 1 && slave.assignment === Job.REST) { if (V.showVignettes == 1 && slave.assignment === Job.REST) {
var _vignette = GetVignette(slave); var _vignette = GetVignette(slave);
t += ` __This week__ ${_vignette.text} ` t += ` __This week__ ${_vignette.text} `;
if (_vignette.type == "cash") { if (_vignette.type == "cash") {
if (_vignette.effect > 0) { if (_vignette.effect > 0) {
t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`; t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`;
...@@ -13102,7 +13102,7 @@ window.saServant = function saServant(slave) { ...@@ -13102,7 +13102,7 @@ window.saServant = function saServant(slave) {
   
if (V.showVignettes == 1 && (slave.assignment === Job.SERVANT || slave.assignment === Job.SERVER)) { if (V.showVignettes == 1 && (slave.assignment === Job.SERVANT || slave.assignment === Job.SERVER)) {
var _vignette = GetVignette(slave); var _vignette = GetVignette(slave);
t += ` __This week__ ${_vignette.text} ` t += ` __This week__ ${_vignette.text} `;
if (_vignette.type == "cash") { if (_vignette.type == "cash") {
if (_vignette.effect > 0) { if (_vignette.effect > 0) {
t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`; t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`;
...@@ -13186,69 +13186,69 @@ window.saServant = function saServant(slave) { ...@@ -13186,69 +13186,69 @@ window.saServant = function saServant(slave) {
   
window.saStayConfined = function saStayConfined(slave) { window.saStayConfined = function saStayConfined(slave) {
   
var pronouns = getPronouns(slave) var pronouns = getPronouns(slave);
var he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun var he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun;
var He = capFirstChar(he), His = capFirstChar(his) var He = capFirstChar(he), His = capFirstChar(his);
var V = State.variables var V = State.variables;
   
var t = "" var t = "";
   
if (slave.fetish != "mindbroken") { if (slave.fetish != "mindbroken") {
if (slave.devotion < -50) { if (slave.devotion < -50) {
t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. ${He} still hates ${his} place in the world, but being forced to rely on slave life as ${his} only human contact <span class='hotpink'>grinds down ${his} resistance.</span>` t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. ${He} still hates ${his} place in the world, but being forced to rely on slave life as ${his} only human contact <span class='hotpink'>grinds down ${his} resistance.</span>`;
slave.devotion += 2 slave.devotion += 2;
} else if (slave.devotion <= 20) { } else if (slave.devotion <= 20) {
t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. With nothing to do but look forward to the next time ${he}'s let out to serve, <span class='hotpink'>${he} begins to rely on servitude.</span>` t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. With nothing to do but look forward to the next time ${he}'s let out to serve, <span class='hotpink'>${he} begins to rely on servitude.</span>`;
slave.devotion += 1 slave.devotion += 1;
} else if (slave.devotion <= 50) { } else if (slave.devotion <= 50) {
t += `accepts solitary confinement whenever ${he} is not being forced to do something else. Since ${he} is obedient, the mental torture neither breaks ${him} further nor causes ${him} to hate you.` t += `accepts solitary confinement whenever ${he} is not being forced to do something else. Since ${he} is obedient, the mental torture neither breaks ${him} further nor causes ${him} to hate you.`;
} else { } else {
t += `accepts solitary confinement whenever ${he} is not being forced to do something else. ${He} spends ${his} time wondering hopelessly how ${he} has failed you, <span class='mediumorchid'>damaging ${his} devotion to you.</span>` t += `accepts solitary confinement whenever ${he} is not being forced to do something else. ${He} spends ${his} time wondering hopelessly how ${he} has failed you, <span class='mediumorchid'>damaging ${his} devotion to you.</span>`;
slave.devotion -= 2 slave.devotion -= 2;
} }
   
if (slave.trust < -50) { if (slave.trust < -50) {
t += ` ${He} is so terrified of you that this confinement does not make ${him} fear you any more.` t += ` ${He} is so terrified of you that this confinement does not make ${him} fear you any more.`;
} else if (slave.trust < -20) { } else if (slave.trust < -20) {
t += ` ${He} is already afraid of you, but this confinement makes ${him} <span class='gold'>fear you even more.</span>` t += ` ${He} is already afraid of you, but this confinement makes ${him} <span class='gold'>fear you even more.</span>`;
slave.trust -= 2 slave.trust -= 2;
} else if (slave.trust <= 20) { } else if (slave.trust <= 20) {
t += ` This confinement makes ${him} <span class='gold'>fear your power</span> over ${him}.` t += ` This confinement makes ${him} <span class='gold'>fear your power</span> over ${him}.`;
slave.trust -= 4 slave.trust -= 4;
} else { } else {
t += ` This confinement makes ${him} <span class='gold'>trust you less,</span> and fear you more.` t += ` This confinement makes ${him} <span class='gold'>trust you less,</span> and fear you more.`;
slave.trust -= 5 slave.trust -= 5;
} }
   
if (slave.assignment == "be confined in the cellblock") { if (slave.assignment == "be confined in the cellblock") {
if ((slave.hears == -1 && slave.earwear != "hearing aids") || (slave.hears == 0 && slave.earwear == "muffling ear plugs") || (slave.hears == -2)) { if ((slave.hears == -1 && slave.earwear != "hearing aids") || (slave.hears == 0 && slave.earwear == "muffling ear plugs") || (slave.hears == -2)) {
t += ` ${His} hearing impairment spares ${him} the sounds of ${his} peers getting punished, lightening the impact of ${his} imprisonment.` t += ` ${His} hearing impairment spares ${him} the sounds of ${his} peers getting punished, lightening the impact of ${his} imprisonment.`;
} }
} }
   
t += ` The stress of confinement <span class='red'>damages ${his} health.</span>` t += ` The stress of confinement <span class='red'>damages ${his} health.</span>`;
slave.health -= 10 slave.health -= 10;
} else { } else {
t += `is oblivious to ${his} confinement.` t += `is oblivious to ${his} confinement.`;
} }
   
if (slave.sentence == 0 && (slave.devotion > 20 || (slave.devotion >= -20 && slave.trust < -20) || (slave.devotion >= -50 && slave.trust < -50) || slave.fetish == "mindbroken")) { if (slave.sentence == 0 && (slave.devotion > 20 || (slave.devotion >= -20 && slave.trust < -20) || (slave.devotion >= -50 && slave.trust < -50) || slave.fetish == "mindbroken")) {
if (slave.fetish == "mindbroken") { if (slave.fetish == "mindbroken") {
t += ` ${His} broken mind hinges entirely on other's guidance,` t += ` ${His} broken mind hinges entirely on other's guidance,`;
} else { } else {
t += ` ${He} is now willing to <span class='hotpink'>do as ${he}'s told,</span>` t += ` ${He} is now willing to <span class='hotpink'>do as ${he}'s told,</span>`;
} }
t += ` so <span class='yellow'>${his} assignment has defaulted to rest.</span>` t += ` so <span class='yellow'>${his} assignment has defaulted to rest.</span>`;
if (slave.assignment == "be confined in the cellblock") { if (slave.assignment == "be confined in the cellblock") {
State.temporary.brokenSlaves++ State.temporary.brokenSlaves++;
State.temporary.DL-- State.temporary.DL--;
State.temporary.dI-- State.temporary.dI--;
} }
removeJob(slave, slave.assignment) removeJob(slave, slave.assignment);
} }
   
return t return t;
} };
   
/* /*
Displays assistant images. Currently passage-based. Displays assistant images. Currently passage-based.
...@@ -26466,7 +26466,7 @@ window.getHighestPorn = function(slave) { ...@@ -26466,7 +26466,7 @@ window.getHighestPorn = function(slave) {
} }
   
return max; return max;
} };
   
/*:: Art JS [script]*/ /*:: Art JS [script]*/
   
...@@ -113,4 +113,4 @@ window.getHighestPorn = function(slave) { ...@@ -113,4 +113,4 @@ window.getHighestPorn = function(slave) {
} }
return max; return max;
} };
\ No newline at end of file
...@@ -55,7 +55,7 @@ window.saRest = function saRest(slave) { ...@@ -55,7 +55,7 @@ window.saRest = function saRest(slave) {
if (V.showVignettes == 1 && slave.assignment === Job.REST) { if (V.showVignettes == 1 && slave.assignment === Job.REST) {
var _vignette = GetVignette(slave); var _vignette = GetVignette(slave);
t += ` __This week__ ${_vignette.text} ` t += ` __This week__ ${_vignette.text} `;
if (_vignette.type == "cash") { if (_vignette.type == "cash") {
if (_vignette.effect > 0) { if (_vignette.effect > 0) {
t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`; t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`;
...@@ -133,4 +133,4 @@ window.saRest = function saRest(slave) { ...@@ -133,4 +133,4 @@ window.saRest = function saRest(slave) {
} }
return t; return t;
} };
\ No newline at end of file
...@@ -108,7 +108,7 @@ window.saServant = function saServant(slave) { ...@@ -108,7 +108,7 @@ window.saServant = function saServant(slave) {
if (V.showVignettes == 1 && (slave.assignment === Job.SERVANT || slave.assignment === Job.SERVER)) { if (V.showVignettes == 1 && (slave.assignment === Job.SERVANT || slave.assignment === Job.SERVER)) {
var _vignette = GetVignette(slave); var _vignette = GetVignette(slave);
t += ` __This week__ ${_vignette.text} ` t += ` __This week__ ${_vignette.text} `;
if (_vignette.type == "cash") { if (_vignette.type == "cash") {
if (_vignette.effect > 0) { if (_vignette.effect > 0) {
t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`; t += `<span class='yellowgreen'>making you an extra ${cashFormat(Math.trunc(V.FResult*_vignette.effect))}.</span>`;
...@@ -186,4 +186,4 @@ window.saServant = function saServant(slave) { ...@@ -186,4 +186,4 @@ window.saServant = function saServant(slave) {
} }
return t; return t;
}; };
\ No newline at end of file
...@@ -2,66 +2,66 @@ ...@@ -2,66 +2,66 @@
window.saStayConfined = function saStayConfined(slave) { window.saStayConfined = function saStayConfined(slave) {
var pronouns = getPronouns(slave) var pronouns = getPronouns(slave);
var he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun var he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun;
var He = capFirstChar(he), His = capFirstChar(his) var He = capFirstChar(he), His = capFirstChar(his);
var V = State.variables var V = State.variables;
var t = "" var t = "";
if (slave.fetish != "mindbroken") { if (slave.fetish != "mindbroken") {
if (slave.devotion < -50) { if (slave.devotion < -50) {
t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. ${He} still hates ${his} place in the world, but being forced to rely on slave life as ${his} only human contact <span class='hotpink'>grinds down ${his} resistance.</span>` t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. ${He} still hates ${his} place in the world, but being forced to rely on slave life as ${his} only human contact <span class='hotpink'>grinds down ${his} resistance.</span>`;
slave.devotion += 2 slave.devotion += 2;
} else if (slave.devotion <= 20) { } else if (slave.devotion <= 20) {
t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. With nothing to do but look forward to the next time ${he}'s let out to serve, <span class='hotpink'>${he} begins to rely on servitude.</span>` t += `is kept in solitary confinement whenever ${he} is not being forced to do something else. With nothing to do but look forward to the next time ${he}'s let out to serve, <span class='hotpink'>${he} begins to rely on servitude.</span>`;
slave.devotion += 1 slave.devotion += 1;
} else if (slave.devotion <= 50) { } else if (slave.devotion <= 50) {
t += `accepts solitary confinement whenever ${he} is not being forced to do something else. Since ${he} is obedient, the mental torture neither breaks ${him} further nor causes ${him} to hate you.` t += `accepts solitary confinement whenever ${he} is not being forced to do something else. Since ${he} is obedient, the mental torture neither breaks ${him} further nor causes ${him} to hate you.`;
} else { } else {
t += `accepts solitary confinement whenever ${he} is not being forced to do something else. ${He} spends ${his} time wondering hopelessly how ${he} has failed you, <span class='mediumorchid'>damaging ${his} devotion to you.</span>` t += `accepts solitary confinement whenever ${he} is not being forced to do something else. ${He} spends ${his} time wondering hopelessly how ${he} has failed you, <span class='mediumorchid'>damaging ${his} devotion to you.</span>`;
slave.devotion -= 2 slave.devotion -= 2;
} }
if (slave.trust < -50) { if (slave.trust < -50) {
t += ` ${He} is so terrified of you that this confinement does not make ${him} fear you any more.` t += ` ${He} is so terrified of you that this confinement does not make ${him} fear you any more.`;
} else if (slave.trust < -20) { } else if (slave.trust < -20) {
t += ` ${He} is already afraid of you, but this confinement makes ${him} <span class='gold'>fear you even more.</span>` t += ` ${He} is already afraid of you, but this confinement makes ${him} <span class='gold'>fear you even more.</span>`;
slave.trust -= 2 slave.trust -= 2;
} else if (slave.trust <= 20) { } else if (slave.trust <= 20) {
t += ` This confinement makes ${him} <span class='gold'>fear your power</span> over ${him}.` t += ` This confinement makes ${him} <span class='gold'>fear your power</span> over ${him}.`;
slave.trust -= 4 slave.trust -= 4;
} else { } else {
t += ` This confinement makes ${him} <span class='gold'>trust you less,</span> and fear you more.` t += ` This confinement makes ${him} <span class='gold'>trust you less,</span> and fear you more.`;
slave.trust -= 5 slave.trust -= 5;
} }
if (slave.assignment == "be confined in the cellblock") { if (slave.assignment == "be confined in the cellblock") {
if ((slave.hears == -1 && slave.earwear != "hearing aids") || (slave.hears == 0 && slave.earwear == "muffling ear plugs") || (slave.hears == -2)) { if ((slave.hears == -1 && slave.earwear != "hearing aids") || (slave.hears == 0 && slave.earwear == "muffling ear plugs") || (slave.hears == -2)) {
t += ` ${His} hearing impairment spares ${him} the sounds of ${his} peers getting punished, lightening the impact of ${his} imprisonment.` t += ` ${His} hearing impairment spares ${him} the sounds of ${his} peers getting punished, lightening the impact of ${his} imprisonment.`;
} }
} }
t += ` The stress of confinement <span class='red'>damages ${his} health.</span>` t += ` The stress of confinement <span class='red'>damages ${his} health.</span>`;
slave.health -= 10 slave.health -= 10;
} else { } else {
t += `is oblivious to ${his} confinement.` t += `is oblivious to ${his} confinement.`;
} }
if (slave.sentence == 0 && (slave.devotion > 20 || (slave.devotion >= -20 && slave.trust < -20) || (slave.devotion >= -50 && slave.trust < -50) || slave.fetish == "mindbroken")) { if (slave.sentence == 0 && (slave.devotion > 20 || (slave.devotion >= -20 && slave.trust < -20) || (slave.devotion >= -50 && slave.trust < -50) || slave.fetish == "mindbroken")) {
if (slave.fetish == "mindbroken") { if (slave.fetish == "mindbroken") {
t += ` ${His} broken mind hinges entirely on other's guidance,` t += ` ${His} broken mind hinges entirely on other's guidance,`;
} else { } else {
t += ` ${He} is now willing to <span class='hotpink'>do as ${he}'s told,</span>` t += ` ${He} is now willing to <span class='hotpink'>do as ${he}'s told,</span>`;
} }
t += ` so <span class='yellow'>${his} assignment has defaulted to rest.</span>` t += ` so <span class='yellow'>${his} assignment has defaulted to rest.</span>`;
if (slave.assignment == "be confined in the cellblock") { if (slave.assignment == "be confined in the cellblock") {
State.temporary.brokenSlaves++ State.temporary.brokenSlaves++;
State.temporary.DL-- State.temporary.DL--;
State.temporary.dI-- State.temporary.dI--;
} }
removeJob(slave, slave.assignment) removeJob(slave, slave.assignment);
} }
return t return t;
} };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment