mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
v1.0.2 part 1
This commit is contained in:
parent
762b5b44aa
commit
a4a931dad7
@ -115,8 +115,8 @@ export const CONSTANTS: {
|
|||||||
TotalNumBitNodes: number;
|
TotalNumBitNodes: number;
|
||||||
LatestUpdate: string;
|
LatestUpdate: string;
|
||||||
} = {
|
} = {
|
||||||
VersionString: "1.0.1",
|
VersionString: "1.0.2",
|
||||||
VersionNumber: 4,
|
VersionNumber: 5,
|
||||||
|
|
||||||
// Speed (in ms) at which the main loop is updated
|
// Speed (in ms) at which the main loop is updated
|
||||||
_idleSpeed: 200,
|
_idleSpeed: 200,
|
||||||
@ -283,55 +283,17 @@ export const CONSTANTS: {
|
|||||||
TotalNumBitNodes: 24,
|
TotalNumBitNodes: 24,
|
||||||
|
|
||||||
LatestUpdate: `
|
LatestUpdate: `
|
||||||
v1.0.1 - 2021-11-17 New documentation (hydroflame)
|
v1.0.2 - 2021-11-17 It's the little things (hydroflame)
|
||||||
--------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
|
||||||
** Documentation **
|
** Breaking (very small I promise!) **
|
||||||
|
|
||||||
* The new documentation for the netscript API is available at
|
* buy / sell now return getAskPrice / getBidPrice instead of just price.
|
||||||
https://github.com/danielyxie/bitburner/blob/dev/markdown/bitburner.ns.md
|
This should help solve some inconsistencies.
|
||||||
This documentation is used in-game to validate the code, in-editor to autocomplete, and
|
|
||||||
for users to reference. This is a huge quality of life improvements for me.
|
|
||||||
|
|
||||||
** Reputation **
|
|
||||||
|
|
||||||
* Fixed favor not affecting faction work reputation gain (Yeah, I know right?)
|
|
||||||
|
|
||||||
** Hacknet **
|
|
||||||
|
|
||||||
* Servers are now considerd "purchasedByPlayers"
|
|
||||||
|
|
||||||
** Script Editor **
|
|
||||||
|
|
||||||
* solarized themes now work.
|
|
||||||
|
|
||||||
** Corporation **
|
|
||||||
|
|
||||||
* Dividends are now much more taxed.
|
|
||||||
* The 2 upgrades that reduced taxes are now much stronger.
|
|
||||||
|
|
||||||
** Misc. **
|
** Misc. **
|
||||||
|
|
||||||
* Starting / Stopping scripts on hashnet servers immediately updates their hash rate (instead of on the next tick)
|
* documentation for scp not say string | string[]
|
||||||
* Hacknet has tooltip showing what the result of the upgrade would be.
|
|
||||||
* Augmentations page displayes current price multiplier as well as explains the mechanic.
|
|
||||||
* Terminal now is 25x stronger.
|
|
||||||
* Tail boxes use pre-wrap for it's lines.
|
|
||||||
* Tail boxes allow you to rerun dead scripts.
|
|
||||||
* Tail boxes can no longer open the same one twice.
|
|
||||||
* Terminal now autocompletes through aliases.
|
|
||||||
* Make alter reality harder.
|
|
||||||
* Fix bladeburner cancelling actions when manually starting anything with Simulacrum.
|
|
||||||
* Buying hash upgrade to increase uni class or gym training will apply to current class.
|
|
||||||
* Internally the game no longer uses the decimal library.
|
|
||||||
* Fix an issue where 'download *' would generate weird windows files.
|
|
||||||
* Timestamps can be set to any format in the options.
|
|
||||||
* Fix typo in documentation share popup.
|
|
||||||
* Remove bunch of debug log.
|
|
||||||
* Fix typo in corporation handbook literature.
|
|
||||||
* Fix typo in documentation
|
|
||||||
* Fix duplicate SF -1 exploit. (Yeah, an exploit of exploits, now were meta)
|
|
||||||
* Fix offline hacking earning being attributed to hacknet.
|
|
||||||
* nerf noodle bar
|
* nerf noodle bar
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
|
@ -127,7 +127,7 @@ export function NetscriptStockMarket(player: IPlayer, workerScript: WorkerScript
|
|||||||
checkTixApiAccess("buy");
|
checkTixApiAccess("buy");
|
||||||
const stock = getStockFromSymbol(symbol, "buy");
|
const stock = getStockFromSymbol(symbol, "buy");
|
||||||
const res = buyStock(stock, shares, workerScript, {});
|
const res = buyStock(stock, shares, workerScript, {});
|
||||||
return res ? stock.price : 0;
|
return res ? stock.getAskPrice() : 0;
|
||||||
},
|
},
|
||||||
sell: function (symbol: any, shares: any): any {
|
sell: function (symbol: any, shares: any): any {
|
||||||
helper.updateDynamicRam("sell", getRamCost("stock", "sell"));
|
helper.updateDynamicRam("sell", getRamCost("stock", "sell"));
|
||||||
@ -135,7 +135,7 @@ export function NetscriptStockMarket(player: IPlayer, workerScript: WorkerScript
|
|||||||
const stock = getStockFromSymbol(symbol, "sell");
|
const stock = getStockFromSymbol(symbol, "sell");
|
||||||
const res = sellStock(stock, shares, workerScript, {});
|
const res = sellStock(stock, shares, workerScript, {});
|
||||||
|
|
||||||
return res ? stock.price : 0;
|
return res ? stock.getBidPrice() : 0;
|
||||||
},
|
},
|
||||||
short: function (symbol: any, shares: any): any {
|
short: function (symbol: any, shares: any): any {
|
||||||
helper.updateDynamicRam("short", getRamCost("stock", "short"));
|
helper.updateDynamicRam("short", getRamCost("stock", "short"));
|
||||||
|
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4069,12 +4069,7 @@ export interface NS extends Singularity {
|
|||||||
* @param destination - Host of the destination server, which is the server to which the file will be copied.
|
* @param destination - Host of the destination server, which is the server to which the file will be copied.
|
||||||
* @returns True if the script/literature file is successfully copied over and false otherwise. If the files argument is an array then this function will return true if at least one of the files in the array is successfully copied.
|
* @returns True if the script/literature file is successfully copied over and false otherwise. If the files argument is an array then this function will return true if at least one of the files in the array is successfully copied.
|
||||||
*/
|
*/
|
||||||
scp(
|
scp(files: string | string[], source: string, destination: string): Promise<boolean>;
|
||||||
files: string[],
|
|
||||||
source: string,
|
|
||||||
// tslint:disable-next-line:unified-signatures
|
|
||||||
destination: string,
|
|
||||||
): Promise<boolean>;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List files on a server.
|
* List files on a server.
|
||||||
|
@ -493,6 +493,7 @@ export function GameOptionsRoot(props: IProps): React.ReactElement {
|
|||||||
}}
|
}}
|
||||||
value={timestampFormat}
|
value={timestampFormat}
|
||||||
onChange={handleTimestampFormatChange}
|
onChange={handleTimestampFormatChange}
|
||||||
|
placeholder="yyyy-MM-dd hh:mm:ss"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
Loading…
Reference in New Issue
Block a user