mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-24 06:51:27 +01:00
Merged tutorial text changes
This commit is contained in:
commit
5a8b5c2dd1
116
Perk.js
Normal file
116
Perk.js
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
/* Perks
|
||||||
|
* Defines Perks that are unlocked when you gain enough reputation in a
|
||||||
|
* company or faction
|
||||||
|
*/
|
||||||
|
Perks = {
|
||||||
|
FreeCoffeeCompanyPerk: "Free Coffee",
|
||||||
|
FreeFoodCompanyPerk: "Free Food",
|
||||||
|
NetworkingCompanyPerk: "Networking",
|
||||||
|
PersonalTrainerCompanyPerk: "Personal Trainer",
|
||||||
|
KnowledgeBaseCompanyPerk: "Company Knowledge Base",
|
||||||
|
NootropicsCompanyPerk: "Company-provided Nootropics",
|
||||||
|
|
||||||
|
NetworkingFactionPerk: "Networking",
|
||||||
|
SupercomputerFactionPerk: "Remote Supercomputer Use",
|
||||||
|
VPNFactionPerk: "High-Speed VPN",
|
||||||
|
PrivateServerFactionPerk: "Private Faction Server",
|
||||||
|
InsiderKnowledgeFactionPerk: "Insider Knowledge",
|
||||||
|
}
|
||||||
|
|
||||||
|
function Perk(name, reqRep, info) {
|
||||||
|
this.name = name;
|
||||||
|
this.info = info;
|
||||||
|
this.requiredRep = reqRep;
|
||||||
|
|
||||||
|
//Company/faction specific multipliers
|
||||||
|
this.mult1 = 1;
|
||||||
|
this.mult2 = 1;
|
||||||
|
this.mult3 = 1;
|
||||||
|
|
||||||
|
/* Properties below set when a Perk is gained by the player */
|
||||||
|
this.applied = false;
|
||||||
|
|
||||||
|
this.companyPerk = false;
|
||||||
|
this.companyName = "";
|
||||||
|
|
||||||
|
this.factionPerk = false;
|
||||||
|
this.factionName = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
Perk.prototype.setCompany = function(companyName) {
|
||||||
|
if (this.factionPerk) {
|
||||||
|
console.log("ERR: Perk cannot be both faction and company perk");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.companyPerk = true;
|
||||||
|
this.companyName = companyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
Perk.prototype.setFaction = function(factionName) {
|
||||||
|
if (this.companyPerk) {
|
||||||
|
console.log("ERR: Perk cannot be both faction and company perk");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.factionPerk = true;
|
||||||
|
this.factionName = factionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
Perk.prototype.toJSON = function() {
|
||||||
|
return Generic_toJSON("Perk", this);
|
||||||
|
}
|
||||||
|
|
||||||
|
Perk.fromJSON = function(value) {
|
||||||
|
return Generic_fromJSON(Perk, value.data);
|
||||||
|
}
|
||||||
|
|
||||||
|
Reviver.constructors.Perk = Perk;
|
||||||
|
|
||||||
|
/* Company Perks */
|
||||||
|
//Free Coffee - Increased money and hacking exp gain
|
||||||
|
//Free Food - Increased combat stat gain
|
||||||
|
//Networking - Company Rep Gain Rate + , Charisma exp gain rate +
|
||||||
|
//Company Personal Trainer - Increase in combat stat gain rates
|
||||||
|
//Knowledge Base - Increase hacking skill by some percentage
|
||||||
|
//Nootropics - Increase hacking mult, and hacking exp gain mult
|
||||||
|
|
||||||
|
/* Faction Perks */
|
||||||
|
//Networking - Faction Rep Gain Rate + , Chariasma Exp Gain Rate +
|
||||||
|
//Remote Supercomputer - increase in hacking speed, chance, and money
|
||||||
|
//High Speed VPN - Hack chance increase
|
||||||
|
//Private Server - Gives you a server with a lot of RAM that you can use
|
||||||
|
//Insider Knowledge - Ppl in faction from other companies have insider information that lets you hack
|
||||||
|
// other servers easier. Increase in hack chance
|
||||||
|
|
||||||
|
applyPerk = function(perk) {
|
||||||
|
switch (perk.name) {
|
||||||
|
case Perks.FreeCoffeeCompanyPerk:
|
||||||
|
break;
|
||||||
|
case Perks.FreeFoodCompanyPerk:
|
||||||
|
break;
|
||||||
|
case Perks.NetworkingCompanyPerk:
|
||||||
|
break;
|
||||||
|
case Perks.PersonalTrainerCompanyPerk:
|
||||||
|
break;
|
||||||
|
case Perks.KnowledgeBaseCompanyPerk:
|
||||||
|
break;
|
||||||
|
case Perks.NootropicsCompanyPerk:
|
||||||
|
break;
|
||||||
|
case Perks.NetworkingFactionPerk:
|
||||||
|
break;
|
||||||
|
case Perks.SupercomputerFactionPerk:
|
||||||
|
break;
|
||||||
|
case Perks.VPNFactionPerk:
|
||||||
|
break;
|
||||||
|
case Perks.PrivateServerFactionPerk:
|
||||||
|
break;
|
||||||
|
case Perks.InsiderKnowledgeFactionPerk:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
console.log("WARNING: Unrecognized perk: " + perk.name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
losePerk = function(perk) {
|
||||||
|
|
||||||
|
}
|
@ -68,6 +68,7 @@ Tasks TODO:
|
|||||||
|
|
||||||
Create new menu page for purchased servers
|
Create new menu page for purchased servers
|
||||||
|
|
||||||
|
Gyms + Traveling
|
||||||
|
|
||||||
Update CONSTANTS.HelpText
|
Update CONSTANTS.HelpText
|
||||||
Account for Max possible int when gaining exp (it will overflow)
|
Account for Max possible int when gaining exp (it will overflow)
|
||||||
|
@ -48,8 +48,6 @@ AddToAugmentations = function(aug) {
|
|||||||
Augmentations[name] = aug;
|
Augmentations[name] = aug;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO Set descriptions for all
|
|
||||||
|
|
||||||
//TODO Something that decreases RAM usage of scripts
|
//TODO Something that decreases RAM usage of scripts
|
||||||
initAugmentations = function() {
|
initAugmentations = function() {
|
||||||
//Combat stat augmentations
|
//Combat stat augmentations
|
||||||
@ -486,6 +484,11 @@ initAugmentations = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
applyAugmentation = function(aug, faction) {
|
applyAugmentation = function(aug, faction) {
|
||||||
|
if (aug.owned) {
|
||||||
|
throw new Error("This Augmentation is already owned/applied...somethings wrong");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch(aug.name) {
|
switch(aug.name) {
|
||||||
//Combat stat augmentations
|
//Combat stat augmentations
|
||||||
case "Augmented Targeting I":
|
case "Augmented Targeting I":
|
||||||
|
@ -5,6 +5,7 @@ function Company() {
|
|||||||
this.companyName = "";
|
this.companyName = "";
|
||||||
this.info = "";
|
this.info = "";
|
||||||
this.companyPositions = []; //Names (only name, not object) of all company positions
|
this.companyPositions = []; //Names (only name, not object) of all company positions
|
||||||
|
this.perks = []; //Available Perks
|
||||||
this.salaryMultiplier = 1; //Multiplier for base salary
|
this.salaryMultiplier = 1; //Multiplier for base salary
|
||||||
this.expMultiplier = 1; //Multiplier for base exp gain
|
this.expMultiplier = 1; //Multiplier for base exp gain
|
||||||
|
|
||||||
@ -17,7 +18,6 @@ function Company() {
|
|||||||
this.isPlayerEmployed = false;
|
this.isPlayerEmployed = false;
|
||||||
this.playerPosition = ""; //Name (only name, not object) of the current position player holds
|
this.playerPosition = ""; //Name (only name, not object) of the current position player holds
|
||||||
this.playerReputation = 0; //"Reputation" within company, gain reputation by working for company
|
this.playerReputation = 0; //"Reputation" within company, gain reputation by working for company
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Company.prototype.init = function(name, salaryMult, expMult, jobStatReqOffset) {
|
Company.prototype.init = function(name, salaryMult, expMult, jobStatReqOffset) {
|
||||||
|
@ -6,7 +6,6 @@ CONSTANTS = {
|
|||||||
//How much reputation is needed to join a megacorporation's faction
|
//How much reputation is needed to join a megacorporation's faction
|
||||||
CorpFactionRepRequirement: 250000,
|
CorpFactionRepRequirement: 250000,
|
||||||
|
|
||||||
|
|
||||||
/* Script related things */
|
/* Script related things */
|
||||||
//Time (ms) it takes to run one operation in Netscript.
|
//Time (ms) it takes to run one operation in Netscript.
|
||||||
CodeInstructionRunTime: 1500,
|
CodeInstructionRunTime: 1500,
|
||||||
@ -17,14 +16,6 @@ CONSTANTS = {
|
|||||||
//Maximum number of log entries for a script
|
//Maximum number of log entries for a script
|
||||||
MaxLogCapacity: 20,
|
MaxLogCapacity: 20,
|
||||||
|
|
||||||
//Programs
|
|
||||||
NukeProgram: "NUKE.exe",
|
|
||||||
BruteSSHProgram: "BruteSSH.exe",
|
|
||||||
FTPCrackProgram: "FTPCrack.exe",
|
|
||||||
RelaySMTPProgram: "relaySMTP.exe",
|
|
||||||
HTTPWormProgram: "HTTPWorm.exe",
|
|
||||||
SQLInjectProgram: "SQLInject.exe",
|
|
||||||
|
|
||||||
//Text that is displayed when the 'help' command is ran in Terminal
|
//Text that is displayed when the 'help' command is ran in Terminal
|
||||||
HelpText: "analyze Get statistics and information about current machine <br>" +
|
HelpText: "analyze Get statistics and information about current machine <br>" +
|
||||||
"clear Clear all text on the terminal <br>" +
|
"clear Clear all text on the terminal <br>" +
|
||||||
@ -104,19 +95,54 @@ CONSTANTS = {
|
|||||||
"ps - Displays all scripts that are actively running on the current server<br>" +
|
"ps - Displays all scripts that are actively running on the current server<br>" +
|
||||||
"run [script] - Run a script <br>" +
|
"run [script] - Run a script <br>" +
|
||||||
"tail [script] - Displays a script's logs<br>" +
|
"tail [script] - Displays a script's logs<br>" +
|
||||||
"top - Displays all active scripts and their RAM usage <br><br>" +
|
"top - Displays all active scripts and their RAM usage <br><br>"
|
||||||
"The following is a brief overview of how to code in the Netscript language: ",
|
TutorialTravelingText:"There are SIX major cities in the world that you are able to travel to: <br> " +
|
||||||
TutorialTravelingText: "There are SIX major cities in the world that you are able to travel to: <br> " +
|
|
||||||
" Aevum<br>" +
|
" Aevum<br>" +
|
||||||
" Chongqing<br>" +
|
" Chongqing<br>",
|
||||||
"
|
TutorialJobsText: "Hacking is not the only way to gain money and experience! Located around the world are many " +
|
||||||
TutorialJobsText:
|
"different companies which you can work for. By working for a company you can earn money, " +
|
||||||
TutorialFactionsText:
|
"train your various labor skills, and unlock powerful passive perks. <br> " +
|
||||||
TutorialAugmentationsText:
|
"To apply for a job, visit the company you want to work for through the 'World' menu. The company " +
|
||||||
|
"page will have options that let you apply to positions in the company. There might be several different" +
|
||||||
|
"positions you can apply for, ranging from software engineer to business analyst to security officer. <br> " +
|
||||||
|
"When you apply for a job, you will get the offer if your stats are high enough. Your first position at " +
|
||||||
|
"a company will be an entry-level position such as 'intern'. Once you get the job, an button will appear on " +
|
||||||
|
"the company page that allows you to work for the company. Click this button to start working. <br>" +
|
||||||
|
"Working occurs in 8 hour shifts. Once you start working, you will begin earning money, experience, " +
|
||||||
|
"and reputation. The rate at which you money and experience depends on the company and your position. " +
|
||||||
|
"The amount of reputation you gain for your company is based on your job performance, which is affected by " +
|
||||||
|
"your stats. Different positions value different stats. When you are working, you are unable to perform any " +
|
||||||
|
"other actions such as using your terminal or visiting other locations (However, note that any scripts you have " +
|
||||||
|
"running on servers will continue to run as you work!). It is possible to cancel your work shift before the " +
|
||||||
|
"8 hours is up, but doing so will result in you gaining only half of all of the money, experience, and reputation " +
|
||||||
|
"that you had earned up to that point. <br>"
|
||||||
|
"As you continue to work at a company, you will gain more and more reputation at that company. When your stats " +
|
||||||
|
"and reputation are high enough, you can get a promotion. You can apply for a promotion on the company page, just like " +
|
||||||
|
"you applied for the job originally. Higher positions at a company provide better salaries and stat gains",
|
||||||
|
TutorialFactionsText: "Throughout the game you may receive invitations from factions. There are many different factions, and each faction " +
|
||||||
|
"has different criteria for determining its potential members. Joining a faction and furthering its cause is crucial " +
|
||||||
|
"to progressing in the game and unlocking endgame content. <br> " +
|
||||||
|
"It is possible to join multiple factions if you receive invitations from them. However, note that joining a faction " +
|
||||||
|
"may prevent you from joining other rival factions. <br> " +
|
||||||
|
"The 'Factions' link on the menu brings up a list of all factions that you have joined. " +
|
||||||
|
"You can select a Faction on this list to go to that Faction page. This page displays general " +
|
||||||
|
"information about the Faction and also lets you perform work for the faction. " +
|
||||||
|
"Working for a Faction is similar to working for a company except that you don't get paid a salary. " +
|
||||||
|
"You will only earn reputation in your Faction and train your stats. Also, cancelling work early " +
|
||||||
|
"when working for a Faction does not result in reduced experience/reputation earnings. <br>" +
|
||||||
|
"Earning reputation for a Faction unlocks powerful upgrades. These upgrades vary from faction to faction. ",
|
||||||
|
TutorialAugmentationsText: "Advances in science and medicine have lead to powerful new technologies that allow people to augment themselves " +
|
||||||
|
"beyond normal human capabilities. There are many different types of Augmentations, ranging from cybernetic to " +
|
||||||
|
"genetic to biological. Acquiring these Augmentations enhances the user's physical and mental faculties. <br>" +
|
||||||
|
"Because of how powerful these Augmentations are, the technology behind them is kept private and secret by the " +
|
||||||
|
"corporations and organizations that create them. Therefore, the only way for the player to obtain Augmentations is " +
|
||||||
|
"through Factions. After joining a Faction and earning enough reputation in it, you will be able to purchase " +
|
||||||
|
"its Augmentations. Different Factions offer different Augmentations. Augmentations must be purchased in order to be installed, " +
|
||||||
|
"and they are fairly expensive. <br>" +
|
||||||
|
"Unfortunately, installing an Augmentation has side effects. All of your stats and experience will be reset to 1. " +
|
||||||
|
"You will lose all of your digital assets as well, such as your money, programs, scripts, and purchased servers. " +
|
||||||
|
"You will lose all of the reputation you have earned from every company and faction and will no longer be an employee " +
|
||||||
|
"or member of any. The only thing you will keep when you install an Augmentation is all of the past Augmentations " +
|
||||||
|
"you have installed. ",
|
||||||
|
|
||||||
}
|
}
|
@ -1,4 +1,13 @@
|
|||||||
/* Create programs */
|
/* Create programs */
|
||||||
|
Programs = {
|
||||||
|
NukeProgram: "NUKE.exe",
|
||||||
|
BruteSSHProgram: "BruteSSH.exe",
|
||||||
|
FTPCrackProgram: "FTPCrack.exe",
|
||||||
|
RelaySMTPProgram: "relaySMTP.exe",
|
||||||
|
HTTPWormProgram: "HTTPWorm.exe",
|
||||||
|
SQLInjectProgram: "SQLInject.exe",
|
||||||
|
}
|
||||||
|
|
||||||
function displayCreateProgramContent() {
|
function displayCreateProgramContent() {
|
||||||
var portHackALink = document.getElementById("create-program-porthack");
|
var portHackALink = document.getElementById("create-program-porthack");
|
||||||
var bruteSshALink = document.getElementById("create-program-brutessh");
|
var bruteSshALink = document.getElementById("create-program-brutessh");
|
||||||
@ -17,55 +26,55 @@ function displayCreateProgramContent() {
|
|||||||
//TODO These addEventListeners should only happen once so I guess just put them in Engine.init()
|
//TODO These addEventListeners should only happen once so I guess just put them in Engine.init()
|
||||||
|
|
||||||
//PortHack.exe (in case you delete it lol)
|
//PortHack.exe (in case you delete it lol)
|
||||||
if (Player.getHomeComputer().programs.indexOf(CONSTANTS.NukeProgram) == -1) {
|
if (Player.getHomeComputer().programs.indexOf(Programs.NukeProgram) == -1) {
|
||||||
portHackALink.style.display = "block";
|
portHackALink.style.display = "block";
|
||||||
portHackALink.addEventListener("click", function() {
|
portHackALink.addEventListener("click", function() {
|
||||||
createProgram(CONSTANTS.PortHackProgram);
|
createProgram(Programs.PortHackProgram);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//BruteSSH
|
//BruteSSH
|
||||||
if (Player.getHomeComputer().programs.indexOf(CONSTANTS.BruteSSHProgram) == -1 &&
|
if (Player.getHomeComputer().programs.indexOf(Programs.BruteSSHProgram) == -1 &&
|
||||||
Player.hacking_skill >= 50) {
|
Player.hacking_skill >= 50) {
|
||||||
bruteSshALink.style.display = "block";
|
bruteSshALink.style.display = "block";
|
||||||
bruteSshALink.addEventListener("click", function() {
|
bruteSshALink.addEventListener("click", function() {
|
||||||
createProgram(CONSTANTS.BruteSSHProgram);
|
createProgram(Programs.BruteSSHProgram);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//FTPCrack
|
//FTPCrack
|
||||||
if (Player.getHomeComputer().programs.indexOf(CONSTANTS.FTPCrackProgram) == -1 &&
|
if (Player.getHomeComputer().programs.indexOf(Programs.FTPCrackProgram) == -1 &&
|
||||||
Player.hacking_skill >= 125) {
|
Player.hacking_skill >= 125) {
|
||||||
ftpCrackALink.style.display = "block";
|
ftpCrackALink.style.display = "block";
|
||||||
ftpCrackALink.addEventListener("click", function() {
|
ftpCrackALink.addEventListener("click", function() {
|
||||||
createProgram(COSNTANTS.FTPCrackProgram);
|
createProgram(Programs.FTPCrackProgram);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//relaySMTP
|
//relaySMTP
|
||||||
if (Player.getHomeComputer().programs.indexOf(CONSTANTS.RelaySMTPProgram == -1 &&
|
if (Player.getHomeComputer().programs.indexOf(Programs.RelaySMTPProgram == -1 &&
|
||||||
Player.hacking_skill >= 300) {
|
Player.hacking_skill >= 300) {
|
||||||
relaySmtpALink.style.display = "block";
|
relaySmtpALink.style.display = "block";
|
||||||
relaySmtpAlink.addEventListener("click", function() {
|
relaySmtpAlink.addEventListener("click", function() {
|
||||||
createProgram(CONSTANTS.RelaySMTPProgram);
|
createProgram(Programs.RelaySMTPProgram);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//HTTPWorm
|
//HTTPWorm
|
||||||
if (Player.getHomeComputer().programs.indexOf(CONSTANTS.HTTPWormProgram == -1 &&
|
if (Player.getHomeComputer().programs.indexOf(Programs.HTTPWormProgram == -1 &&
|
||||||
Player.hacking_skill >= 500) {
|
Player.hacking_skill >= 500) {
|
||||||
httpWormALink.style.display = "block";
|
httpWormALink.style.display = "block";
|
||||||
httpWormALink.addEventListener("click", function() {
|
httpWormALink.addEventListener("click", function() {
|
||||||
createProgram(CONSTANTS.HTTPWormProgram);
|
createProgram(Programs.HTTPWormProgram);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//SQLInject
|
//SQLInject
|
||||||
if (Player.getHomeComputer().programs.indexOf(CONSTANTS.SQLInjectProgram == -1 &&
|
if (Player.getHomeComputer().programs.indexOf(Programs.SQLInjectProgram == -1 &&
|
||||||
Player.hacking_skill >= 750) {
|
Player.hacking_skill >= 750) {
|
||||||
sqlInjectALink.style.display = "block";
|
sqlInjectALink.style.display = "block";
|
||||||
sqlInjectALink.addEventListener("click", function() {
|
sqlInjectALink.addEventListener("click", function() {
|
||||||
createProgram(CONSTANTS.SQLInjectProgram);
|
createProgram(Programs.SQLInjectProgram);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@ function evaluate(exp, workerScript) {
|
|||||||
}
|
}
|
||||||
if (server == null) {
|
if (server == null) {
|
||||||
resolve("Invalid IP or server hostname passed in");
|
resolve("Invalid IP or server hostname passed in");
|
||||||
//TODO LOg...or throw error or something
|
workerScript.scriptRef.log("Cannot hack(). Invalid IP or hostname passed in: " + ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Calculate the hacking time
|
//Calculate the hacking time
|
||||||
@ -219,9 +219,11 @@ function evaluate(exp, workerScript) {
|
|||||||
|
|
||||||
if (server.hasAdminRights == false) {
|
if (server.hasAdminRights == false) {
|
||||||
console.log("Cannot hack server " + server.hostname);
|
console.log("Cannot hack server " + server.hostname);
|
||||||
resolve("Cannot hack");
|
resolve("Cannot hack, no admin rights");
|
||||||
//TODO LOG That it can't be hacked
|
workerScript.scriptRef.log("Cannot hack this server because user does not have root access");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
workerScript.scriptRef.log("Attempting to hack " + ip + " in " + hackingTime + " seconds");
|
||||||
|
|
||||||
var p = new Promise(function(resolve, reject) {
|
var p = new Promise(function(resolve, reject) {
|
||||||
if (env.stopFlag) {reject(workerScript);}
|
if (env.stopFlag) {reject(workerScript);}
|
||||||
@ -245,6 +247,7 @@ function evaluate(exp, workerScript) {
|
|||||||
Player.hacking_exp += expGainedOnSuccess;
|
Player.hacking_exp += expGainedOnSuccess;
|
||||||
workerScript.scriptRef.onlineExpGained += expGainedOnSuccess;
|
workerScript.scriptRef.onlineExpGained += expGainedOnSuccess;
|
||||||
console.log("Script successfully hacked " + server.hostname + " for $" + moneyGained + " and " + expGainedOnSuccess + " exp");
|
console.log("Script successfully hacked " + server.hostname + " for $" + moneyGained + " and " + expGainedOnSuccess + " exp");
|
||||||
|
workerScript.scriptRef.log("Script successfully hacked " + server.hostname + " for $" + moneyGained + " and " + expGainedOnSuccess + " exp");
|
||||||
resolve("Hack success");
|
resolve("Hack success");
|
||||||
} else {
|
} else {
|
||||||
//Player only gains 25% exp for failure? TODO Can change this later to balance
|
//Player only gains 25% exp for failure? TODO Can change this later to balance
|
||||||
@ -252,6 +255,7 @@ function evaluate(exp, workerScript) {
|
|||||||
workerScript.scriptRef.onlineExpGained += expGainedOnFailure;
|
workerScript.scriptRef.onlineExpGained += expGainedOnFailure;
|
||||||
|
|
||||||
console.log("Script unsuccessful to hack " + server.hostname + ". Gained " + expGainedOnFailure + "exp");
|
console.log("Script unsuccessful to hack " + server.hostname + ". Gained " + expGainedOnFailure + "exp");
|
||||||
|
workerScript.scriptRef.log("Script unsuccessful to hack " + server.hostname + ". Gained " + expGainedOnFailure + "exp");
|
||||||
resolve("Hack failure");
|
resolve("Hack failure");
|
||||||
}
|
}
|
||||||
}, hackingTime * 1000);
|
}, hackingTime * 1000);
|
||||||
@ -275,6 +279,7 @@ function evaluate(exp, workerScript) {
|
|||||||
var sleepTimePromise = evaluate(exp.args[0], workerScript);
|
var sleepTimePromise = evaluate(exp.args[0], workerScript);
|
||||||
sleepTimePromise.then(function(sleepTime) {
|
sleepTimePromise.then(function(sleepTime) {
|
||||||
console.log("Sleep time: " + sleepTime);
|
console.log("Sleep time: " + sleepTime);
|
||||||
|
workerScript.scriptRef.log("Sleeping for " + sleepTime + " milliseconds");
|
||||||
var p = new Promise(function(resolve, reject) {
|
var p = new Promise(function(resolve, reject) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
resolve("foo");
|
resolve("foo");
|
||||||
|
@ -471,7 +471,7 @@ var Terminal = {
|
|||||||
//Contains the implementations of all possible programs
|
//Contains the implementations of all possible programs
|
||||||
executeProgram: function(programName) {
|
executeProgram: function(programName) {
|
||||||
switch (programName) {
|
switch (programName) {
|
||||||
case CONSTANTS.NukeProgram:
|
case Programs.NukeProgram:
|
||||||
if (Player.getCurrentServer().hasAdminRights) {
|
if (Player.getCurrentServer().hasAdminRights) {
|
||||||
post("You already have root access to this computer. There is no reason to run NUKE.exe");
|
post("You already have root access to this computer. There is no reason to run NUKE.exe");
|
||||||
} else {
|
} else {
|
||||||
|
109
src/tags
109
src/tags
@ -11,26 +11,27 @@ $.finishAnalyze C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 134;" kind
|
|||||||
$.finishHack C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 95;" kind:method line:95 language:JavaScript
|
$.finishHack C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 95;" kind:method line:95 language:JavaScript
|
||||||
$.hackFlag C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 83;" kind:property line:83 language:JavaScript
|
$.hackFlag C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 83;" kind:property line:83 language:JavaScript
|
||||||
AddToAllServers C:\Users\daniel.xie\Desktop\netburner\src\Server.js 666;" kind:function line:666 language:JavaScript
|
AddToAllServers C:\Users\daniel.xie\Desktop\netburner\src\Server.js 666;" kind:function line:666 language:JavaScript
|
||||||
AllServersSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 77;" kind:variable line:77 language:JavaScript
|
AllServersSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 88;" kind:variable line:88 language:JavaScript
|
||||||
Augmentation C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 2;" kind:class line:2 language:JavaScript
|
Augmentation C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 2;" kind:class line:2 language:JavaScript
|
||||||
Augmentation.addToFactions C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 23;" kind:method line:23 language:JavaScript
|
Augmentation.addToFactions C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 23;" kind:method line:23 language:JavaScript
|
||||||
Augmentation.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 38;" kind:function line:38 language:JavaScript
|
Augmentation.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 38;" kind:function line:38 language:JavaScript
|
||||||
Augmentation.setInfo C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 13;" kind:method line:13 language:JavaScript
|
Augmentation.setInfo C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 13;" kind:method line:13 language:JavaScript
|
||||||
Augmentation.setRequirements C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 17;" kind:method line:17 language:JavaScript
|
Augmentation.setRequirements C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 17;" kind:method line:17 language:JavaScript
|
||||||
Augmentation.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 34;" kind:method line:34 language:JavaScript
|
Augmentation.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 34;" kind:method line:34 language:JavaScript
|
||||||
AugmentationsSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 81;" kind:variable line:81 language:JavaScript
|
AugmentationsSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 92;" kind:variable line:92 language:JavaScript
|
||||||
CONSTANTS.BruteSSHProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 17;" kind:property line:17 language:JavaScript
|
CONSTANTS.BruteSSHProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 22;" kind:property line:22 language:JavaScript
|
||||||
CONSTANTS.CodeInstructionRunTime C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 10;" kind:property line:10 language:JavaScript
|
CONSTANTS.CodeInstructionRunTime C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 12;" kind:property line:12 language:JavaScript
|
||||||
CONSTANTS.CodeOfflineExecutionTime C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 13;" kind:property line:13 language:JavaScript
|
CONSTANTS.CodeOfflineExecutionTime C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 15;" kind:property line:15 language:JavaScript
|
||||||
CONSTANTS.CorpFactionRepRequirement C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 7;" kind:property line:7 language:JavaScript
|
CONSTANTS.CorpFactionRepRequirement C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 7;" kind:property line:7 language:JavaScript
|
||||||
CONSTANTS.FTPCrackProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 18;" kind:property line:18 language:JavaScript
|
CONSTANTS.FTPCrackProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 23;" kind:property line:23 language:JavaScript
|
||||||
CONSTANTS.HTTPWormProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 20;" kind:property line:20 language:JavaScript
|
CONSTANTS.HTTPWormProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 25;" kind:property line:25 language:JavaScript
|
||||||
CONSTANTS.HelpText C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 24;" kind:property line:24 language:JavaScript
|
CONSTANTS.HelpText C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 29;" kind:property line:29 language:JavaScript
|
||||||
|
CONSTANTS.MaxLogCapacity C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 18;" kind:property line:18 language:JavaScript
|
||||||
CONSTANTS.MaxSkillLevel C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 4;" kind:property line:4 language:JavaScript
|
CONSTANTS.MaxSkillLevel C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 4;" kind:property line:4 language:JavaScript
|
||||||
CONSTANTS.PortHackProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 16;" kind:property line:16 language:JavaScript
|
CONSTANTS.NukeProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 21;" kind:property line:21 language:JavaScript
|
||||||
CONSTANTS.RelaySMTPProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 19;" kind:property line:19 language:JavaScript
|
CONSTANTS.RelaySMTPProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 24;" kind:property line:24 language:JavaScript
|
||||||
CONSTANTS.SQLInjectProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 21;" kind:property line:21 language:JavaScript
|
CONSTANTS.SQLInjectProgram C:\Users\daniel.xie\Desktop\netburner\src\Constants.js 26;" kind:property line:26 language:JavaScript
|
||||||
CompaniesSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 78;" kind:variable line:78 language:JavaScript
|
CompaniesSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 89;" kind:variable line:89 language:JavaScript
|
||||||
Company C:\Users\daniel.xie\Desktop\netburner\src\Company.js 4;" kind:class line:4 language:JavaScript
|
Company C:\Users\daniel.xie\Desktop\netburner\src\Company.js 4;" kind:class line:4 language:JavaScript
|
||||||
Company.addPosition C:\Users\daniel.xie\Desktop\netburner\src\Company.js 34;" kind:method line:34 language:JavaScript
|
Company.addPosition C:\Users\daniel.xie\Desktop\netburner\src\Company.js 34;" kind:method line:34 language:JavaScript
|
||||||
Company.addPositions C:\Users\daniel.xie\Desktop\netburner\src\Company.js 38;" kind:method line:38 language:JavaScript
|
Company.addPositions C:\Users\daniel.xie\Desktop\netburner\src\Company.js 38;" kind:method line:38 language:JavaScript
|
||||||
@ -69,7 +70,7 @@ Faction.setAugmentationMultipliers C:\Users\daniel.xie\Desktop\netburner\src\Fac
|
|||||||
Faction.setInformation C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 22;" kind:method line:22 language:JavaScript
|
Faction.setInformation C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 22;" kind:method line:22 language:JavaScript
|
||||||
Faction.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 26;" kind:method line:26 language:JavaScript
|
Faction.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 26;" kind:method line:26 language:JavaScript
|
||||||
FactionInfo.HelpText C:\Users\daniel.xie\Desktop\netburner\src\FactionInfo.js 5;" kind:property line:5 language:JavaScript
|
FactionInfo.HelpText C:\Users\daniel.xie\Desktop\netburner\src\FactionInfo.js 5;" kind:property line:5 language:JavaScript
|
||||||
FactionsSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 79;" kind:variable line:79 language:JavaScript
|
FactionsSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 90;" kind:variable line:90 language:JavaScript
|
||||||
GetServerByHostname C:\Users\daniel.xie\Desktop\netburner\src\Server.js 680;" kind:function line:680 language:JavaScript
|
GetServerByHostname C:\Users\daniel.xie\Desktop\netburner\src\Server.js 680;" kind:function line:680 language:JavaScript
|
||||||
InputStream C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 3;" kind:function line:3 language:JavaScript
|
InputStream C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 3;" kind:function line:3 language:JavaScript
|
||||||
Locations.Aevum C:\Users\daniel.xie\Desktop\netburner\src\Location.js 6;" kind:property line:6 language:JavaScript
|
Locations.Aevum C:\Users\daniel.xie\Desktop\netburner\src\Location.js 6;" kind:property line:6 language:JavaScript
|
||||||
@ -156,9 +157,9 @@ PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\CompanyJobApplication.js
|
|||||||
PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 121;" kind:class line:121 language:JavaScript
|
PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 121;" kind:class line:121 language:JavaScript
|
||||||
PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Player.js 2;" kind:class line:2 language:JavaScript
|
PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Player.js 2;" kind:class line:2 language:JavaScript
|
||||||
PlayerObject.PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Player.js 385;" kind:class line:385 language:JavaScript
|
PlayerObject.PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Player.js 385;" kind:class line:385 language:JavaScript
|
||||||
PlayerObject.PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Player.js 673;" kind:method line:673 language:JavaScript
|
PlayerObject.PlayerObject C:\Users\daniel.xie\Desktop\netburner\src\Player.js 676;" kind:method line:676 language:JavaScript
|
||||||
PlayerObject.PlayerObject.createProgramWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 636;" kind:method line:636 language:JavaScript
|
PlayerObject.PlayerObject.createProgramWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 636;" kind:method line:636 language:JavaScript
|
||||||
PlayerObject.PlayerObject.finishCreateProgramWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 664;" kind:method line:664 language:JavaScript
|
PlayerObject.PlayerObject.finishCreateProgramWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 655;" kind:method line:655 language:JavaScript
|
||||||
PlayerObject.PlayerObject.getFactionFieldWorkRepGain C:\Users\daniel.xie\Desktop\netburner\src\Player.js 603;" kind:method line:603 language:JavaScript
|
PlayerObject.PlayerObject.getFactionFieldWorkRepGain C:\Users\daniel.xie\Desktop\netburner\src\Player.js 603;" kind:method line:603 language:JavaScript
|
||||||
PlayerObject.PlayerObject.getFactionSecurityWorkRepGain C:\Users\daniel.xie\Desktop\netburner\src\Player.js 594;" kind:method line:594 language:JavaScript
|
PlayerObject.PlayerObject.getFactionSecurityWorkRepGain C:\Users\daniel.xie\Desktop\netburner\src\Player.js 594;" kind:method line:594 language:JavaScript
|
||||||
PlayerObject.PlayerObject.getWorkAgiExpGain C:\Users\daniel.xie\Desktop\netburner\src\Player.js 574;" kind:method line:574 language:JavaScript
|
PlayerObject.PlayerObject.getWorkAgiExpGain C:\Users\daniel.xie\Desktop\netburner\src\Player.js 574;" kind:method line:574 language:JavaScript
|
||||||
@ -174,7 +175,7 @@ PlayerObject.PlayerObject.startFactionFieldWork C:\Users\daniel.xie\Desktop\netb
|
|||||||
PlayerObject.PlayerObject.startFactionHackWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 450;" kind:method line:450 language:JavaScript
|
PlayerObject.PlayerObject.startFactionHackWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 450;" kind:method line:450 language:JavaScript
|
||||||
PlayerObject.PlayerObject.startFactionSecurityWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 480;" kind:method line:480 language:JavaScript
|
PlayerObject.PlayerObject.startFactionSecurityWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 480;" kind:method line:480 language:JavaScript
|
||||||
PlayerObject.PlayerObject.startFactionWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 420;" kind:method line:420 language:JavaScript
|
PlayerObject.PlayerObject.startFactionWork C:\Users\daniel.xie\Desktop\netburner\src\Player.js 420;" kind:method line:420 language:JavaScript
|
||||||
PlayerObject.PlayerObject.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Player.js 669;" kind:method line:669 language:JavaScript
|
PlayerObject.PlayerObject.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Player.js 672;" kind:method line:672 language:JavaScript
|
||||||
PlayerObject.PlayerObject.workForFaction C:\Users\daniel.xie\Desktop\netburner\src\Player.js 495;" kind:method line:495 language:JavaScript
|
PlayerObject.PlayerObject.workForFaction C:\Users\daniel.xie\Desktop\netburner\src\Player.js 495;" kind:method line:495 language:JavaScript
|
||||||
PlayerObject.analyze C:\Users\daniel.xie\Desktop\netburner\src\Player.js 226;" kind:method line:226 language:JavaScript
|
PlayerObject.analyze C:\Users\daniel.xie\Desktop\netburner\src\Player.js 226;" kind:method line:226 language:JavaScript
|
||||||
PlayerObject.applyForAgentJob C:\Users\daniel.xie\Desktop\netburner\src\CompanyJobApplication.js 114;" kind:method line:114 language:JavaScript
|
PlayerObject.applyForAgentJob C:\Users\daniel.xie\Desktop\netburner\src\CompanyJobApplication.js 114;" kind:method line:114 language:JavaScript
|
||||||
@ -205,11 +206,13 @@ PlayerObject.updateSkillLevels C:\Users\daniel.xie\Desktop\netburner\src\Player.
|
|||||||
PlayerObject.work C:\Users\daniel.xie\Desktop\netburner\src\Player.js 336;" kind:method line:336 language:JavaScript
|
PlayerObject.work C:\Users\daniel.xie\Desktop\netburner\src\Player.js 336;" kind:method line:336 language:JavaScript
|
||||||
PrintAllServers C:\Users\daniel.xie\Desktop\netburner\src\Server.js 692;" kind:function line:692 language:JavaScript
|
PrintAllServers C:\Users\daniel.xie\Desktop\netburner\src\Server.js 692;" kind:function line:692 language:JavaScript
|
||||||
Script C:\Users\daniel.xie\Desktop\netburner\src\Script.js 66;" kind:class line:66 language:JavaScript
|
Script C:\Users\daniel.xie\Desktop\netburner\src\Script.js 66;" kind:class line:66 language:JavaScript
|
||||||
Script.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\Script.js 132;" kind:function line:132 language:JavaScript
|
Script.displayLog C:\Users\daniel.xie\Desktop\netburner\src\Script.js 139;" kind:method line:139 language:JavaScript
|
||||||
Script.saveScript C:\Users\daniel.xie\Desktop\netburner\src\Script.js 89;" kind:method line:89 language:JavaScript
|
Script.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\Script.js 150;" kind:function line:150 language:JavaScript
|
||||||
Script.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Script.js 128;" kind:method line:128 language:JavaScript
|
Script.log C:\Users\daniel.xie\Desktop\netburner\src\Script.js 129;" kind:method line:129 language:JavaScript
|
||||||
Script.updateNumInstructions C:\Users\daniel.xie\Desktop\netburner\src\Script.js 115;" kind:method line:115 language:JavaScript
|
Script.saveScript C:\Users\daniel.xie\Desktop\netburner\src\Script.js 90;" kind:method line:90 language:JavaScript
|
||||||
Script.updateRamUsage C:\Users\daniel.xie\Desktop\netburner\src\Script.js 124;" kind:method line:124 language:JavaScript
|
Script.toJSON C:\Users\daniel.xie\Desktop\netburner\src\Script.js 145;" kind:method line:145 language:JavaScript
|
||||||
|
Script.updateNumInstructions C:\Users\daniel.xie\Desktop\netburner\src\Script.js 116;" kind:method line:116 language:JavaScript
|
||||||
|
Script.updateRamUsage C:\Users\daniel.xie\Desktop\netburner\src\Script.js 125;" kind:method line:125 language:JavaScript
|
||||||
ScriptEditorLastStatus C:\Users\daniel.xie\Desktop\netburner\src\Script.js 56;" kind:variable line:56 language:JavaScript
|
ScriptEditorLastStatus C:\Users\daniel.xie\Desktop\netburner\src\Script.js 56;" kind:variable line:56 language:JavaScript
|
||||||
Server C:\Users\daniel.xie\Desktop\netburner\src\Server.js 4;" kind:class line:4 language:JavaScript
|
Server C:\Users\daniel.xie\Desktop\netburner\src\Server.js 4;" kind:class line:4 language:JavaScript
|
||||||
Server.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\Server.js 108;" kind:function line:108 language:JavaScript
|
Server.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\Server.js 108;" kind:function line:108 language:JavaScript
|
||||||
@ -225,33 +228,33 @@ SpecialServerIpsMap C:\Users\daniel.xie\Desktop\netburner\src\SpecialServerIps.j
|
|||||||
SpecialServerIpsMap.addIp C:\Users\daniel.xie\Desktop\netburner\src\SpecialServerIps.js 5;" kind:method line:5 language:JavaScript
|
SpecialServerIpsMap.addIp C:\Users\daniel.xie\Desktop\netburner\src\SpecialServerIps.js 5;" kind:method line:5 language:JavaScript
|
||||||
SpecialServerIpsMap.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\SpecialServerIps.js 13;" kind:function line:13 language:JavaScript
|
SpecialServerIpsMap.fromJSON C:\Users\daniel.xie\Desktop\netburner\src\SpecialServerIps.js 13;" kind:function line:13 language:JavaScript
|
||||||
SpecialServerIpsMap.toJSON C:\Users\daniel.xie\Desktop\netburner\src\SpecialServerIps.js 9;" kind:method line:9 language:JavaScript
|
SpecialServerIpsMap.toJSON C:\Users\daniel.xie\Desktop\netburner\src\SpecialServerIps.js 9;" kind:method line:9 language:JavaScript
|
||||||
SpecialServerIpsSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 80;" kind:variable line:80 language:JavaScript
|
SpecialServerIpsSave C:\Users\daniel.xie\Desktop\netburner\src\engine.js 91;" kind:variable line:91 language:JavaScript
|
||||||
Tokenizer C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 16;" kind:function line:16 language:JavaScript
|
Tokenizer C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 16;" kind:function line:16 language:JavaScript
|
||||||
WorkerScript C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 9;" kind:class line:9 language:JavaScript
|
WorkerScript C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 9;" kind:class line:9 language:JavaScript
|
||||||
WorkerScript.getServer C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 21;" kind:method line:21 language:JavaScript
|
WorkerScript.getServer C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 21;" kind:method line:21 language:JavaScript
|
||||||
addWorkerScript C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 134;" kind:function line:134 language:JavaScript
|
addWorkerScript C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 134;" kind:function line:134 language:JavaScript
|
||||||
allFiles C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 317;" kind:variable line:317 language:JavaScript
|
allFiles C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 317;" kind:variable line:317 language:JavaScript
|
||||||
applyAugmentation C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 488;" kind:function line:488 language:JavaScript
|
applyAugmentation C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 486;" kind:function line:486 language:JavaScript
|
||||||
apply_op C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 493;" kind:function line:493 language:JavaScript
|
apply_op C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 498;" kind:function line:498 language:JavaScript
|
||||||
apply_op.div C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 499;" kind:function line:499 language:JavaScript
|
apply_op.div C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 504;" kind:function line:504 language:JavaScript
|
||||||
apply_op.num C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 494;" kind:function line:494 language:JavaScript
|
apply_op.num C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 499;" kind:function line:499 language:JavaScript
|
||||||
checkValidFilename C:\Users\daniel.xie\Desktop\netburner\src\Script.js 47;" kind:function line:47 language:JavaScript
|
checkValidFilename C:\Users\daniel.xie\Desktop\netburner\src\Script.js 47;" kind:function line:47 language:JavaScript
|
||||||
croak C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 22;" kind:function line:22 language:JavaScript
|
croak C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 22;" kind:function line:22 language:JavaScript
|
||||||
diff C:\Users\daniel.xie\Desktop\netburner\src\engine.js 481;" kind:variable line:481 language:JavaScript
|
diff C:\Users\daniel.xie\Desktop\netburner\src\engine.js 530;" kind:variable line:530 language:JavaScript
|
||||||
displayFactionAugmentations C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 613;" kind:function line:613 language:JavaScript
|
displayFactionAugmentations C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 613;" kind:function line:613 language:JavaScript
|
||||||
displayFactionContent C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 418;" kind:function line:418 language:JavaScript
|
displayFactionContent C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 418;" kind:function line:418 language:JavaScript
|
||||||
eof C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 19;" kind:function line:19 language:JavaScript
|
eof C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 19;" kind:function line:19 language:JavaScript
|
||||||
eof C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 165;" kind:function line:165 language:JavaScript
|
eof C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 165;" kind:function line:165 language:JavaScript
|
||||||
evaluate C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 7;" kind:function line:7 language:JavaScript
|
evaluate C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 7;" kind:function line:7 language:JavaScript
|
||||||
evaluateFor C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 328;" kind:function line:328 language:JavaScript
|
evaluateFor C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 333;" kind:function line:333 language:JavaScript
|
||||||
evaluateProg C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 455;" kind:function line:455 language:JavaScript
|
evaluateProg C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 460;" kind:function line:460 language:JavaScript
|
||||||
evaluateWhile C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 400;" kind:function line:400 language:JavaScript
|
evaluateWhile C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 405;" kind:function line:405 language:JavaScript
|
||||||
filename C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 339;" kind:variable line:339 language:JavaScript
|
filename C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 339;" kind:variable line:339 language:JavaScript
|
||||||
getNextCompanyPosition C:\Users\daniel.xie\Desktop\netburner\src\Company.js 328;" kind:function line:328 language:JavaScript
|
getNextCompanyPosition C:\Users\daniel.xie\Desktop\netburner\src\Company.js 328;" kind:function line:328 language:JavaScript
|
||||||
hackProgressBarPost C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 10;" kind:function line:10 language:JavaScript
|
hackProgressBarPost C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 10;" kind:function line:10 language:JavaScript
|
||||||
hackProgressPost C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 15;" kind:function line:15 language:JavaScript
|
hackProgressPost C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 15;" kind:function line:15 language:JavaScript
|
||||||
hostname C:\Users\daniel.xie\Desktop\netburner\src\engine.js 410;" kind:variable line:410 language:JavaScript
|
hostname C:\Users\daniel.xie\Desktop\netburner\src\engine.js 422;" kind:variable line:422 language:JavaScript
|
||||||
initAugmentations C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 54;" kind:function line:54 language:JavaScript
|
initAugmentations C:\Users\daniel.xie\Desktop\netburner\src\Augmentations.js 52;" kind:function line:52 language:JavaScript
|
||||||
initCompanies C:\Users\daniel.xie\Desktop\netburner\src\Company.js 425;" kind:function line:425 language:JavaScript
|
initCompanies C:\Users\daniel.xie\Desktop\netburner\src\Company.js 425;" kind:function line:425 language:JavaScript
|
||||||
initFactions C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 47;" kind:function line:47 language:JavaScript
|
initFactions C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 47;" kind:function line:47 language:JavaScript
|
||||||
initForeignServers C:\Users\daniel.xie\Desktop\netburner\src\Server.js 117;" kind:function line:117 language:JavaScript
|
initForeignServers C:\Users\daniel.xie\Desktop\netburner\src\Server.js 117;" kind:function line:117 language:JavaScript
|
||||||
@ -265,23 +268,25 @@ is_keyword C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 27;"
|
|||||||
is_op_char C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 44;" kind:function line:44 language:JavaScript
|
is_op_char C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 44;" kind:function line:44 language:JavaScript
|
||||||
is_punc C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 48;" kind:function line:48 language:JavaScript
|
is_punc C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 48;" kind:function line:48 language:JavaScript
|
||||||
is_whitespace C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 52;" kind:function line:52 language:JavaScript
|
is_whitespace C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 52;" kind:function line:52 language:JavaScript
|
||||||
item C:\Users\daniel.xie\Desktop\netburner\src\engine.js 390;" kind:variable line:390 language:JavaScript
|
item C:\Users\daniel.xie\Desktop\netburner\src\engine.js 402;" kind:variable line:402 language:JavaScript
|
||||||
itemText C:\Users\daniel.xie\Desktop\netburner\src\engine.js 407;" kind:variable line:407 language:JavaScript
|
itemText C:\Users\daniel.xie\Desktop\netburner\src\engine.js 419;" kind:variable line:419 language:JavaScript
|
||||||
joinFaction C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 370;" kind:function line:370 language:JavaScript
|
joinFaction C:\Users\daniel.xie\Desktop\netburner\src\Faction.js 370;" kind:function line:370 language:JavaScript
|
||||||
killWorkerScript C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 124;" kind:function line:124 language:JavaScript
|
killWorkerScript C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 124;" kind:function line:124 language:JavaScript
|
||||||
li C:\Users\daniel.xie\Desktop\netburner\src\engine.js 372;" kind:variable line:372 language:JavaScript
|
li C:\Users\daniel.xie\Desktop\netburner\src\engine.js 384;" kind:variable line:384 language:JavaScript
|
||||||
loadAllRunningScripts C:\Users\daniel.xie\Desktop\netburner\src\Script.js 141;" kind:function line:141 language:JavaScript
|
loadAllRunningScripts C:\Users\daniel.xie\Desktop\netburner\src\Script.js 159;" kind:function line:159 language:JavaScript
|
||||||
mainMenu C:\Users\daniel.xie\Desktop\netburner\src\engine.js 251;" kind:variable line:251 language:JavaScript
|
mainMenu C:\Users\daniel.xie\Desktop\netburner\src\engine.js 263;" kind:variable line:263 language:JavaScript
|
||||||
maybe_call C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 203;" kind:function line:203 language:JavaScript
|
maybe_call C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 203;" kind:function line:203 language:JavaScript
|
||||||
next C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 11;" kind:function line:11 language:JavaScript
|
next C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 11;" kind:function line:11 language:JavaScript
|
||||||
next C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 157;" kind:function line:157 language:JavaScript
|
next C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 157;" kind:function line:157 language:JavaScript
|
||||||
offlineEps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 422;" kind:variable line:422 language:JavaScript
|
offlineEps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 440;" kind:variable line:440 language:JavaScript
|
||||||
offlineMps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 420;" kind:variable line:420 language:JavaScript
|
offlineMps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 438;" kind:variable line:438 language:JavaScript
|
||||||
offlineMpsText C:\Users\daniel.xie\Desktop\netburner\src\engine.js 421;" kind:variable line:421 language:JavaScript
|
offlineMpsText C:\Users\daniel.xie\Desktop\netburner\src\engine.js 439;" kind:variable line:439 language:JavaScript
|
||||||
offset C:\Users\daniel.xie\Desktop\netburner\src\engine.js 482;" kind:variable line:482 language:JavaScript
|
offlineTotalMoneyMade C:\Users\daniel.xie\Desktop\netburner\src\engine.js 435;" kind:variable line:435 language:JavaScript
|
||||||
onlineEps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 416;" kind:variable line:416 language:JavaScript
|
offset C:\Users\daniel.xie\Desktop\netburner\src\engine.js 531;" kind:variable line:531 language:JavaScript
|
||||||
onlineMps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 414;" kind:variable line:414 language:JavaScript
|
onlineEps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 431;" kind:variable line:431 language:JavaScript
|
||||||
onlineMpsText C:\Users\daniel.xie\Desktop\netburner\src\engine.js 415;" kind:variable line:415 language:JavaScript
|
onlineMps C:\Users\daniel.xie\Desktop\netburner\src\engine.js 429;" kind:variable line:429 language:JavaScript
|
||||||
|
onlineMpsText C:\Users\daniel.xie\Desktop\netburner\src\engine.js 430;" kind:variable line:430 language:JavaScript
|
||||||
|
onlineTotalMoneyMade C:\Users\daniel.xie\Desktop\netburner\src\engine.js 426;" kind:variable line:426 language:JavaScript
|
||||||
parse_atom C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 208;" kind:function line:208 language:JavaScript
|
parse_atom C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 208;" kind:function line:208 language:JavaScript
|
||||||
parse_bool C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 196;" kind:function line:196 language:JavaScript
|
parse_bool C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 196;" kind:function line:196 language:JavaScript
|
||||||
parse_expression C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 248;" kind:function line:248 language:JavaScript
|
parse_expression C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 248;" kind:function line:248 language:JavaScript
|
||||||
@ -295,7 +300,7 @@ parse_varname C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 100;
|
|||||||
parse_while C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 182;" kind:function line:182 language:JavaScript
|
parse_while C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Parser.js 182;" kind:function line:182 language:JavaScript
|
||||||
peek C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 16;" kind:function line:16 language:JavaScript
|
peek C:\Users\daniel.xie\Desktop\netburner\src\Netscript\InputStream.js 16;" kind:function line:16 language:JavaScript
|
||||||
peek C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 151;" kind:function line:151 language:JavaScript
|
peek C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 151;" kind:function line:151 language:JavaScript
|
||||||
percent C:\Users\daniel.xie\Desktop\netburner\src\engine.js 595;" kind:variable line:595 language:JavaScript
|
percent C:\Users\daniel.xie\Desktop\netburner\src\engine.js 644;" kind:variable line:644 language:JavaScript
|
||||||
post C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 4;" kind:function line:4 language:JavaScript
|
post C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 4;" kind:function line:4 language:JavaScript
|
||||||
postNetburnerText C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 25;" kind:function line:25 language:JavaScript
|
postNetburnerText C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 25;" kind:function line:25 language:JavaScript
|
||||||
postScriptEditorStatus C:\Users\daniel.xie\Desktop\netburner\src\Script.js 57;" kind:function line:57 language:JavaScript
|
postScriptEditorStatus C:\Users\daniel.xie\Desktop\netburner\src\Script.js 57;" kind:function line:57 language:JavaScript
|
||||||
@ -308,16 +313,16 @@ read_number C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 63;
|
|||||||
read_string C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 107;" kind:function line:107 language:JavaScript
|
read_string C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 107;" kind:function line:107 language:JavaScript
|
||||||
read_while C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 56;" kind:function line:56 language:JavaScript
|
read_while C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 56;" kind:function line:56 language:JavaScript
|
||||||
runScriptsLoop C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 29;" kind:function line:29 language:JavaScript
|
runScriptsLoop C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 29;" kind:function line:29 language:JavaScript
|
||||||
scriptCalculateExpGain C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 539;" kind:function line:539 language:JavaScript
|
scriptCalculateExpGain C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 544;" kind:function line:544 language:JavaScript
|
||||||
scriptCalculateHackingChance C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 523;" kind:function line:523 language:JavaScript
|
scriptCalculateHackingChance C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 528;" kind:function line:528 language:JavaScript
|
||||||
scriptCalculateHackingTime C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 531;" kind:function line:531 language:JavaScript
|
scriptCalculateHackingTime C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 536;" kind:function line:536 language:JavaScript
|
||||||
scriptCalculateOfflineProduction C:\Users\daniel.xie\Desktop\netburner\src\Script.js 165;" kind:function line:165 language:JavaScript
|
scriptCalculateOfflineProduction C:\Users\daniel.xie\Desktop\netburner\src\Script.js 183;" kind:function line:183 language:JavaScript
|
||||||
scriptCalculatePercentMoneyHacked C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 544;" kind:function line:544 language:JavaScript
|
scriptCalculatePercentMoneyHacked C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Evaluator.js 549;" kind:function line:549 language:JavaScript
|
||||||
scriptName C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 301;" kind:variable line:301 language:JavaScript
|
scriptName C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 301;" kind:variable line:301 language:JavaScript
|
||||||
scriptname C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 347;" kind:variable line:347 language:JavaScript
|
scriptname C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 347;" kind:variable line:347 language:JavaScript
|
||||||
serverIpHostname C:\Users\daniel.xie\Desktop\netburner\src\engine.js 411;" kind:variable line:411 language:JavaScript
|
serverIpHostname C:\Users\daniel.xie\Desktop\netburner\src\engine.js 423;" kind:variable line:423 language:JavaScript
|
||||||
skip_comment C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 116;" kind:function line:116 language:JavaScript
|
skip_comment C:\Users\daniel.xie\Desktop\netburner\src\Netscript\Tokenizer.js 116;" kind:function line:116 language:JavaScript
|
||||||
updateOnlineScriptTimes C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 157;" kind:function line:157 language:JavaScript
|
updateOnlineScriptTimes C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 157;" kind:function line:157 language:JavaScript
|
||||||
updateTerminalScroll C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 20;" kind:function line:20 language:JavaScript
|
updateTerminalScroll C:\Users\daniel.xie\Desktop\netburner\src\Terminal.js 20;" kind:function line:20 language:JavaScript
|
||||||
window.onload C:\Users\daniel.xie\Desktop\netburner\src\engine.js 794;" kind:function line:794 language:JavaScript
|
window.onload C:\Users\daniel.xie\Desktop\netburner\src\engine.js 891;" kind:function line:891 language:JavaScript
|
||||||
workerScripts C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 26;" kind:variable line:26 language:JavaScript
|
workerScripts C:\Users\daniel.xie\Desktop\netburner\src\Netscript\NetscriptWorker.js 26;" kind:variable line:26 language:JavaScript
|
||||||
|
BIN
src/tags.idx
BIN
src/tags.idx
Binary file not shown.
Loading…
Reference in New Issue
Block a user