mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-03 13:03:48 +01:00
more fixes
This commit is contained in:
parent
3f63d91448
commit
4ec14460b6
@ -247,5 +247,11 @@ export const CONSTANTS: IMap<any> = {
|
||||
Misc.
|
||||
* ls now correctly lists all files.
|
||||
* importing auto save+reloads (@Dawe)
|
||||
* Fix a bug where .fconf could not be created
|
||||
* Fix formatting inconsistencies for some logs of netscript functions.
|
||||
* Fix a bug where Cashroot starter kit would appear as [object Object] in
|
||||
confirmation dialog.
|
||||
* Fix some ram not displayed as 0.00GB
|
||||
* Fix error message throw undefined variable error
|
||||
`,
|
||||
}
|
@ -114,9 +114,13 @@ export function purchaseAugmentationBoxCreate(aug, fac) {
|
||||
yesNoBoxClose();
|
||||
});
|
||||
|
||||
let content = (<div dangerouslySetInnerHTML={{__html: aug.info}}></div>);
|
||||
if(typeof aug.info !== 'string') {
|
||||
content = <div>{aug.info}</div>
|
||||
}
|
||||
yesNoBoxCreate(<>
|
||||
<h2>{aug.name}</h2><br />
|
||||
<div dangerouslySetInnerHTML={{__html: aug.info}}></div><br /><br />
|
||||
{content}<br /><br />
|
||||
<br />Would you like to purchase the {aug.name} Augmentation for
|
||||
{Money(aug.baseCost * factionInfo.augmentationPriceMult)}?
|
||||
</>);
|
||||
|
@ -226,8 +226,8 @@ function NetscriptFunctions(workerScript) {
|
||||
"Dynamic RAM usage calculated to be greater than initial RAM usage on fn: " + fnName +
|
||||
". This is probably because you somehow circumvented the static RAM " +
|
||||
"calculation.<br><br>Please don't do that :(<br><br>" +
|
||||
"Dynamic RAM Usage: " + workerScript.dynamicRamUsage + "<br>" +
|
||||
"Static RAM Usage: " + workerScript.ramUsage);
|
||||
"Dynamic RAM Usage: " + numeralWrapper.formatRAM(workerScript.dynamicRamUsage) + "<br>" +
|
||||
"Static RAM Usage: " + numeralWrapper.formatRAM(workerScript.ramUsage));
|
||||
}
|
||||
};
|
||||
|
||||
@ -1120,7 +1120,7 @@ function NetscriptFunctions(workerScript) {
|
||||
throw makeRuntimeErrorMsg("run", "Usage: run(scriptname, [numThreads], [arg1], [arg2]...)");
|
||||
}
|
||||
if (isNaN(threads) || threads <= 0) {
|
||||
throw makeRuntimeErrorMsg("run", `Invalid thread count. Must be numeric and > 0, is ${thread}`);
|
||||
throw makeRuntimeErrorMsg("run", `Invalid thread count. Must be numeric and > 0, is ${threads}`);
|
||||
}
|
||||
var argsForNewScript = [];
|
||||
for (var i = 2; i < arguments.length; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user