FEATURE: BitNode options (#1411)

This commit is contained in:
catloversg
2024-07-15 04:30:30 +07:00
committed by GitHub
parent 0e1e8a9862
commit 783120c886
71 changed files with 1315 additions and 308 deletions
+10 -2
View File
@@ -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>