mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
DOC: Typo in ns2 migration doc (#1528)
This commit is contained in:
parent
4d57d636af
commit
0ceb478e32
@ -61,11 +61,11 @@ export async function main(ns) {
|
||||
const moneyThresh = ns.getServerMaxMoney(target) * 0.9;
|
||||
const securityThresh = ns.getServerMinSecurityLevel(target) + 5;
|
||||
|
||||
while(true) {
|
||||
while (true) {
|
||||
if (ns.getServerSecurityLevel(target) > securityThresh) {
|
||||
await ns.weaken(target);
|
||||
} else if (ns.getServerMoneyAvailable(target) < moneyThresh) {
|
||||
await ns.grow(target):
|
||||
await ns.grow(target);
|
||||
} else {
|
||||
await ns.hack(target);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user