diff --git a/src/events/reRoyalBlood.js b/src/events/reRoyalBlood.js index 0012561d02eb88644baa060afca16e095d2db97b..3ff3f3ef59bd30ee74cce0c3e711320b557d05a7 100644 --- a/src/events/reRoyalBlood.js +++ b/src/events/reRoyalBlood.js @@ -4,35 +4,30 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { V.nextLink = "RIE Eligibility Check"; V.returnTo = "RIE Eligibility Check"; const el = new DocumentFragment(); - /**@type {FC.Race} */ + /** @type {FC.Race} */ let race; - const slave = generateTemplate(); + const slaveTemplate = generateTemplate(); - const princess = generatePrincess(clone(slave)); + const princess = generatePrincess(clone(slaveTemplate)); const { His, his, he, him, girl - } = getPronouns(princess) + } = getPronouns(princess); - const prince = (V.seeDicks > 0) ? generatePrince(clone(slave)) : undefined + const prince = (V.seeDicks > 0) ? generatePrince(clone(slaveTemplate)) : undefined; const { - His2, - his2, he2, him2, girl2 - } = getPronouns(prince).appendSuffix('2') + his2, he2, himself2, + } = getPronouns(prince).appendSuffix('2'); - const queen = generateQueen(clone(slave)); + const queen = generateQueen(clone(slaveTemplate)); const { - His3, - his3, he3, him3, girl3 - } = getPronouns(queen).appendSuffix('3') + his3, him3, himself3, wife3 + } = getPronouns(queen).appendSuffix('3'); - const { - HisA, HeA, - heA - } = getPronouns(assistant.pronouns().main).appendSuffix("A"); + const {HeA, heA} = getPronouns(assistant.pronouns().main).appendSuffix("A"); let r = []; - r.push(`One unfortunate consequence of existing in a global world is that business opportunities continue to crop up unabated by the onset of night in one corner of the world or another, an inconsiderate phenomenon for arcology owners who happen to be asleep when an event of importance takes place outside the walls of their arcology. This particular evening you are awoken by an alert from V.assistant.name, unusually intense for this late hour.`); + r.push(`One unfortunate consequence of existing in a global world is that business opportunities continue to crop up unabated by the onset of night in one corner of the world or another, an inconsiderate phenomenon for arcology owners who happen to be asleep when an event of importance takes place outside the walls of their arcology. This particular evening you are awoken by an alert from ${V.assistant.name}, unusually intense for this late hour.`); if (V.assistant.personality > 0) { r.push(`"${properMaster()}, there is a time sensitive enslavement opportunity available if you're interested."${HeA} pauses before continuing. "You're going to want to see this one ${properMaster()}."`); } else { @@ -54,14 +49,13 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { r.push(`Time is short, but you are well placed to acquire some choice slaves. With an adequate donation${(V.SF.Toggle && V.SF.Active >= 1) ? `, or the use of ${V.SF.Lower}` : ``}, of course.`); App.Events.addParagraph(el, r); - const result = App.UI.DOM.appendNewElement("p", el); App.Events.addResponses( el, [ new App.Events.Result( "Go back to sleep", () => { - return jQuery(result).empty().append(`You inform your personal assistant that you aren't planning to take any action. It's not every day that a monarchy collapses in the old world, but it's also not particularly uncommon either.`); + return `You inform your personal assistant that you aren't planning to take any action. It's not every day that a monarchy collapses in the old world, but it's also not particularly uncommon either.`; } ), (V.cash >= 50000 && V.rep >= 2000) ? @@ -69,18 +63,16 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { "Leverage your reputation and credits to aid the new arcology in exchange for a pretty princess", () => { const text = new DocumentFragment(); - App.UI.DOM.appendNewElement("p", text, `You seize a tablet and practically roll out of your bed, working furiously and using every feature of V.assistant.name to the utmost. It's not easy, but you call in a number of favors and grease a handful of palms, and soon a flight of VTOLs are landing in the new arcology laden with goods. When they take off again they have the princess aboard clad in chains, and make a direct course towards your waiting penthouse.`); + App.UI.DOM.appendNewElement("p", text, `You seize a tablet and practically roll out of your bed, working furiously and using every feature of ${V.assistant.name} to the utmost. It's not easy, but you call in a number of favors and grease a handful of palms, and soon a flight of VTOLs are landing in the new arcology laden with goods. When they take off again they have the princess aboard clad in chains, and make a direct course towards your waiting penthouse.`); App.UI.DOM.appendNewElement("p", text, `Eventually ${he} arrives in your penthouse, the perfect image of a demure yet composed princess. ${His} clearly practiced façade of poise and grace fades under scrutiny, however. The slightest trembling of ${his} balled up fists, the minute tremors that mar ${his} immaculate posture, ${his} inability to meet your eyes with ${his} own — all signs that ${he} is still a scared ${girl} despite all ${his} royal trappings. Nonetheless, though the princess's court training is unlikely to be very beneficial to ${him} in ${his} new life in the penthouse, it does stand in stark contrast to ${his} more common slave peers.`); - princess.origin = "${He} was a princess of a royal kingdom, till ${his} family was overthrown and ${he} was sold to you in exchange for aid."; cashX(-50000, "slaveTransfer", princess); repX(-2000, "event", princess); - slave = princess; - text.append(App.UI.newSlaveIntro(slave)) + text.append(App.UI.newSlaveIntro(princess)); - return jQuery(result).empty().append(text); + return text; }, `You will need to utilize a portion of your reputation and ${cashFormat(50000)} to enslave ${him}.` - ) : new App.Events.Result(), //You lack the necessary funds and reputation to enslave a princess. + ) : new App.Events.Result(), // You lack the necessary funds and reputation to enslave a princess. (V.SF.Toggle && V.SF.Active >= 1) ? new App.Events.Result( `Dispatch a ${V.SF.Lower} on a night time raid to acquire a pretty princess.`, @@ -88,14 +80,12 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { const text = new DocumentFragment(); App.UI.DOM.appendNewElement("p", text, `Seizing a tablet, you quickly send a message to ${App.SF.SFC()}. After dark, a flight of VTOLs land in the new arcology laden with troops. When they take off again they have the princess aboard clad in chains and make a direct course towards your waiting penthouse.`); App.UI.DOM.appendNewElement("p", text, `Eventually ${he} arrives in your penthouse, the perfect image of a demure yet composed princess. ${His} clearly practiced façade of poise and grace fades under scrutiny, however. The slightest trembling of ${his} balled up fists, the minute tremors that mar ${his} immaculate posture, ${his} inability to meet your eyes with ${his} own — all signs that ${he} is still a scared ${girl} despite all ${his} royal trappings. Nonetheless, though the princess's court training is unlikely to be very beneficial to ${him} in ${his} new life in the penthouse, it does stand in stark contrast to ${his} more common slave peers.`); - princess.origin = "$He was a princess of a royal kingdom, till $his family was overthrown and $he was sold to you in exchange for aid."; V.arcologies[0].prosperity -= 15; repX(-18000, "event", princess); - slave = princess; - text.append(App.UI.newSlaveIntro(slave)) + text.append(App.UI.newSlaveIntro(princess)); - return jQuery(result).empty().append(text); + return text; }, `You will be despised for this action, and trade will be greatly damaged.` ) : new App.Events.Result(), @@ -106,17 +96,14 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { const text = new DocumentFragment(); App.UI.DOM.appendNewElement("p", text, `You seize a tablet and practically roll out of your bed, working vigorously and using every feature of V.assistant.name to the utmost.It's not easy, but your credits pave your way to sending a flight of VTOLs laden with goods to the new arcology. They take off again with the crown prince aboard and in chains, where ${he2} rails against the uncaring metal walls of the VTOL for the breadth of ${his2} journey to your penthouse.`); App.UI.DOM.appendNewElement("p", text, `When ${he2} arrives in your penthouse, the former prince is beside ${himself2} with rage.When ${he2} is brought to be modified in the remote surgery, ${he2} breaks free and attempts to fight ${his2} way out of your penthouse.${his2} attempt at freedom is futile, however, and ${he2} is soon overwhelmed by your guards and dragged back to the remote surgery.It doesn't take long for the valiant prince to become a new dickgirl, though ${his2} submission to life as a slave is another question entirely.`); - princess.origin = "$He was a princess of a royal kingdom, till $his family was overthrown and $he was sold to you in exchange for aid."; - prince.origin = "$He was the crown prince of a royal kingdom, till ${his} family was overthrown and $he was sold to you in exchange for aid."; - cashX(-35000, "slaveTransfer", prince); - slave = prince; - text.append(App.UI.newSlaveIntro(slave)) + cashX(-35000, "slaveTransfer", prince); + text.append(App.UI.newSlaveIntro(prince)); - return jQuery(result).empty().append(text); + return text; }, `Purchasing the goods and hiring the VTOLs will cost about ${cashFormat(35000)}.` - ) : new App.Events.Result(), //You lack the necessary funds to enslave a crown prince. + ) : new App.Events.Result(), // You lack the necessary funds to enslave a crown prince. (V.seeDicks > 0 && V.SF.Toggle && V.SF.Active >= 1) ? new App.Events.Result( `Dispatch ${V.SF.Lower} on a night time raid to acquire the crown prince.`, @@ -126,16 +113,13 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { App.UI.DOM.appendNewElement("p", text, `When ${he2} arrives in your penthouse, the former prince is beside ${himself2} with rage.When ${he2} is brought to be modified in the remote surgery, ${he2} breaks free and attempts to fight ${his2} way out of your penthouse.${his2} attempt at freedom is futile, however, and ${he2} is soon overwhelmed by your guards and dragged back to the remote surgery.It doesn't take long for the valiant prince to become a new dickgirl, though ${his2} submission to life as a slave is another question entirely.`); prince.origin = `$He was the crown prince of a royal kingdom, till $his family was overthrown and $he was acquired by ${V.SF.Lower}.`; V.arcologies[0].prosperity -= 15; - repX(-18000, "event", slave); - - slave = prince; + repX(-18000, "event", prince); + text.append(App.UI.newSlaveIntro(prince)); - text.append(App.UI.newSlaveIntro(slave)) - - return jQuery(result).empty().append(text); + return text; }, `You will be despised for this action, and trade will be greatly damaged.` - ) : new App.Events.Result(), //You lack the necessary funds to enslave a crown prince. + ) : new App.Events.Result(), // You lack the necessary funds to enslave a crown prince. (V.seeDicks > 0 && V.cash >= 100000 && V.rep >= 10000) ? new App.Events.Result( `Leverage your substantial reputation and a huge sum of credits to aid the new arcology in exchange for both the prince and princess`, @@ -145,23 +129,21 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { App.UI.DOM.appendNewElement("p", text, `Eventually they arrive in your penthouse, faces flushed with embarrassment of their compromising position.The former prince is beside ${himself2} with rage, but seems to be holding ${himself2} back for ${his2} little V.sister's sake, while ${he} struggles to maintain a façade of poise and grace. The slightest trembling of ${his} balled up fists, the minute tremors that mar ${his} immaculate posture, ${his} inability to meet your eyes with ${his} own — all signs that ${he} is still a scared ${girl} despite all ${his} royal trappings. Nonetheless, though the princess's court training is unlikely to be very beneficial to ${him} in ${his} new life in the penthouse, it does stand in stark contrast to ${his} more common slave peers.However, the prince's submission to life as a slave is another question entirely.`); prince.origin = `$He was the crown prince of a royal kingdom, till $his family was overthrown and $he was acquired by ${V.SF.Lower}.`; /* princess */ - princess.origin = "${He} was a princess of a royal kingdom, till ${his} family was overthrown and ${he} was sold to you in exchange for aid."; setMissingParents(princess); cashX(-60000, "slaveTransfer", princess); repX(-6000, "event", princess); newSlave(princess); // skip New Slave Intro /* prince */ - prince.origin = "${He} was the crown prince of a royal kingdom, till ${his} family was overthrown and ${he} was sold to you in exchange for aid."; prince.mother = princess.mother; prince.father = princess.father; cashX(-40000, "slaveTransfer", prince); repX(-4000, "event", prince); - newSlave(prince); //skip New Slave Intro + newSlave(prince); // skip New Slave Intro - return jQuery(result).empty().append(text); + return text; }, `You will need to utilize a sizable portion of your reputation and ${cashFormat(100000)} to enslave them.` - ) : new App.Events.Result(), //You lack the necessary funds and reputation to enslave both the crown prince and princess. + ) : new App.Events.Result(), // You lack the necessary funds and reputation to enslave both the crown prince and princess. (V.seeDicks > 0 && V.cash >= 100000 && V.rep >= 10000) ? new App.Events.Result( `Dispatch ${V.SF.Lower} on a night time raid to acquire both the prince and princess.`, @@ -172,18 +154,17 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { prince.origin = `$He was the crown prince of a royal kingdom, till $his family was overthrown and $he was acquired by ${V.SF.Lower}.`; V.arcologies[0].prosperity -= 15; /* princess */ - princess.origin = "$He was a princess of a royal kingdom, till $his family was overthrown and $he was sold to you in exchange for aid."; setMissingParents(princess); repX(-10000, "event", princess); newSlave(princess); // skip New Slave Intro /* prince */ - prince.origin = "$He was the crown prince of a royal kingdom, till ${his} family was overthrown and ${he} was sold to you in exchange for aid."; + prince.mother = princess.mother; prince.father = princess.father; repX(-8000, "event", prince); - newSlave(prince); //skip New Slave Intro + newSlave(prince); // skip New Slave Intro - return jQuery(result).empty().append(text); + return text; }, `You will be despised for this action, and trade will be greatly damaged.` ) : new App.Events.Result(), @@ -195,13 +176,13 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { App.UI.DOM.appendNewElement("p", text, `You take a tablet and peruse the various court ladies on offer by the fledgling arcology.You single out a few interesting individuals for purchase that might suit your tastes, but the slapdash descriptions provided for each slave by the revolutionaries make it likely that any similarities to your aesthetic leanings will be coincidental.Once you are satisfied with your selection, you electronically transfer the credits to the new arcology and soon receive a receipt for your donation and an estimated delivery schedule.`); App.UI.DOM.appendNewElement("p", text, `When the ladies arrive at your penthouse, they seem almost relieved at the opulence of their new surroundings.Though they still retain much of their aristocratic arrogance, they each submit to biometric scanning with relative obedience.It seems likely that their obedience is borne out of a delusional rationalization that enslavement by one wealthy master is better than enslavement by the unwashed masses they once lorded over.`); for (let i = 0; i < 3; i++) { - generateOneCourtLady() //TODO + generateOneCourtLady(); // TODO } - return jQuery(result).empty().append(text); + return text; }, `It will cost about ${cashFormat(25000)} to enslave them.` - ) : new App.Events.Result(), //You lack the necessary funds to enslave a handful of court ladies.// + ) : new App.Events.Result(), // You lack the necessary funds to enslave a handful of court ladies.// (V.cash >= 25000) ? new App.Events.Result( `Dispatch ${V.SF.Lower} on a night time raid to acquire a handful of court ladies.`, @@ -215,7 +196,7 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { } V.arcologies[0].prosperity -= 10; - return jQuery(result).empty().append(text); + return text; }, `You will disliked for this action and trade will be damaged.` ) : new App.Events.Result(), @@ -231,16 +212,15 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { queen.visualAge = queen.actualAge; queen.physicalAge = queen.actualAge; queen.ovaryAge = queen.actualAge; - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was sold to you in exchange for credits."; + cashX(-15000, "slaveTransfer", queen); - slave = queen; - //<<includeDOM App.UI.newSlaveIntro(slave)>> + // <<includeDOM App.UI.newSlaveIntro(slave)>> - return jQuery(result).empty().append(text); + return text; }, `It will cost about ${cashFormat(15000)} to enslave${him3}.` - ) : new App.Events.Result(),//<br>//You lack the necessary funds to enslave a Queen.// + ) : new App.Events.Result(), // <br>//You lack the necessary funds to enslave a Queen.// (V.SF.Toggle && V.SF.Active >= 1) ? new App.Events.Result( `Transfer a modest quantity of credits for the Queen ${himself3}`, @@ -253,13 +233,11 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { queen.visualAge = queen.actualAge; queen.physicalAge = queen.actualAge; queen.ovaryAge = queen.actualAge; - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was sold to you in exchange for credits."; - repX(-12000, "event", queen); - slave = queen; - //<<includeDOM App.UI.newSlaveIntro(slave)>> + repX(-12000, "event", queen); + // <<includeDOM App.UI.newSlaveIntro(queen)>> - return jQuery(result).empty().append(text); + return text; }, `You will be despised for this action, and trade will be greatly damaged..` ) : new App.Events.Result(), @@ -270,24 +248,22 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { const text = new DocumentFragment(); App.UI.DOM.appendNewElement("p", text, `You take a tablet and transmit a communication request to the new arcology owner with your intent.Once his shock wears off, he readily accepts with little need for negotiation.Soon, a flight of VTOLs land in the new arcology laden with goods.When they take off again they have the princess and the Queen, who is resigned to ${his3} fate, clad in chains then bound face to face in a forced embrace.`); App.UI.DOM.appendNewElement("p", text, `Eventually they both arrive in your penthouse.The princess is flushed with embarrassment in ${his} compromising position, struggling to maintain a façade of poise and grace.The slightest trembling of ${his} balled up fists, the minute tremors that mar ${his} immaculate posture, ${his} inability to meet your eyes with ${his} own — all signs that ${he} is still a scared ${girl} despite all ${his} royal trappings.Nonetheless, though the princess's court training is unlikely to be very beneficial to ${him} in ${his} new life in the penthouse, it does stand in stark contrast to ${his} more common slave peers. The Queen, on the other hand, seems almost relieved and basks in the opulence of ${his3} new surroundings. Yet, it seems likely that ${his3} relief has more to do with saving ${him3} from a lifetime of gang rape at the mercy of ${his3} former subjects, than it does the familiar luxury. he3 submits to biometric scanning obediently and without ${(V.seePreg !== 0) ? `fuss, during which you discover to ${his3} surprise that he3 is pregnant.Since he3 hasn't begun to show yet, it's unclear whether the child is the former King's or the new arcology owner's.You don't have the means to discern the father of the child, but you notice he3 cradles ${his3} ever so slightly rounded stomach protectively nonetheless.` : `fuss.`}`); - princess.origin = "${He} was a princess of a royal kingdom, till ${his} family was overthrown and ${he} was sold for credits."; princess.mother = queen.ID; setMissingParents(princess); cashX(-400000, "slaveTransfer", princess); newSlave(princess); r.push(` /* skip New Slave Intro */`); - /*Queen*/ - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was sold for credits."; + /* Queen*/ queen.mother = 0; queen.father = 0; cashX(-100000, "slaveTransfer", queen); newSlave(queen); r.push(` /* skip New Slave Intro */`); - return jQuery(result).empty().append(text); + return text; }, `It will cost about ${cashFormat(500000)} to enslave both the princess and Queen.` - ) : new App.Events.Result(),//You lack the necessary funds and reputation to enslave both the Queen and princess.// + ) : new App.Events.Result(), // You lack the necessary funds and reputation to enslave both the Queen and princess.// (V.SF.Toggle && V.SF.Active >= 1) ? new App.Events.Result( `Dispatch V.SF.Lower on a night time raid to acquire both the princess and Queen.`, @@ -297,24 +273,22 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { App.UI.DOM.appendNewElement("p", text, `Eventually they both arrive in your penthouse.The princess is flushed with embarrassment in ${his} compromising position, struggling to maintain a façade of poise and grace.The slightest trembling of ${his} balled up fists, the minute tremors that mar ${his} immaculate posture, ${his} inability to meet your eyes with ${his} own — all signs that ${he} is still a scared ${girl} despite all ${his} royal trappings.Nonetheless, though the princess's court training is unlikely to be very beneficial to ${him} in ${his} new life in the penthouse, it does stand in stark contrast to ${his} more common slave peers. The Queen, on the other hand, seems almost relieved and basks in the opulence of ${his3} new surroundings. Yet, it seems likely that ${his3} relief has more to do with saving ${him3} from a lifetime of gang rape at the mercy of ${his3} former subjects, than it does the familiar luxury. he3 submits to biometric scanning obediently and without ${(V.seePreg !== 0) ? `fuss, during which you discover to ${his3} surprise that he3 is pregnant.Since he3 hasn't begun to show yet, it's unclear whether the child is the former King's or the new arcology owner's.You don't have the means to discern the father of the child, but you notice he3 cradles ${his3} ever so slightly rounded stomach protectively nonetheless.` : `fuss.`}`); V.arcologies[0].prosperity -= 13; /* princess */ - princess.origin = "${He} was a princess of a royal kingdom, till ${his} family was overthrown and ${he} was sold for credits."; princess.mother = queen.ID; setMissingParents(princess); newSlave(princess); r.push(` /* skip New Slave Intro */`); repX(-10000, "event", princess); - /*Queen*/ - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was sold for credits."; + /* Queen*/ queen.mother = 0; queen.father = 0; newSlave(queen); r.push(` /* skip New Slave Intro */`); repX(-3000, "event", queen); - return jQuery(result).empty().append(text); + return text; }, `You will be despised for this action, and trade will be greatly damaged.` - ) : new App.Events.Result(),//You lack the necessary funds and reputation to enslave both the Queen and princess.// + ) : new App.Events.Result(), // You lack the necessary funds and reputation to enslave both the Queen and princess.// (V.cash >= 500000) ? new App.Events.Result( `Offer a generous amount of cash in exchange for both the Queen and ${his3} court ladies.`, @@ -322,17 +296,15 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { const text = new DocumentFragment(); App.UI.DOM.appendNewElement("p", text, `You take a tablet and transmit a communication request to the new arcology owner with your intent.Once his shock wears off, he readily accepts with little need for negotiation.Soon, a flight of VTOLs land in the new arcology laden with goods.When they take off again they have the Queen, who is resigned to ${his3} fate, and a gaggle of terrified court ladies chained together.`); App.UI.DOM.appendNewElement("p", text, `Eventually they all arrive in your penthouse.The Queen seems almost relieved and basks in the opulence of ${his3} new surroundings.Yet, it seems likely that ${his3} relief has more to do with saving ${him3} from a lifetime of gang rape at the mercy of ${his3} former subjects, than it does the familiar luxury.he3 submits to biometric scanning obediently and without ${(V.seePreg !== 0) ? `fuss, during which you discover to ${his3} surprise that he3 is pregnant.Since he3 hasn't begun to show yet, it's unclear whether the child is the former King's or the new arcology owner's.You don't have the means to discern the father of the child, but you notice he3 cradles ${his3} ever so slightly rounded stomach protectively nonetheless.` : `fuss.`} Meanwhile, the ladies seem comforted by the opulence of their new surroundings.Though they still retain much of their aristocratic arrogance, they each submit to biometric scanning with relative obedience.It seems likely that their obedience is borne out of a delusional rationalization that enslavement by one wealthy master is better than enslavement by the unwashed masses they once lorded over.`); - /*Queen*/ - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was sold for credits."; + /* Queen*/ setMissingParents(queen); - newSlave(queen); - r.push(` /* skip New Slave Intro */`); + newSlave(queen);// /* skip New Slave Intro cashX(-200000, "slaveTransfer", queen); - return jQuery(result).empty().append(text); + return text; }, `It will cost about ${cashFormat(500000)} to enslave the Queen and${his3} court ladies.` - ) : new App.Events.Result(),//You lack the necessary funds to enslave the Queen and ${his3} ladies. + ) : new App.Events.Result(), // You lack the necessary funds to enslave the Queen and ${his3} ladies. (V.SF.Toggle && V.SF.Active >= 1) ? new App.Events.Result( `Dispatch V.SF.Lower on a night time raid to acquire the Queen and ${his3} court ladies.`, @@ -341,17 +313,15 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { App.UI.DOM.appendNewElement("p", text, `Seizing a tablet, you quickly send a message to The Colonel.After dark, a flight of VTOLs land in the new arcology laden with troops.When they take off again they have the Queen, who is resigned to ${his3} fate, and a gaggle of terrified court ladies chained together.`); App.UI.DOM.appendNewElement("p", text, `Eventually they all arrive in your penthouse.The Queen seems almost relieved and basks in the opulence of ${his3} new surroundings.Yet, it seems likely that ${his3} relief has more to do with saving ${him3} from a lifetime of gang rape at the mercy of ${his3} former subjects, than it does the familiar luxury.he3 submits to biometric scanning obediently and without ${(V.seePreg !== 0) ? `fuss, during which you discover to ${his3} surprise that he3 is pregnant.Since he3 hasn't begun to show yet, it's unclear whether the child is the former King's or the new arcology owner's.You don't have the means to discern the father of the child, but you notice he3 cradles ${his3} ever so slightly rounded stomach protectively nonetheless.` : `fuss.`} Meanwhile, the ladies seem comforted by the opulence of their new surroundings.Though they still retain much of their aristocratic arrogance, they each submit to biometric scanning with relative obedience.It seems likely that their obedience is borne out of a delusional rationalization that enslavement by one wealthy master is better than enslavement by the unwashed masses they once lorded over.`); V.arcologies[0].prosperity -= 13; - /*Queen*/ - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was acquired by " + V.SF.Lower + "."; + /* Queen*/ setMissingParents(queen); - newSlave(queen); - r.push(` /* skip New Slave Intro */`); + newSlave(queen); /* skip New Slave Intro */ repX(-4000, "event", queen); - return jQuery(result).empty().append(text); + return text; }, `You will be despised for this action, and trade will be greatly damaged.` - ) : new App.Events.Result(),//You lack the necessary funds to enslave the Queen and ${his3} ladies. + ) : new App.Events.Result(), // You lack the necessary funds to enslave the Queen and ${his3} ladies. (V.limitFamilies !== 1 && V.cash >= 2500000) ? new App.Events.Result( `Send an unheard amount of credits and goods to retrieve the entire court.`, @@ -372,13 +342,13 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { r.push(`The princess struggles to maintain a façade of poise and grace.`); } r.push(`The slightest trembling of ${his} balled up fists, the minute tremors that mar ${his} immaculate posture, ${his} inability to meet your eyes with ${his} own — all signs that ${he} is still a scared ${girl} despite all ${his} royal trappings.Nonetheless, though the princess's court training is unlikely to be very beneficial to ${him} in ${his} new life in the penthouse, it does stand in stark contrast to ${his} more common slave peers.`); - if V.seeDicks > 0 { + if (V.seeDicks > 0) { r.push(`However, the prince's submission to life as a slave is another question entirely. The Queen, on the other hand,`); } else { r.push(`The Queen`); } r.push(`seems almost relieved and basks in the opulence of ${his3} new surroundings.Yet, it seems likely that ${his3} relief has more to do with saving ${him3} from a lifetime of gang rape at the mercy of ${his3} former subjects, than it does the familiar luxury.he3 submits to biometric scanning obediently and without`); - if V.seePreg !== 0 { + if (V.seePreg !== 0) { r.push(`fuss, during which you discover to ${his3} surprise that he3 is pregnant.Since he3 hasn't begun to show yet, it's unclear whether the child is the former King's or the new arcology owner's.You don't have the means to discern the father of the child, but you notice he3 cradles ${his3} ever so slightly rounded stomach protectively nonetheless.`); } else { r.push(`fuss.`); @@ -386,33 +356,28 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { r.push(`Lastly, the ladies seem comforted by the opulence of their new surroundings.Though they still retain much of their aristocratic arrogance, they each submit to biometric scanning with relative obedience.It seems likely that their obedience is borne out of a delusional rationalization that enslavement by one wealthy master is better than enslavement by the unwashed masses they once lorded over.`); App.Events.addParagraph(text, r); /* princess */ - princess.origin = "${He} was a princess of a royal kingdom, till ${his} family was overthrown and ${he} was sold for credits."; princess.mother = queen.ID; setMissingParents(princess); newSlave(princess); r.push(` /* skip New Slave Intro */`); cashX(-1100000, "slaveTransfer", princess); /* prince */ - if V.seeDicks > 0 { - prince.origin = "${He} was the crown prince of a royal kingdom, till ${his} family was overthrown and ${he} was sold for credits."; + if (V.seeDicks > 0) { prince.mother = princess.mother; prince.father = princess.father; - newSlave(prince); - r.push(` /* skip New Slave Intro */`); + newSlave(prince); // skip New Slave Intro cashX(-750000, "slaveTransfer", prince); } - /*Queen*/ - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was sold for credits."; + /* Queen*/ setMissingParents(queen); - newSlave(queen); - r.push(` /* skip New Slave Intro */`); + newSlave(queen); /* skip New Slave Intro */ cashX(-250000, "slaveTransfer", queen); - //todo: ladies + // todo: ladies - return jQuery(result).empty().append(text); + return text; }, `It will cost about ${cashFormat(2500000)} to enslave the entire court.` - ) : new App.Events.Result(),//You lack the necessary funds to enslave the entire court.// + ) : new App.Events.Result(), // You lack the necessary funds to enslave the entire court.// (V.SF.Toggle && V.SF.Active >= 1) ? new App.Events.Result( `Dispatch V.SF.Lower on a night time raid to take everything of value.`, @@ -420,7 +385,7 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { const text = new DocumentFragment(); const loot = random(10, 300) * 100; App.UI.DOM.appendNewElement("p", text, `Seizing a tablet, you quickly send a message to The Colonel.After dark, a flight of VTOLs land in the new arcology laden with troops.When they take off again they have the`); - const r = []; + let r = []; r.push(`Eventually they all arrive in your penthouse.The`); if (V.seeDicks > 0) { r.push(`prince and princess`); @@ -452,40 +417,33 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { App.Events.addParagraph(text, r); V.arcologies[0].prosperity = 2; const repShares = Math.trunc(V.rep / -15); - /*this event is supposed to end in reputation at 0. In order to slice up that pie, we find shares of "everything" here and give them out later, before finally setting leftovers to 0. 3 ladies at one share each, +3 for prince, +4 for queen, +5 for princess is 15 shares.*/ + /* this event is supposed to end in reputation at 0. In order to slice up that pie, we find shares of "everything" here and give them out later, before finally setting leftovers to 0. 3 ladies at one share each, +3 for prince, +4 for queen, +5 for princess is 15 shares.*/ /* princess */ - princess.origin = "${He} was a princess of a royal kingdom, till ${his} family was overthrown and ${he} was sold for credits."; princess.mother = queen.ID; setMissingParents(princess); - newSlave(princess); - r.push(` /* skip New Slave Intro */`); + newSlave(princess);// skip New Slave Intro cashX(-1100000, "slaveTransfer", princess); /* prince */ if (V.seeDicks > 0) { - prince.origin = "${He} was the crown prince of a royal kingdom, till ${his} family was overthrown and ${he} was sold for credits."; prince.mother = princess.mother; prince.father = princess.father; newSlave(prince); r.push(` /* skip New Slave Intro */`); cashX(-750000, "slaveTransfer", prince); } - /*Queen*/ - queen.origin = "${He} was the Queen of a royal kingdom, till ${his} husband was overthrown and ${he} was sold for credits."; + /* Queen*/ setMissingParents(queen); - newSlave(queen); - r.push(` /* skip New Slave Intro */`); + newSlave(queen); /* skip New Slave Intro */ cashX(-250000, "slaveTransfer", queen); - //todo: ladies + // todo: ladies repX((4 * repShares), "event", slave); - repX(0 - V.rep, "event"); - r.push(` /*Round off any remaining rep due to the trunc on shares*/`); + repX(0 - V.rep, "event"); /* Round off any remaining rep due to the trunc on shares*/ - return jQuery(result).empty().append(text); + return text; }, `You will be loathed for this action and trade will be crippled.` - ) : new App.Events.Result(),//You lack the necessary funds to enslave the entire court.// - ], - `result-${regen}`); + ) : new App.Events.Result(), // You lack the necessary funds to enslave the entire court.// + ]); return el; function generateTemplate() { let slave; @@ -544,9 +502,11 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { } else if (nationality === "Thai") { race = "asian"; } - slave = GenerateNewSlave("XX", { minAge: 16, maxAge: 19, disableDisability: 1, nationality: nationality, race: race }); + slave = GenerateNewSlave("XX", { + minAge: 16, maxAge: 19, disableDisability: 1, nationality: nationality, race: race + }); } else { - slave = GenerateNewSlave("XX", { minAge: 16, maxAge: 19, disableDisability: 1 }); + slave = GenerateNewSlave("XX", {minAge: 16, maxAge: 19, disableDisability: 1}); } if (V.realRoyalties === 1) { if (slave.nationality === "Japanese") { @@ -608,6 +568,7 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { } function generatePrincess(slave) { slave.career = "a princess"; + slave.origin = "$He was a princess of a royal kingdom, till $his family was overthrown and $he was sold to you in exchange for aid."; slave.prestige = 2; slave.prestigeDesc = "$He was the princess of an ancient kingdom."; slave.devotion = random(-80, -60); @@ -650,15 +611,17 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { slave.ovaryAge = slave.actualAge; slave.genes = "XY"; if (V.realRoyalties === 1) { - slave.birthName = generateName(slave.nationality, slave.race, "XY"); + slave.birthName = generateName(slave.nationality, slave.race, true); slave.slaveName = slave.birthName; } else { nationalityToName(slave); } - slave.birthSurname = princess.birthSurname, slave.slaveSurname = princess.birthSurname; + slave.birthSurname = princess.birthSurname; + slave.slaveSurname = princess.birthSurname; slave.career = "a prince"; + slave.origin = "$He was the crown prince of a royal kingdom, till $his family was overthrown and $he was sold to you in exchange for aid."; slave.prestige = 2; - slave.prestigeDesc = "${He} was the crown prince of an ancient kingdom."; + slave.prestigeDesc = "$He was the crown prince of an ancient kingdom."; slave.devotion = random(-80, -60); slave.trust = random(-50, -60); slave.boobs = 150; @@ -693,12 +656,9 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { slave.canRecruit = 0; setHealth(slave, jsRandom(30, 60), 0, 0, 0, 0); slave.behavioralFlaw = either("arrogant", "bitchy"); - prince = clone(slave); - //<<setLocalPronouns prince 2>> return slave; } function generateQueen(slave) { - /*Queen*/ slave.ID = generateSlaveID(); slave.actualAge = random(V.fertilityAge + slave.actualAge, (V.pedo_mode === 1 ? 24 : 43)); slave.visualAge = slave.actualAge; @@ -711,8 +671,10 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { } else { nationalityToName(slave); } - slave.birthSurname = princess.birthSurname, slave.slaveSurname = princess.birthSurname; + slave.birthSurname = princess.birthSurname; + slave.slaveSurname = princess.birthSurname; slave.career = "a Queen"; + slave.origin = "$He was the Queen of a royal kingdom, till $his husband was overthrown and $he was sold to you in exchange for credits."; slave.prestige = 2; slave.prestigeDesc = "${He} was the Queen of an ancient kingdom."; slave.face = random(25, 100); @@ -753,7 +715,9 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { return slave; } function generateOneCourtLady() { - const slave = GenerateNewSlave("XX", { minAge: 21, maxAge: V.retirementAge - 2, disableDisability: 1, nationality: princess.nationality }); + const slave = GenerateNewSlave("XX", { + minAge: 21, maxAge: V.retirementAge - 2, disableDisability: 1, nationality: princess.nationality + }); slave.origin = "${He} was a member of the court in an ancient kingdom, till it was overthrown and ${he} was sold to you in exchange for credits."; slave.career = "a lady courtier"; slave.prestige = 1; @@ -786,4 +750,4 @@ App.Events.RERoyalBlood = class RERoyalBlood extends App.Events.BaseEvent { return slave; } } -}; \ No newline at end of file +};