mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Formatted and linted
This commit is contained in:
parent
b18c18e19a
commit
c01cf85d27
@ -193,7 +193,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
throw makeRuntimeRejectMsg(
|
throw makeRuntimeRejectMsg(
|
||||||
workerScript,
|
workerScript,
|
||||||
`Invalid scriptArgs argument passed into getRunningScript() from ${callingFnName}(). ` +
|
`Invalid scriptArgs argument passed into getRunningScript() from ${callingFnName}(). ` +
|
||||||
`This is probably a bug. Please report to game developer`,
|
`This is probably a bug. Please report to game developer`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -826,7 +826,8 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
workerScript.log(
|
workerScript.log(
|
||||||
"weaken",
|
"weaken",
|
||||||
() =>
|
() =>
|
||||||
`'${server.hostname}' security level weakened to ${server.hackDifficulty
|
`'${server.hostname}' security level weakened to ${
|
||||||
|
server.hackDifficulty
|
||||||
}. Gained ${numeralWrapper.formatExp(expGain)} hacking exp (t=${numeralWrapper.formatThreads(threads)})`,
|
}. Gained ${numeralWrapper.formatExp(expGain)} hacking exp (t=${numeralWrapper.formatThreads(threads)})`,
|
||||||
);
|
);
|
||||||
workerScript.scriptRef.onlineExpGained += expGain;
|
workerScript.scriptRef.onlineExpGained += expGain;
|
||||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4994,7 +4994,7 @@ export interface NS {
|
|||||||
*
|
*
|
||||||
* @param pid - Optional. PID of the script having its tail closed. If omitted, the current script is used.
|
* @param pid - Optional. PID of the script having its tail closed. If omitted, the current script is used.
|
||||||
*/
|
*/
|
||||||
closeTail(pid?: number): void;
|
closeTail(pid?: number): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the list of servers connected to a server.
|
* Get the list of servers connected to a server.
|
||||||
|
@ -255,14 +255,14 @@ function LogWindow(props: IProps): React.ReactElement {
|
|||||||
minHeight: `${minConstraints[1]}px`,
|
minHeight: `${minConstraints[1]}px`,
|
||||||
...(minimized
|
...(minimized
|
||||||
? {
|
? {
|
||||||
border: "none",
|
border: "none",
|
||||||
margin: 0,
|
margin: 0,
|
||||||
maxHeight: 0,
|
maxHeight: 0,
|
||||||
padding: 0,
|
padding: 0,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
border: `1px solid ${Settings.theme.welllight}`,
|
border: `1px solid ${Settings.theme.welllight}`,
|
||||||
}),
|
}),
|
||||||
}}
|
}}
|
||||||
ref={container}
|
ref={container}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user