From eeb9ad1730fd9308308aee38cc3236d87ecb55c9 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 29 Nov 2020 20:27:14 -0500 Subject: [PATCH] finish js --- src/events/intro/pcAppearance.js | 272 ++++++++++++++++++++++++++++++- 1 file changed, 271 insertions(+), 1 deletion(-) diff --git a/src/events/intro/pcAppearance.js b/src/events/intro/pcAppearance.js index 430f85c3d80..cf09d39b578 100644 --- a/src/events/intro/pcAppearance.js +++ b/src/events/intro/pcAppearance.js @@ -102,7 +102,7 @@ App.UI.Player.design = function() { options.addOption("Physical Age", "physicalAge", V.PC).showTextBox(); options.addOption("Visual Age", "visualAge", V.PC).showTextBox(); options.addOption("Ovary Age", "ovaryAge", V.PC).showTextBox(); - options.addOption("Age Implant", "ageImplant", V.PC).showTextBox().addComment("0: no surgery, 1: age altering surgery"); + options.addOption("Age Implant", "ageImplant", V.PC).addValue("Age altering surgery", 1).on().addValue("No surgery", 0).off(); } else { options.addOption("You are", "actualAge", V.PC).showTextBox() .addRange(25, 35, "<", "Surprisingly young").addRange(40, 50, "<", "Entering middle age") @@ -574,6 +574,120 @@ App.UI.Player.design = function() { App.Events.addNode(el, r, "p"); } + + if (V.cheatMode) { + // Skills + App.UI.DOM.appendNewElement("h2", el, "Skills"); + options = new App.UI.OptionsGroup(); + options.addOption(`Trading: ${tradingDescription()}`, "trading", V.PC.skill).addValueList([ + ["Economics master", 100], + ["Economics expert", 90], + ["Skilled in economics", 70], + ["Amateur economist", 50], + ["Economics beginner", 30], + ["Basic trader", 0], + ["Haggler", -10], + ["Shopper", -30], + ["Weak saver", -50], + ["Money sieve", -70], + ["What's a trading?", -90], + ]).showTextBox(); + + options.addOption(`Warfare: ${warfareDescription()}`, "warfare", V.PC.skill).addValueList([ + ["Warfare master", 100], + ["Warfare expert", 90], + ["Skilled in warfare", 70], + ["Amateur combatant", 50], + ["Combat beginner", 30], + ["Basic fighter", 0], + ["Gun haver", -10], + ["Knife holder", -30], + ["Throat puncher", -50], + ["Groin kicker?", -70], + ["Most likely to be raped", -90] + ]).showTextBox(); + + options.addOption(`Slaving: ${slavingDescription()}`, "slaving", V.PC.skill).addValueList([ + ["Master slaver", 100], + ["Expert slaver", 90], + ["Skilled in slaving", 70], + ["Amateur slaver", 50], + ["Slaving beginner", 30], + ["Basic slaver", 0], + ["Can't make me a slave", -10], + ["Can read contracts", -30], + ["Careful now", -50], + ["Don't trust that guy", -70], + ["Potential slave", -90] + ]).showTextBox(); + + options.addOption(`Engineering: ${engineeringDescription()}`, "engineering", V.PC.skill).addValueList([ + ["Master engineer", 100], + ["Expert engineer", 90], + ["Skilled in engineering", 70], + ["Amateur engineer", 50], + ["Engineering beginner", 30], + ["Basic engineer", 0], + ["Gingerbread house", -10], + ["Knot tyer", -30], + ["You can use glue", -50], + ["You aren't handy", -70], + ["My hovercraft is full of eels", -90] + ]).showTextBox(); + + options.addOption(`Medicine: ${medicineDescription()}`, "medicine", V.PC.skill).addValueList([ + ["Master surgeon", 100], + ["Expert surgeon", 90], + ["Skilled in medicine", 70], + ["Amateur surgeon", 50], + ["Medical beginner", 30], + ["Basic medic", 0], + ["Can treat wounds", -10], + ["First-aid kit user", -30], + ["Band-aid applier", -50], + ["MEDIC!", -70], + ["Give me another beer", -90] + ]).showTextBox(); + + options.addOption(`Hacking: ${hackingDescription()}`, "hacking", V.PC.skill).addValueList([ + ["Master hacker", 100], + ["Expert hacker", 90], + ["Skilled hacker", 70], + ["Amateur hacker", 50], + ["Hacking beginner", 30], + ["Basic hacker", 0], + ["Mouse clicker", -10], + ["You can press Enter", -30], + [`Where's the "any" key?`, -50], + ["Main screen turn on?", -70], + ["Ooh, cool glowy thingy!", -90] + ]).showTextBox(); + + el.append(options.render()); + + // Family + App.UI.DOM.appendNewElement("h2", el, "Misc"); + options = new App.UI.OptionsGroup(); + options.addOption(`Your mother ID`, "mother", V.PC).showTextBox(); + options.addOption(`Your father ID`, "father", V.PC).showTextBox(); + el.append(options.render()); + + // Potential + App.UI.DOM.appendNewElement("h2", el, "Misc"); + options = new App.UI.OptionsGroup(); + options.addOption(`Sexual Energy`, "sexualEnergy", V.PC).showTextBox(); + options.addOption(`Cum Tap`, "cumTap", V.PC.skill).showTextBox(); + options.addOption(`Stored Cum`, "storedCum", V.PC.counter).showTextBox(); + options.addOption(`Fertility Drugs`, "fertDrugs", V.PC) + .addValue("Yes", 1).on() + .addValue("No", 0).off(); + options.addOption(`Forced Fertility Drugs`, "forcedFertDrugs", V.PC).showTextBox(); + options.addOption(`Stamina Pills`, "staminaPills", V.PC) + .addValue("Yes", 1).on() + .addValue("No", 0).off(); + el.append(options.render()); + } + return el; function noChange() { @@ -602,4 +716,160 @@ App.UI.Player.design = function() { "Intro Summary" ); } + + function tradingDescription() { + if (V.PC.skill.trading >= 100) { + return `You are a master at economics and trading.`; + } else if (V.PC.skill.trading >= 80) { + return `You are an expert at economics and trading.`; + } else if (V.PC.skill.trading >= 60) { + return `You are skilled in economics and trading.`; + } else if (V.PC.skill.trading >= 40) { + return `You know some things about economics and trading.`; + } else if (V.PC.skill.trading >= 20) { + return `You are a beginner in economics.`; + } else if (V.PC.skill.trading >= 0) { + return `You know only the basics of trading.`; + } else if (V.PC.skill.trading >= -20) { + return `You know how to haggle a little.`; + } else if (V.PC.skill.trading >= -40) { + return `You know how to shop around.`; + } else if (V.PC.skill.trading >= -60) { + return `You know not to pay sticker price.`; + } else if (V.PC.skill.trading >= -80) { + return `People always give you discounts, but you never save any money.`; + } else { + return `They said it was a bear market, so where are the bears?`; + } + } + + function warfareDescription() { + if (V.PC.skill.warfare >= 100) { + return `You are a master of warfare.`; + } else if (V.PC.skill.warfare >= 80) { + return `You are an expert at tactics and strategy.`; + } else if (V.PC.skill.warfare >= 60) { + return `You are skilled in combat.`; + } else if (V.PC.skill.warfare >= 40) { + return `You know some things about combat.`; + } else if (V.PC.skill.warfare >= 20) { + return `You are a beginner in tactics and strategy.`; + } else if (V.PC.skill.warfare >= 0) { + return `You know only the basics of fighting.`; + } else if (V.PC.skill.warfare >= -20) { + return `You know how to hold a gun.`; + } else if (V.PC.skill.warfare >= -40) { + return `You know how to stab with a knife.`; + } else if (V.PC.skill.warfare >= -60) { + return `Go for the throat?`; + } else if (V.PC.skill.warfare >= -80) { + return `Just kick them in the balls, right?`; + } else { + return `People like you are usually the first raped in a war.`; + } + } + + function slavingDescription() { + if (V.PC.skill.slaving >= 100) { + return `You are a master slaver.`; + } else if (V.PC.skill.slaving >= 80) { + return `You are an expert at enslaving.`; + } else if (V.PC.skill.slaving >= 60) { + return `You are skilled in slaving.`; + } else if (V.PC.skill.slaving >= 40) { + return `You know some things about getting slaves.`; + } else if (V.PC.skill.slaving >= 20) { + return `You are a beginner in slaving.`; + } else if (V.PC.skill.slaving >= 0) { + return `You know only the basics of slaving.`; + } else if (V.PC.skill.slaving >= -20) { + return `You know how to avoid becoming a slave.`; + } else if (V.PC.skill.slaving >= -40) { + return `You know to read contracts before you sign them.`; + } else if (V.PC.skill.slaving >= -60) { + return `You know to be careful.`; + } else if (V.PC.skill.slaving >= -80) { + return `You know better than to trust anyone.`; + } else { + return `It would be easy to enslave you.`; + } + } + + function engineeringDescription() { + if (V.PC.skill.engineering >= 100) { + return `You are a master engineer.`; + } else if (V.PC.skill.engineering >= 80) { + return `You are an expert at engineering.`; + } else if (V.PC.skill.engineering >= 60) { + return `You are skilled in engineering.`; + } else if (V.PC.skill.engineering >= 40) { + return `You know some things about engineering.`; + } else if (V.PC.skill.engineering >= 20) { + return `You are a beginner in engineering.`; + } else if (V.PC.skill.engineering >= 0) { + return `You know only the basics of engineering.`; + } else if (V.PC.skill.engineering >= -20) { + return `You can build a gingerbread house that doesn't collapse.`; + } else if (V.PC.skill.engineering >= -40) { + return `You can tie a tight knot, does that count?`; + } else if (V.PC.skill.engineering >= -60) { + return `Glue is your friend; lots of it.`; + } else if (V.PC.skill.engineering >= -80) { + return `You know better than to even try to build something.`; + } else { + return `You can cook; that's sort of like building something, right?`; + } + } + + function medicineDescription() { + if (V.PC.skill.medicine >= 100) { + return `You are a master surgeon.`; + } else if (V.PC.skill.medicine >= 80) { + return `You are an expert at medicine and surgery.`; + } else if (V.PC.skill.medicine >= 60) { + return `You are skilled in surgery.`; + } else if (V.PC.skill.medicine >= 40) { + return `You know some things about medicine.`; + } else if (V.PC.skill.medicine >= 20) { + return `You are a beginner in medicine.`; + } else if (V.PC.skill.medicine >= 0) { + return `You know the basics of treating injuries.`; + } else if (V.PC.skill.medicine >= -20) { + return `You can stop a wound from getting infected.`; + } else if (V.PC.skill.medicine >= -40) { + return `Gauze is your friend. Just keep wrapping.`; + } else if (V.PC.skill.medicine >= -60) { + return `You know how to apply a band-aid.`; + } else if (V.PC.skill.medicine >= -80) { + return `Cure-alls are wonderful. Why aren't they sold in stores, though?`; + } else { + return `Alcohol makes pain go away, right?`; + } + } + + function hackingDescription() { + if (V.PC.skill.hacking >= 100) { + return `You are a master of hacking.`; + } else if (V.PC.skill.hacking >= 80) { + return `You are an expert at hacking.`; + } else if (V.PC.skill.hacking >= 60) { + return `You are skilled in hacking.`; + } else if (V.PC.skill.hacking >= 40) { + return `You know some things about hacking.`; + } else if (V.PC.skill.hacking >= 20) { + return `You are a beginner in hacking.`; + } else if (V.PC.skill.hacking >= 0) { + return `You know only the basics of hacking.`; + } else if (V.PC.skill.hacking >= -20) { + return `You know how to click a mouse.`; + } else if (V.PC.skill.hacking >= -40) { + return `Enter does something?`; + } else if (V.PC.skill.hacking >= -60) { + return `Where is the "any" key?`; + } else if (V.PC.skill.hacking >= -80) { + return `You can push the power button, good job.`; + } else { + return `This black box thingy is magical.`; + } + } }; -- GitLab