mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
COMPANY: Much better job location interface (#927)
This commit is contained in:
@@ -43,6 +43,20 @@ export function ServersDev(): React.ReactElement {
|
||||
}
|
||||
}
|
||||
|
||||
function backdoorServer(): void {
|
||||
const s = GetServer(server);
|
||||
if (s === null) return;
|
||||
if (!(s instanceof Server)) return;
|
||||
s.backdoorInstalled = true;
|
||||
}
|
||||
|
||||
function backdoorAllServers(): void {
|
||||
for (const s of GetAllServers()) {
|
||||
if (!(s instanceof Server)) return;
|
||||
s.backdoorInstalled = true;
|
||||
}
|
||||
}
|
||||
|
||||
function minSecurity(): void {
|
||||
const s = GetServer(server);
|
||||
if (s === null) return;
|
||||
@@ -118,6 +132,17 @@ export function ServersDev(): React.ReactElement {
|
||||
<Button onClick={rootAllServers}>Root all</Button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<Typography>Backdoor:</Typography>
|
||||
</td>
|
||||
<td>
|
||||
<Button onClick={backdoorServer}>Backdoor one</Button>
|
||||
</td>
|
||||
<td>
|
||||
<Button onClick={backdoorAllServers}>Backdoor all</Button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<Typography>Security:</Typography>
|
||||
|
||||
Reference in New Issue
Block a user