mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
Add owned aug and SF info to getResetInfo
This commit is contained in:
parent
83b7c380ff
commit
75579a2ff1
@ -1762,6 +1762,8 @@ export const ns: InternalAPI<NSFull> = {
|
||||
lastAugReset: Player.lastAugReset,
|
||||
lastNodeReset: Player.lastNodeReset,
|
||||
currentNode: Player.bitNodeN,
|
||||
ownedAugs: new Map(Player.augmentations.map((aug) => [aug.name, aug.level])),
|
||||
ownedSF: new Map(Player.sourceFiles),
|
||||
}),
|
||||
getFunctionRamCost: (ctx) => (_name) => {
|
||||
const name = helpers.string(ctx, "name", _name);
|
||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -74,6 +74,10 @@ interface ResetInfo {
|
||||
lastNodeReset: number;
|
||||
/** The current bitnode */
|
||||
currentNode: number;
|
||||
/** A map of owned augmentations to their levels. Keyed by the augmentation name. Map values are the augmentation level (e.g. for NeuroFlux governor). */
|
||||
ownedAugs: Map<string, number>;
|
||||
/** A map of owned SF to their levels. Keyed by the SF number. Map values are the SF level. */
|
||||
ownedSF: Map<number, number>;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
|
Loading…
Reference in New Issue
Block a user