mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
API: Return active SF levels in getOwnedSourceFiles and ResetInfo.ownedSF (#1761)
* DOCUMENTATION: Clarify getOwnedSourceFiles when player overrides active levels of SFs * Return Player.activeSourceFiles instead of Player.sourceFiles * Get rid of zeroes in the map
This commit is contained in:
@@ -1825,7 +1825,11 @@ export const ns: InternalAPI<NSFull> = {
|
||||
lastNodeReset: Player.lastNodeReset,
|
||||
currentNode: Player.bitNodeN,
|
||||
ownedAugs: new Map(Player.augmentations.map((aug) => [aug.name, aug.level])),
|
||||
ownedSF: new Map(Player.sourceFiles),
|
||||
ownedSF: new Map(
|
||||
[...Player.activeSourceFiles].filter(([__, activeLevel]) => {
|
||||
return activeLevel > 0;
|
||||
}),
|
||||
),
|
||||
bitNodeOptions: {
|
||||
...Player.bitNodeOptions,
|
||||
sourceFileOverrides: new Map(Player.bitNodeOptions.sourceFileOverrides),
|
||||
|
||||
Reference in New Issue
Block a user