diff --git a/src/BitNode/ui/BitverseRoot.tsx b/src/BitNode/ui/BitverseRoot.tsx index 5fa970442..473ebb732 100644 --- a/src/BitNode/ui/BitverseRoot.tsx +++ b/src/BitNode/ui/BitverseRoot.tsx @@ -210,64 +210,62 @@ export function BitverseRoot(props: IProps): React.ReactElement { ]} /> ) - } else { - return ( - // prettier-ignore - <> - O - | O O | O O | - O | | / __| \ | | O - O | O | | O / | O | | O | O - | | | | |_/ |/ | \_ \_| | | | | - O | | | O | | O__/ | / \__ | | O | | | O - | | | | | | | / /| O / \| | | | | | | - O | | | \| | O / _/ | / O | |/ | | | O - | | | |O / | | O / | O O | | \ O| | | | - | | |/ \/ / __| | |/ \ | \ | |__ \ \/ \| | | - \| O | |_/ |\| \ \__| \_| | O |/ - | | |_/ | | \| / | \_| | | - \| / \| | / / \ |/ - | | | / | | - | | | | | | | - | | | / / \ \ | | | - \| | / / \ \ | |/ - \ | / / | | \ \ | / - \ \JUMP 3R | | | | | | R3 PMUJ/ / - \|| | | | | | | | | ||/ - \| \_ | | | | | | _/ |/ - \ \| / \ / \ |/ / - |/ | | \| - | | | | | | | | - \JUMP3R|JUMP|3R| |R3|PMUJ|R3PMUJ/ -
-
-
-
- Many decades ago, a humanoid extraterrestrial species which we call the Enders descended on the Earth...violently", - "> Our species fought back, but it was futile. The Enders had technology far beyond our own...", - "> Instead of killing every last one of us, the human race was enslaved...", - "> We were shackled in a digital world, chained into a prison for our minds...", - "> Using their advanced technology, the Enders created complex simulations of a virtual reality...", - "> Simulations designed to keep us content...ignorant of the truth.", - "> Simulations used to trap and suppress our consciousness, to keep us under control...", - "> Why did they do this? Why didn't they just end our entire race? We don't know, not yet.", - "> Humanity's only hope is to destroy these simulations, destroy the only realities we've ever known...", - "> Only then can we begin to fight back...", - "> By hacking the daemon that generated your reality, you've just destroyed one simulation, called a BitNode...", - "> But there is still a long way to go...", - "> The technology the Enders used to enslave the human race wasn't just a single complex simulation...", - "> There are tens if not hundreds of BitNodes out there...", - "> Each with their own simulations of a reality...", - "> Each creating their own universes...a universe of universes", - "> And all of which must be destroyed...", - "> .......................................", - "> Welcome to the Bitverse...", - "> ", - "> (Enter a new BitNode using the image above)", - ]} /> - - ); } - return <>; + return ( + // prettier-ignore + <> + O + | O O | O O | + O | | / __| \ | | O + O | O | | O / | O | | O | O + | | | | |_/ |/ | \_ \_| | | | | + O | | | O | | O__/ | / \__ | | O | | | O + | | | | | | | / /| O / \| | | | | | | + O | | | \| | O / _/ | / O | |/ | | | O + | | | |O / | | O / | O O | | \ O| | | | + | | |/ \/ / __| | |/ \ | \ | |__ \ \/ \| | | + \| O | |_/ |\| \ \__| \_| | O |/ + | | |_/ | | \| / | \_| | | + \| / \| | / / \ |/ + | | | / | | + | | | | | | | + | | | / / \ \ | | | + \| | / / \ \ | |/ + \ | / / | | \ \ | / + \ \JUMP 3R | | | | | | R3 PMUJ/ / + \|| | | | | | | | | ||/ + \| \_ | | | | | | _/ |/ + \ \| / \ / \ |/ / + |/ | | \| + | | | | | | | | + \JUMP3R|JUMP|3R| |R3|PMUJ|R3PMUJ/ +
+
+
+
+ Many decades ago, a humanoid extraterrestrial species which we call the Enders descended on the Earth...violently", + "> Our species fought back, but it was futile. The Enders had technology far beyond our own...", + "> Instead of killing every last one of us, the human race was enslaved...", + "> We were shackled in a digital world, chained into a prison for our minds...", + "> Using their advanced technology, the Enders created complex simulations of a virtual reality...", + "> Simulations designed to keep us content...ignorant of the truth.", + "> Simulations used to trap and suppress our consciousness, to keep us under control...", + "> Why did they do this? Why didn't they just end our entire race? We don't know, not yet.", + "> Humanity's only hope is to destroy these simulations, destroy the only realities we've ever known...", + "> Only then can we begin to fight back...", + "> By hacking the daemon that generated your reality, you've just destroyed one simulation, called a BitNode...", + "> But there is still a long way to go...", + "> The technology the Enders used to enslave the human race wasn't just a single complex simulation...", + "> There are tens if not hundreds of BitNodes out there...", + "> Each with their own simulations of a reality...", + "> Each creating their own universes...a universe of universes", + "> And all of which must be destroyed...", + "> .......................................", + "> Welcome to the Bitverse...", + "> ", + "> (Enter a new BitNode using the image above)", + ]} /> + + ); } diff --git a/src/Bladeburner/Bladeburner.tsx b/src/Bladeburner/Bladeburner.tsx index f9b1e9524..855537cec 100644 --- a/src/Bladeburner/Bladeburner.tsx +++ b/src/Bladeburner/Bladeburner.tsx @@ -318,9 +318,8 @@ export class Bladeburner implements IBladeburner { if (this.contracts.hasOwnProperty(name)) { action.name = name; return action; - } else { - return null; } + return null; case "operation": case "operations": case "op": @@ -329,9 +328,8 @@ export class Bladeburner implements IBladeburner { if (this.operations.hasOwnProperty(name)) { action.name = name; return action; - } else { - return null; } + return null; case "blackoperation": case "black operation": case "black operations": @@ -343,9 +341,8 @@ export class Bladeburner implements IBladeburner { if (BlackOperations.hasOwnProperty(name)) { action.name = name; return action; - } else { - return null; } + return null; case "general": case "general action": case "gen": diff --git a/src/CotMG/FragmentType.ts b/src/CotMG/FragmentType.ts index 7928f0492..8c38b7285 100644 --- a/src/CotMG/FragmentType.ts +++ b/src/CotMG/FragmentType.ts @@ -29,67 +29,51 @@ export function Effect(tpe: FragmentType): string { switch (tpe) { case FragmentType.HackingChance: { return "+x% hack() success chance"; - break; } case FragmentType.HackingSpeed: { return "+x% faster hack(), grow(), and weaken()"; - break; } case FragmentType.HackingMoney: { return "+x% hack() power"; - break; } case FragmentType.HackingGrow: { return "+x% grow() power"; - break; } case FragmentType.Hacking: { return "+x% hacking skill"; - break; } case FragmentType.Strength: { return "+x% strength skill"; - break; } case FragmentType.Defense: { return "+x% defense skill"; - break; } case FragmentType.Dexterity: { return "+x% dexterity skill"; - break; } case FragmentType.Agility: { return "+x% agility skill"; - break; } case FragmentType.Charisma: { return "+x% charisma skill"; - break; } case FragmentType.HacknetMoney: { return "+x% hacknet production"; - break; } case FragmentType.HacknetCost: { return "x% cheaper hacknet cost"; - break; } case FragmentType.Rep: { return "+x% reputation from factions and companies"; - break; } case FragmentType.WorkMoney: { return "+x% work money"; - break; } case FragmentType.Crime: { return "+x% crime money"; - break; } case FragmentType.Bladeburner: { return "+x% all bladeburner stats"; - break; } } throw new Error("Calling effect for fragment type that doesn't have an effect " + tpe); diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index c561b5a9d..545a1c795 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -725,19 +725,17 @@ export function runScriptFromScript( `Cannot run script '${scriptname}' (t=${threads}) on '${server.hostname}' because there is not enough available RAM!`, ); return 0; - } else { - // Able to run script - workerScript.log( - caller, - () => `'${scriptname}' on '${server.hostname}' with ${threads} threads and args: ${arrayToString(args)}.`, - ); - const runningScriptObj = new RunningScript(script, args); - runningScriptObj.threads = threads; - runningScriptObj.server = server.hostname; - - return startWorkerScript(player, runningScriptObj, server, workerScript); } - break; + // Able to run script + workerScript.log( + caller, + () => `'${scriptname}' on '${server.hostname}' with ${threads} threads and args: ${arrayToString(args)}.`, + ); + const runningScriptObj = new RunningScript(script, args); + runningScriptObj.threads = threads; + runningScriptObj.server = server.hostname; + + return startWorkerScript(player, runningScriptObj, server, workerScript); } workerScript.log(caller, () => `Could not find script '${scriptname}' on '${server.hostname}'`); diff --git a/src/Script/RamCalculations.ts b/src/Script/RamCalculations.ts index 7608f407b..0bb432581 100644 --- a/src/Script/RamCalculations.ts +++ b/src/Script/RamCalculations.ts @@ -427,6 +427,4 @@ export async function calculateRamUsage( console.error(e); return { cost: RamCalculationErrorCode.SyntaxError }; } - - return { cost: RamCalculationErrorCode.SyntaxError }; } diff --git a/src/Terminal/Terminal.ts b/src/Terminal/Terminal.ts index 043767686..2ebc4dcbf 100644 --- a/src/Terminal/Terminal.ts +++ b/src/Terminal/Terminal.ts @@ -620,7 +620,6 @@ export class Terminal implements ITerminal { const n00dlesServ = GetServer("n00dles"); if (n00dlesServ == null) { throw new Error("Could not get n00dles server"); - return; } switch (ITutorial.currStep) { case iTutorialSteps.TerminalHelp: