mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 06:37:49 +02:00
FEATURE: BitNode options (#1411)
This commit is contained in:
@@ -32,12 +32,18 @@ export function SourceFilesDev({ parentRerender }: { parentRerender: () => void
|
||||
}
|
||||
if (sfLvl === 0) {
|
||||
Player.sourceFiles.delete(sfN);
|
||||
if (sfN === 10) Sleeve.recalculateNumOwned();
|
||||
Player.bitNodeOptions.sourceFileOverrides.delete(sfN);
|
||||
if (sfN === 10) {
|
||||
Sleeve.recalculateNumOwned();
|
||||
}
|
||||
parentRerender();
|
||||
return;
|
||||
}
|
||||
Player.sourceFiles.set(sfN, sfLvl);
|
||||
if (sfN === 10) Sleeve.recalculateNumOwned();
|
||||
Player.bitNodeOptions.sourceFileOverrides.set(sfN, sfLvl);
|
||||
if (sfN === 10) {
|
||||
Sleeve.recalculateNumOwned();
|
||||
}
|
||||
parentRerender();
|
||||
},
|
||||
[parentRerender],
|
||||
@@ -113,6 +119,8 @@ export function SourceFilesDev({ parentRerender }: { parentRerender: () => void
|
||||
<Typography>Source-Files</Typography>
|
||||
</AccordionSummary>
|
||||
<AccordionDetails>
|
||||
<Typography>Note: This tool sets both the owned level and the overridden level.</Typography>
|
||||
<br />
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user