Merge pull request #3915 from danielyxie/dev

Fix getInfiltrationLocations
This commit is contained in:
hydroflame 2022-07-16 17:26:12 -04:00 committed by GitHub
commit b33a878ccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

4
dist/main.bundle.js vendored

File diff suppressed because one or more lines are too long

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) =>