From cc3a4774e72a0c94877220bf44d041b49e0ffa73 Mon Sep 17 00:00:00 2001 From: Blank_Alt <12406-Blank_Alt@users.noreply.gitgud.io> Date: Mon, 22 Aug 2022 01:54:51 +0000 Subject: [PATCH] Enclyopedia slave modification dom --- devNotes/encyclopedia.js | 17 +------ .../enclyopediaSlaveModification.js | 49 +++++++++++++++++++ src/gui/Encyclopedia/encyclopedia.tw | 13 ----- .../Encyclopedia/encyclopediaBlackMarket.js | 2 - src/gui/Encyclopedia/encyclopediaBody.js | 6 +-- src/gui/Encyclopedia/encyclopediaGuide.js | 2 +- .../Encyclopedia/encyclopediaRelatedLinks.tw | 9 ---- src/pregmod/blackMarket.js | 5 +- 8 files changed, 55 insertions(+), 48 deletions(-) create mode 100644 src/gui/Encyclopedia/enclyopediaSlaveModification.js diff --git a/devNotes/encyclopedia.js b/devNotes/encyclopedia.js index 3402422697b..5cbf666a9d4 100644 --- a/devNotes/encyclopedia.js +++ b/devNotes/encyclopedia.js @@ -63,7 +63,7 @@ App.Encyclopedia.UI = function() { indentLine([link("Slave Relationships", "Relationships")]); indentLine([link("Slave Health", "Health")]); indentLine([link("Slave Pregnancy", "Pregnancy"), "/", link("Inflation")]); - indentLine([link("Slave Modification", "Slave Modification")]); + indentLine([link("Slave Modification")]); App.Events.addParagraph(text, []); indentLine(["Your Arcology"], "h3"); @@ -998,14 +998,6 @@ App.Encyclopedia.UI = function() { r.push("A specialized organic implant produced from the dispensary designed to be implanted into to a slave's natural breast tissue to maintain a slave's breast shape no matter how big her breasts may grow. An expensive and risky procedure proportional to the size of the breasts the mesh will be implanted into. Should health become an issue, the slave in surgery may undergo an emergency mastectomy. Furthermore, once implanted, the mesh cannot be safely removed from the breast. However, total breast removal will rid the slave of the implant; consider strongly when and if you want to implant the mesh before doing so. They are exceedingly difficult to identify once bound to the breast tissue, and combined with their natural shape, are often overlooked."); r.toNode("div"); break; - case "Nipple Conversion — Penetratable": - r.push("By taking extremely large nipples and inverting them into an adequately sized breast, it is possible to use an advanced surgical suite to create a cavity suitable for penetration. Early attempts found that the novelty of fucking a tit did not offset the discomfort of ramming one's dick into a solid object and as such, the surgery is only applicable to slaves with at least 500ccs of breast tissue per boob. Milk production is unhindered by the alterations, though non-machine milking is far more difficult without a nipple to grab and it is unlikely to be able to properly nourish a child. Arousal is also expressed differently, as the nipple cannot stiffen any longer; instead, engorgement causes the newly crafted passage to tighten, adding to the pleasure of using the unorthodox hole. While looseness is no issue, and the orifice quite capable of stretching around an intruding shaft, depth can become a problem; even the most average of slaveowners will find themselves bottoming out far sooner than they would like. Fortunately, this downside is offset by the novelty of the act and the capacity to push the nipple itself deeper into the slave's breast to better accommodate one's cock. In this case, bigger really is better."); - r.toNode("div"); - break; - case "Ejaculation Boosting Prostate Implant": - r.push("An additional prostate implant designed to hyperstimulate one's prostate and store the resulting fluid for release during ejaculation in a specialized reservoir. An easy way to tell if the precum soaked slave you are fucking is sporting this implant is the distinct swelling in her lower belly as she nears release. Due to the sheer amount of prostate fluid released, sperm per volume is greatly reduced, devastating profits of those looking to sell cum. Remember to keep your slaves well hydrated!"); - r.toNode("div"); - break; case "FCTV": r.push("Free Cities TV, or", highlight("FCYV"), "as it is more commonly called, is a very popular streaming video service. A venture started not long after the first Free Cities were founded, it took advantage of the new lack of regulatory oversight to create and host content that had long been banned in the old world. Under the guidance of 8HGG Inc., FCTV has developed into a popular mixed-mode service, with a variety of live streaming channels as well as a large selection of ready stream content ranging from hyper porn to contemporary broadcast series shows."); r.toNode("div"); @@ -1030,10 +1022,6 @@ App.Encyclopedia.UI = function() { r.push("Under normal circumstances, a slave will likely bear a single child from a pregnancy, but with a little extra help from a number of fertility boosting methods, that count can easily be pushed higher. While each fertility agent will only add a chance of an additional ovum, combining treatments will yield a cumulative effect, greatly enhancing the likelihood of multiples. One must exercise caution, however, as a slave's body can only support so many offspring without complications. Miscarriage, discarded embryos, and even slave death are all possible with excessive misuse of fertility agents."); r.toNode("p"); break; - case "Corrective Diet": - r.push("Using the upgraded kitchen to monitor a slave's caloric intake allows for diets to be tailored to slowly increase or decrease their weight without them realizing."); - r.toNode("div"); - break; case "Fertility Mix": r.push("A simple dietary blend designed to encourage ovulation. Fertile slaves will find themselves subconsciously lusting for loads of cum blasting into their pussies and, once they give in to temptation, will likely find their bellies swelling with twins or even triplets."); r.toNode("div"); @@ -1458,9 +1446,6 @@ App.Encyclopedia.UI = function() { case "Lolimod": App.UI.DOM.appendNewElement("div", text, "This mod adds a variety of underage content to the game. This content is purely optional. For more information on certain features, select a more particular entry:"); break; - case "Slave Modification": - App.UI.DOM.appendNewElement("div", text, "What would a slaveowner be without the ability to customize their slaves' bodies? The Free Cities offer a variety of ways to achieve this for an arcology owner. Choose a more particular entry below:"); - break; case "Inbreeding": App.UI.DOM.appendNewElement("div", text, "At the intersection of incest and pregnancy lies inbreeding. As seen in royal families throughout history, high levels of inbreeding can result in severe issues, often manifesting as facial deformities or reduced intellectual capacity."); App.Events.addParagraph(text, ["One metric for quantifying inbreeding is the coefficient of inbreeding (CoI), which is the probability that both copies of a person's genes come from the same common ancestor. For example, without any previous inbreeding a child from self-fertilization has a CoI of 0.5, a child of two full siblings has a CoI of 0.25, and a child of two first cousins has a CoI of 0.0625."]); diff --git a/src/gui/Encyclopedia/enclyopediaSlaveModification.js b/src/gui/Encyclopedia/enclyopediaSlaveModification.js new file mode 100644 index 00000000000..0a7507548a3 --- /dev/null +++ b/src/gui/Encyclopedia/enclyopediaSlaveModification.js @@ -0,0 +1,49 @@ +App.Encyclopedia.addArticle("Slave Modification", function() { + const t = new DocumentFragment(); + const r = new SpacedTextAccumulator(t); + r.push("What would a slaveowner be without the ability to customize their slaves' bodies?"); + r.push("The Free Cities offer a variety of ways to achieve this for an arcology owner."); + r.push("Choose a more particular entry below:"); + r.toNode("div"); + return t; +}, "slaveModification"); + +App.Encyclopedia.addArticle("Corrective Diet", function() { + return App.UI.DOM.makeElement("div", "Using the upgraded kitchen to monitor a slave's caloric intake allows for diets to be tailored to slowly increase or decrease their weight without them realizing."); +}, "slaveModification"); + +App.Encyclopedia.addArticle("Nipple Conversion — Penetratable", function() { + const t = new DocumentFragment(); + const r = new SpacedTextAccumulator(t); + r.push("By taking extremely large nipples and inverting them into an adequately sized breast, it is possible to use an advanced surgical suite to create a cavity suitable for penetration."); + r.push("Early attempts found that the novelty of fucking a tit did not offset the discomfort of ramming one's dick into a solid object and as such, the surgery is only applicable to slaves with at least 500ccs of breast tissue per boob."); + r.push("Milk production is unhindered by the alterations, though non-machine milking is far more difficult without a nipple to grab and it is unlikely to be able to properly nourish a child."); + r.push("Arousal is also expressed differently, as the nipple cannot stiffen any longer; instead, engorgement causes the newly crafted passage to tighten, adding to the pleasure of using the unorthodox hole."); + r.push("While looseness is no issue, and the orifice quite capable of stretching around an intruding shaft, depth can become a problem; even the most average of slaveowners will find themselves bottoming out far sooner than they would like."); + r.push("Fortunately, this downside is offset by the novelty of the act and the capacity to push the nipple itself deeper into the slave's breast to better accommodate one's cock."); + r.push("In this case, bigger really is better."); + r.toNode("div"); + return t; +}, "slaveModification"); + +App.Encyclopedia.addArticle("Ejaculation Boosting Prostate Implant", function() { + const t = new DocumentFragment(); + const r = new SpacedTextAccumulator(t); + r.push("An additional prostate implant designed to hyperstimulate one's prostate and store the resulting fluid for release during ejaculation in a specialized reservoir."); + r.push("An easy way to tell if the precum soaked slave you are fucking is sporting this implant is the distinct swelling in her lower belly as she nears release."); + r.push("Due to the sheer amount of prostate fluid released, sperm per volume is greatly reduced, devastating profits of those looking to sell cum."); + r.push("Remember to keep your slaves well hydrated!"); + r.toNode("div"); + return t; +}, "slaveModification"); + +App.Encyclopedia.addCategory("slaveModification", function() { + const links = []; + if (V.encyclopedia !== "Slave Modification") { + links.push(App.Encyclopedia.Dialog.linkDOM("Slave Modification")); + } + links.push(App.Encyclopedia.Dialog.linkDOM("Corrective Diet")); + links.push(App.Encyclopedia.Dialog.linkDOM("Nipple Conversion — Penetratable")); + links.push(App.Encyclopedia.Dialog.linkDOM("Ejaculation Boosting Prostate Implant")); + return App.UI.DOM.generateLinksStrip(links); +}); diff --git a/src/gui/Encyclopedia/encyclopedia.tw b/src/gui/Encyclopedia/encyclopedia.tw index 0734b30d576..0ac23615bc5 100644 --- a/src/gui/Encyclopedia/encyclopedia.tw +++ b/src/gui/Encyclopedia/encyclopedia.tw @@ -836,12 +836,6 @@ MODS <<case "Organic Mesh Breast Implant">> A specialized organic implant produced from the dispensary designed to be implanted into to a slave's natural breast tissue to maintain a slave's breast shape no matter how big her breasts may grow. An expensive and risky procedure proportional to the size of the breasts the mesh will be implanted into. Should health become an issue, the slave in surgery may undergo an emergency mastectomy. Furthermore, once implanted, the mesh cannot be safely removed from the breast. However, total breast removal will rid the slave of the implant; consider strongly when and if you want to implant the mesh before doing so. They are exceedingly difficult to identify once bound to the breast tissue, and combined with their natural shape, are often overlooked. -<<case "Nipple Conversion — Penetratable">> - By taking extremely large nipples and inverting them into an adequately sized breast, it is possible to use an advanced surgical suite to create a cavity suitable for penetration. Early attempts found that the novelty of fucking a tit did not offset the discomfort of ramming one's dick into a solid object and as such, the surgery is only applicable to slaves with at least 500ccs of breast tissue per boob. Milk production is unhindered by the alterations, though non-machine milking is far more difficult without a nipple to grab and it is unlikely to be able to properly nourish a child. Arousal is also expressed differently, as the nipple cannot stiffen any longer; instead, engorgement causes the newly crafted passage to tighten, adding to the pleasure of using the unorthodox hole. While looseness is no issue, and the orifice quite capable of stretching around an intruding shaft, depth can become a problem; even the most average of slaveowners will find themselves bottoming out far sooner than they would like. Fortunately, this downside is offset by the novelty of the act and the capacity to push the nipple itself deeper into the slave's breast to better accommodate one's cock. In this case, bigger really is better. - -<<case "Ejaculation Boosting Prostate Implant">> - An additional prostate implant designed to hyperstimulate one's prostate and store the resulting fluid for release during ejaculation in a specialized reservoir. An easy way to tell if the precum soaked slave you are fucking is sporting this implant is the distinct swelling in her lower belly as she nears release. Due to the sheer amount of prostate fluid released, sperm per volume is greatly reduced, devastating profits of those looking to sell cum. Remember to keep your slaves well hydrated! - <<case "FCTV">> Free Cities TV, or ''FCTV'' as it is more commonly called, is a very popular streaming video service. A venture started not long after the first Free Cities were founded, it took advantage of the new lack of regulatory oversight to create and host content that had long been banned in the old world. Under the guidance of 8HGG Inc., FCTV has developed into a popular mixed-mode service, with a variety of live streaming channels as well as a large selection of ready stream content ranging from hyper porn to contemporary broadcast series shows. @@ -863,9 +857,6 @@ MODS <br><br> Under normal circumstances, a slave will likely bear a single child from a pregnancy, but with a little extra help from a number of fertility boosting methods, that count can easily be pushed higher. While each fertility agent will only add a chance of an additional ovum, combining treatments will yield a cumulative effect, greatly enhancing the likelihood of multiples. One must exercise caution, however, as a slave's body can only support so many offspring without complications. Miscarriage, discarded embryos, and even slave death are all possible with excessive misuse of fertility agents. -<<case "Corrective Diet">> - Using the upgraded kitchen to monitor a slave's caloric intake allows for diets to be tailored to slowly increase or decrease their weight without them realizing. - <<case "Fertility Mix">> A simple dietary blend designed to encourage ovulation. Fertile slaves will find themselves subconsciously lusting for loads of cum blasting into their pussies and, once they give in to temptation, will likely find their bellies swelling with twins or even triplets. @@ -998,10 +989,6 @@ MODS <br> <br> -<<case "Slave Modification">> - What would a slaveowner be without the ability to customize their slaves' bodies? The Free Cities offer a variety of ways to achieve this for an arcology owner. Choose a more particular entry below: - <br> - <<case "Inbreeding">> At the intersection of incest and pregnancy lies inbreeding. As seen in royal families throughout history, high levels of inbreeding can result in severe issues, often manifesting as facial deformities or reduced intellectual capacity. diff --git a/src/gui/Encyclopedia/encyclopediaBlackMarket.js b/src/gui/Encyclopedia/encyclopediaBlackMarket.js index e3f800edd46..b2467f61455 100644 --- a/src/gui/Encyclopedia/encyclopediaBlackMarket.js +++ b/src/gui/Encyclopedia/encyclopediaBlackMarket.js @@ -49,7 +49,6 @@ App.Encyclopedia.addCategory("BlackMarket", function() { const r = []; r.push(App.Encyclopedia.Dialog.linkDOM("The Black Market")); r.push(App.Encyclopedia.Dialog.linkDOM("Contraband and Illegal Goods")); - /* Can be uncommented once converted to DOM. r.push(App.Encyclopedia.Dialog.linkDOM("Gender Radicalism Research")); r.push(App.Encyclopedia.Dialog.linkDOM("Slave Professionalism Research")); r.push(App.Encyclopedia.Dialog.linkDOM("Transformation Fetishism Research")); @@ -57,7 +56,6 @@ App.Encyclopedia.addCategory("BlackMarket", function() { r.push(App.Encyclopedia.Dialog.linkDOM("Slimness Enthusiast Research")); r.push(App.Encyclopedia.Dialog.linkDOM("Youth Preferentialism Research")); r.push(App.Encyclopedia.Dialog.linkDOM("Hedonistic Decadence Research")); - */ r.push(App.Encyclopedia.Dialog.linkDOM("Childhood Fertility Induced NCS")); return App.UI.DOM.generateLinksStrip(r); }); diff --git a/src/gui/Encyclopedia/encyclopediaBody.js b/src/gui/Encyclopedia/encyclopediaBody.js index 56759dde0f1..ac7c2f42412 100644 --- a/src/gui/Encyclopedia/encyclopediaBody.js +++ b/src/gui/Encyclopedia/encyclopediaBody.js @@ -431,7 +431,7 @@ App.Encyclopedia.addArticle("Hormones (XX)", function() { App.UI.DOM.appendNewElement("li", list, `normal XX hormones provide +1`); App.UI.DOM.appendNewElement("li", list, `heavy XX hormones provide +2`); App.UI.DOM.appendNewElement("li", list, App.UI.DOM.combineNodes( - pp.Encyclopedia.Dialog.linkDOM("ovaries"), + App.Encyclopedia.Dialog.linkDOM("Ovaries"), ` provide +1` )); App.UI.DOM.appendNewElement("li", list, App.UI.DOM.combineNodes( @@ -478,7 +478,7 @@ App.Encyclopedia.addArticle("Hormones (XY)", function() { App.UI.DOM.appendNewElement("li", list, `normal XY hormones provide -1`); App.UI.DOM.appendNewElement("li", list, `heavy XY hormones provide -2`); App.UI.DOM.appendNewElement("li", list, App.UI.DOM.combineNodes( - pp.Encyclopedia.Dialog.linkDOM("ovaries"), + App.Encyclopedia.Dialog.linkDOM("Ovaries"), ` provide +1` )); App.UI.DOM.appendNewElement("li", list, App.UI.DOM.combineNodes( @@ -519,7 +519,7 @@ App.Encyclopedia.addCategory("body", function() { links.push(App.Encyclopedia.Dialog.linkDOM("Lips")); links.push(App.Encyclopedia.Dialog.linkDOM("Musculature")); links.push(App.Encyclopedia.Dialog.linkDOM("Nipples")); - links.push(pp.Encyclopedia.Dialog.linkDOM("ovaries")); + links.push(App.Encyclopedia.Dialog.linkDOM("Ovaries")); links.push(App.Encyclopedia.Dialog.linkDOM("Pregnancy")); links.push(App.Encyclopedia.Dialog.linkDOM("Skin Distinctions")); links.push(App.Encyclopedia.Dialog.linkDOM("Teeth")); diff --git a/src/gui/Encyclopedia/encyclopediaGuide.js b/src/gui/Encyclopedia/encyclopediaGuide.js index cccdce4a749..bb79bec9005 100644 --- a/src/gui/Encyclopedia/encyclopediaGuide.js +++ b/src/gui/Encyclopedia/encyclopediaGuide.js @@ -28,7 +28,7 @@ App.Encyclopedia.addArticle("First Game Guide", function() { r.push("but save"); r.push(App.Encyclopedia.Dialog.linkDOM("money", "Money", "cash")); r.push(`by giving her flaws, an unknown fetish, and <span class='trust dec'>making her afraid of you.</span> (These are easy to fix.) You can customize the rest of her as you wish, but try to keep her under <span class='cash'>${cashFormat(5000)}.</span> Don't worry about skills, since with two of them you'll be able to rotate Head Girl duty so the other can learn skills. Commit her, base another slave off her, and commit that one too. Those are your`); - r.push(App.UI.DOM.combineNodes(App.Encyclopedia.Dialog.linkDOM("Head Girls"), ".")); + r.push(App.UI.DOM.combineNodes(App.Encyclopedia.Dialog.linkDOM("Head Girls", "Head Girl"), ".")); App.Events.addParagraph(f, r); r = []; diff --git a/src/gui/Encyclopedia/encyclopediaRelatedLinks.tw b/src/gui/Encyclopedia/encyclopediaRelatedLinks.tw index 1877d097c07..d38f1e337e6 100644 --- a/src/gui/Encyclopedia/encyclopediaRelatedLinks.tw +++ b/src/gui/Encyclopedia/encyclopediaRelatedLinks.tw @@ -152,15 +152,6 @@ INFLATION | <<= App.Encyclopedia.Dialog.linkSC("Cervix Micropump Filter", "Cervix Micropump Filter")>> | <<= App.Encyclopedia.Dialog.linkSC("Organic Mesh Breast Implant", "Organic Mesh Breast Implant")>> -/********** -SLAVE MODIFICATION -**********/ -<<case "Slave Modification">> - <<= App.Encyclopedia.Dialog.linkSC("Slave Modification", "Slave Modification")>> - | <<= App.Encyclopedia.Dialog.linkSC("Corrective Diet", "Corrective Diet")>> - | <<= App.Encyclopedia.Dialog.linkSC("Nipple Conversion — Penetratable", "Nipple Conversion — Penetratable")>> - | <<= App.Encyclopedia.Dialog.linkSC("Ejaculation Boosting Prostate Implant", "Ejaculation Boosting Prostate Implant")>> - /********** ARCOLOGY FACILITIES **********/ diff --git a/src/pregmod/blackMarket.js b/src/pregmod/blackMarket.js index a956270f4fe..78de45baa82 100644 --- a/src/pregmod/blackMarket.js +++ b/src/pregmod/blackMarket.js @@ -391,10 +391,7 @@ App.UI.blackMarket = function() { if ((V.minimumSlaveAge <= 15 && V.minimumSlaveAge > 8) || (V.cash < NCSCash)) { r.push( `He notices your interest and lets you read the information`, - App.UI.DOM.combineNodes( - App.Encyclopedia.Dialog.linkDOM("Childhood Fertility Induced NCS"), - "." - ) + App.UI.DOM.combineNodes(App.Encyclopedia.Dialog.linkDOM("Childhood Fertility Induced NCS"), ".") ); App.Events.addNode(node, r, "div"); if (V.minimumSlaveAge <= 15 && V.minimumSlaveAge > 8) { -- GitLab