mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 18:23:54 +01:00
Merge pull request #3915 from danielyxie/dev
Fix getInfiltrationLocations
This commit is contained in:
commit
b33a878ccc
4
dist/main.bundle.js
vendored
4
dist/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/main.bundle.js.map
vendored
2
dist/main.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
@ -252,7 +252,6 @@ export class Gang implements IGang {
|
|||||||
const total = Object.values(AllGangs)
|
const total = Object.values(AllGangs)
|
||||||
.map((g) => g.territory)
|
.map((g) => g.territory)
|
||||||
.reduce((p, c) => p + c, 0);
|
.reduce((p, c) => p + c, 0);
|
||||||
console.log(total);
|
|
||||||
Object.values(AllGangs).forEach((g) => (g.territory /= total));
|
Object.values(AllGangs).forEach((g) => (g.territory /= total));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ export function NetscriptInfiltration(player: IPlayer): InternalAPI<IInfiltratio
|
|||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
getPossibleLocations: () => (): string[] => {
|
getPossibleLocations: () => (): string[] => {
|
||||||
return getLocationsWithInfiltrations.map((l) => l + "");
|
return getLocationsWithInfiltrations.map((l) => l.name);
|
||||||
},
|
},
|
||||||
getInfiltration:
|
getInfiltration:
|
||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user