diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 24a5dd72f6d5c21b699f80c0911e8b5c5475d1dc..cdc57ef66c39fa41f551d9b67598b8122514468f 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -10498,6 +10498,8 @@ window.removeJob = function removeJob(slave, assignment) { return r; }; +/*:: birthJS [script]*/ + window.BirthDestinationText = function(choice,slave) { const V = State.variables,T = State.temporary,sn = SlaveFullName(slave); var r = ``; diff --git a/src/js/assignJS.tw b/src/js/assignJS.tw index 53af7801efc1500a4c5dbba3998c911178730a74..342e01aa19aa8d064d65604d6f91112112a41697 100644 --- a/src/js/assignJS.tw +++ b/src/js/assignJS.tw @@ -517,107 +517,4 @@ window.removeJob = function removeJob(slave, assignment) { V.slaves[idx] = slave; return r; -}; - -window.BirthDestinationText = function(choice,slave) { - const V = State.variables,T = State.temporary,sn = SlaveFullName(slave); - var r = ``; - if (T.call !== 1) { if (choice !== "Private") r += `sent to one of ${arcologies[0].name}'s `; - } else { if (choice !== "Sold") r += ` ${sn} `; - } - switch(choice) { - case "Breeder": - if (T.call !== 1) r += `future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. ${sn} `; - if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { - r += `has few thoughts about the matter.`; - } else if (slave.devotion > 95) { - r += `loves you already, but ${V.he}'ll <span class='hotpink'>love you even more</span> for this. ${V.he} can't wait to see ${V.his} child${T.count > 1 ? 'ren':''} proudly furthering your cause.`; - slave.devotion += 4; - } else if (slave.devotion > 50) { - r += `heard about these and will be <span class='hotpink;happy that ${V.his} child${T.count > 1 ? 'ren':''} will have a purpose in your society other than slavery.</span> ${V.he} will miss ${V.his} child${T.count > 1 ? 'ren':''}, but ${V.he} expected that.`; - slave.devotion += 4; - } else if (slave.devotion > 20) { - r += `will naturally miss ${V.his} child${T.count > 1 ? 'ren':''}, but will is broken enough to hope that ${V.his} offspring will have a better life, or at least an enjoyable one.`; - } else { - r += `will of course <span class='mediumorchid'>hate you for this.</span> The mere thought of ${V.his} ${fertilityAge} year old daughter${T.count > 1 ? 's':''} swollen with life, and proud of it, fills ${V.him} with <span class='gold'>disdain.</span>`; - slave.devotion -= 4, slave.trust -= 4; - } - break; - case "Orphanage": - if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { - r += `has few thoughts about the matter.`; - } else if (slave.devotion > 95) { - r += `worships you so completely that ${V.he} will not resent this.`; - } else if ( slave.devotion > 50) { - r += `is devoted to you, but ${V.he} will <span class='mediumorchid'>struggle to accept this.</span>`; - slave.devotion -= 2; - } else if ( slave.devotion > 20) { - r += `has accepted being a sex slave, but ${V.he} will <span class='mediumorchid'>resent this intensely.</span>`; - slave.devotion -= 3; - } else { - r += `will of course <span class='mediumorchid'>hate you for this.</span>`; - slave.devotion -= 4; - } - break; - case "Citizen": - if (T.call !== 1) r += `citizen schools, to be brought up coequal with the arcology's other young people. ${sn} `; - if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { - r += `has few thoughts about the matter.`; - } else if (slave.devotion > 95) { - r += `loves you already, but ${V.he}'ll <span class='hotpink'>love you even more</span> for this.`; - } else if (slave.devotion > 50) { - r += `knows about these and will be <span class='hotpink'>overjoyed,</span> ${V.he} will miss ${V.his} child${T.count > 1 ? 'ren':''}, but ${V.he} expected that.`; - } else if (slave.devotion > 20) { - r += `will naturally miss ${V.his} child${T.count > 1 ? 'ren':''}, but will <span class='hotpink;take comfort@@ in the hope that ${V.his} offspring will have a better life.`; - } else { - r += `will naturally retain some resentment over being separated from ${V.his} child${T.count > 1 ? 'ren':''}, but this should be balanced by hope that ${V.his} offspring will have a better life.`; - } - break; - case "Private": - if (T.call !== 1) r += `${T.count > 1 ? 'ren are':' is'} sent to be privately raised, to be brought up as a future high class citizen. ${sn} `; - if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { - r += `has few thoughts about the matter.`; - } else if (slave.devotion > 95) { - r += `will <span class='hotpink'>worship you utterly</span> for this.`; - } else if (slave.devotion > 50) { - r += `understands that this is the best possible outcome for the offspring of a slave, and will be <span class='hotpink'>overjoyed.</span>`; - } else if (slave.devotion > 20) { - r += `will miss ${V.his} child${T.count > 1 ? 'ren':''}, but will be <span class='hotpink'>very grateful,</span> since ${V.he}'ll understand this is the best possible outcome for a slave mother.`; - } else { - r += `will resent being separated from ${V.his} child${T.count > 1 ? 'ren':''}, but <span class='hotpink'>should understand and be grateful</span> that this is the best possible outcome here.`; - } - r += ` The child${T.count > 1 ? 'ren':''} will be raised privately, with expert care and tutoring, an expensive proposition.`; - break; - case "Sold": - r += `${T.call !== 1 ? "${V.his} ${T.count > 1 ? 'babies':'baby'}":"Where they"} `; - if (slave.prestige > 1 || slave.pornPrestige > 2) { - T.babyCost = jsRandom(-12,100); - if (slave.prematureBirth > 0) T.babyCost = jsRandom(-32,40); - r += `went for ${T.curBabies > 1 ? ' a total ':'a'} bid of`; - } else { - T.babyCost = jsRandom(-12,12); - if (slave.prematureBirth > 0) T.babyCost = -45; - r += `sold for ${T.curBabies > 1 ? ' a total of':''}`; - } - const cash = cashFormat(T.count*(50+T.babyCost));r += ` <span class='yellowgreen'>${cash}.</span>`; - if (slave.prematureBirth > 0) r += ` A low price due to the added costs of caring for ${T.count > 1 ? 'them':'it'}.`; - if (slave.devotion > 20) r += ` ${sn} `; - if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { - r += `has few thoughts about the matter.`; - } else if (slave.devotion > 95) { - r += `adheres to your thoughts so strongly that even though you backed out of caring for ${V.his} child${T.count > 1 ? 'ren':''}, ${V.he} still truly believes you are doing ${V.him} an honor.`; - } else if (slave.devotion > 50) { - r += `is <span class='mediumorchid'>deeply hurt</span> by your sudden decision to sell ${V.his} child${T.count > 1 ? 'ren':''} instead of having ${T.count > 1 ? 'them':'it'} cared for. ${V.his} trust in your words <span class='gold'>wavers</span> as ${V.he} thinks of ${V.his} child${T.count > 1 ? 'ren':''}'s future.`; - slave.trust -= 5, slave.devotion -= 5; - } else if (slave.devotion > 20) { - r += `is <span class='mediumorchid'>devastated</span> by your sudden decision to sell ${V.his} child${T.count > 1 ? 'ren':''}instead of having ${T.count > 1 ? 'them':'it'} cared for. ${V.his} mind struggles to comprehend <span class='gold'>such betrayal.</span>`; - slave.trust -= 10, slave.devotion -= 10; - } else { - r += `For a moment, ${V.he} saw a glimmer of good in you; <span class='mediumorchid'>${V.he} was clearly wrong.</span> ${V.his} mind struggles to comprehend <span class='gold'>why ${V.he} could ever even think of trusting such a person.</span>`; - slave.trust -= 30, slave.devotion -= 30; - } - V.cash += T.curBabies*(50+T.babyCost); - break; - } - return r; }; \ No newline at end of file diff --git a/src/js/birthJS.tw b/src/js/birthJS.tw new file mode 100644 index 0000000000000000000000000000000000000000..cf62acf86868a3865d140fa09973bf63951fe06d --- /dev/null +++ b/src/js/birthJS.tw @@ -0,0 +1,104 @@ +:: birthJS [script] + +window.BirthDestinationText = function(choice,slave) { + const V = State.variables,T = State.temporary,sn = SlaveFullName(slave); + var r = ``; + if (T.call !== 1) { if (choice !== "Private") r += `sent to one of ${arcologies[0].name}'s `; + } else { if (choice !== "Sold") r += ` ${sn} `; + } + switch(choice) { + case "Breeder": + if (T.call !== 1) r += `future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. ${sn} `; + if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { + r += `has few thoughts about the matter.`; + } else if (slave.devotion > 95) { + r += `loves you already, but ${V.he}'ll <span class='hotpink'>love you even more</span> for this. ${V.he} can't wait to see ${V.his} child${T.count > 1 ? 'ren':''} proudly furthering your cause.`; + slave.devotion += 4; + } else if (slave.devotion > 50) { + r += `heard about these and will be <span class='hotpink;happy that ${V.his} child${T.count > 1 ? 'ren':''} will have a purpose in your society other than slavery.</span> ${V.he} will miss ${V.his} child${T.count > 1 ? 'ren':''}, but ${V.he} expected that.`; + slave.devotion += 4; + } else if (slave.devotion > 20) { + r += `will naturally miss ${V.his} child${T.count > 1 ? 'ren':''}, but will is broken enough to hope that ${V.his} offspring will have a better life, or at least an enjoyable one.`; + } else { + r += `will of course <span class='mediumorchid'>hate you for this.</span> The mere thought of ${V.his} ${fertilityAge} year old daughter${T.count > 1 ? 's':''} swollen with life, and proud of it, fills ${V.him} with <span class='gold'>disdain.</span>`; + slave.devotion -= 4, slave.trust -= 4; + } + break; + case "Orphanage": + if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { + r += `has few thoughts about the matter.`; + } else if (slave.devotion > 95) { + r += `worships you so completely that ${V.he} will not resent this.`; + } else if ( slave.devotion > 50) { + r += `is devoted to you, but ${V.he} will <span class='mediumorchid'>struggle to accept this.</span>`; + slave.devotion -= 2; + } else if ( slave.devotion > 20) { + r += `has accepted being a sex slave, but ${V.he} will <span class='mediumorchid'>resent this intensely.</span>`; + slave.devotion -= 3; + } else { + r += `will of course <span class='mediumorchid'>hate you for this.</span>`; + slave.devotion -= 4; + } + break; + case "Citizen": + if (T.call !== 1) r += `citizen schools, to be brought up coequal with the arcology's other young people. ${sn} `; + if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { + r += `has few thoughts about the matter.`; + } else if (slave.devotion > 95) { + r += `loves you already, but ${V.he}'ll <span class='hotpink'>love you even more</span> for this.`; + } else if (slave.devotion > 50) { + r += `knows about these and will be <span class='hotpink'>overjoyed,</span> ${V.he} will miss ${V.his} child${T.count > 1 ? 'ren':''}, but ${V.he} expected that.`; + } else if (slave.devotion > 20) { + r += `will naturally miss ${V.his} child${T.count > 1 ? 'ren':''}, but will <span class='hotpink;take comfort@@ in the hope that ${V.his} offspring will have a better life.`; + } else { + r += `will naturally retain some resentment over being separated from ${V.his} child${T.count > 1 ? 'ren':''}, but this should be balanced by hope that ${V.his} offspring will have a better life.`; + } + break; + case "Private": + if (T.call !== 1) r += `${T.count > 1 ? 'ren are':' is'} sent to be privately raised, to be brought up as a future high class citizen. ${sn} `; + if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { + r += `has few thoughts about the matter.`; + } else if (slave.devotion > 95) { + r += `will <span class='hotpink'>worship you utterly</span> for this.`; + } else if (slave.devotion > 50) { + r += `understands that this is the best possible outcome for the offspring of a slave, and will be <span class='hotpink'>overjoyed.</span>`; + } else if (slave.devotion > 20) { + r += `will miss ${V.his} child${T.count > 1 ? 'ren':''}, but will be <span class='hotpink'>very grateful,</span> since ${V.he}'ll understand this is the best possible outcome for a slave mother.`; + } else { + r += `will resent being separated from ${V.his} child${T.count > 1 ? 'ren':''}, but <span class='hotpink'>should understand and be grateful</span> that this is the best possible outcome here.`; + } + r += ` The child${T.count > 1 ? 'ren':''} will be raised privately, with expert care and tutoring, an expensive proposition.`; + break; + case "Sold": + r += `${T.call !== 1 ? "${V.his} ${T.count > 1 ? 'babies':'baby'}":"Where they"} `; + if (slave.prestige > 1 || slave.pornPrestige > 2) { + T.babyCost = jsRandom(-12,100); + if (slave.prematureBirth > 0) T.babyCost = jsRandom(-32,40); + r += `went for ${T.curBabies > 1 ? ' a total ':'a'} bid of`; + } else { + T.babyCost = jsRandom(-12,12); + if (slave.prematureBirth > 0) T.babyCost = -45; + r += `sold for ${T.curBabies > 1 ? ' a total of':''}`; + } + const cash = cashFormat(T.count*(50+T.babyCost));r += ` <span class='yellowgreen'>${cash}.</span>`; + if (slave.prematureBirth > 0) r += ` A low price due to the added costs of caring for ${T.count > 1 ? 'them':'it'}.`; + if (slave.devotion > 20) r += ` ${sn} `; + if (slave.fetish == "mindbroken" || slave.fuckdoll > 0) { + r += `has few thoughts about the matter.`; + } else if (slave.devotion > 95) { + r += `adheres to your thoughts so strongly that even though you backed out of caring for ${V.his} child${T.count > 1 ? 'ren':''}, ${V.he} still truly believes you are doing ${V.him} an honor.`; + } else if (slave.devotion > 50) { + r += `is <span class='mediumorchid'>deeply hurt</span> by your sudden decision to sell ${V.his} child${T.count > 1 ? 'ren':''} instead of having ${T.count > 1 ? 'them':'it'} cared for. ${V.his} trust in your words <span class='gold'>wavers</span> as ${V.he} thinks of ${V.his} child${T.count > 1 ? 'ren':''}'s future.`; + slave.trust -= 5, slave.devotion -= 5; + } else if (slave.devotion > 20) { + r += `is <span class='mediumorchid'>devastated</span> by your sudden decision to sell ${V.his} child${T.count > 1 ? 'ren':''}instead of having ${T.count > 1 ? 'them':'it'} cared for. ${V.his} mind struggles to comprehend <span class='gold'>such betrayal.</span>`; + slave.trust -= 10, slave.devotion -= 10; + } else { + r += `For a moment, ${V.he} saw a glimmer of good in you; <span class='mediumorchid'>${V.he} was clearly wrong.</span> ${V.his} mind struggles to comprehend <span class='gold'>why ${V.he} could ever even think of trusting such a person.</span>`; + slave.trust -= 30, slave.devotion -= 30; + } + V.cash += T.curBabies*(50+T.babyCost); + break; + } + return r; +}; \ No newline at end of file