This commit is contained in:
Olivier Gagnon
2022-07-15 01:58:00 -04:00
parent 4bee746576
commit 1d4d86719e
2 changed files with 5 additions and 9 deletions
+4 -2
View File
@@ -17,6 +17,8 @@ import {
GangMemberAscension,
EquipmentStats,
GangTaskStats,
GangTerritory,
GangOtherInfoObject,
} from "../ScriptEditor/NetscriptDefinitions";
import { InternalAPI, NetscriptContext } from "../Netscript/APIWrapper";
@@ -91,7 +93,7 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript): Inte
},
getOtherGangInformation: (ctx: NetscriptContext) => (): GangOtherInfo => {
checkGangApiAccess(ctx);
const cpy: any = {};
const cpy: Record<string, GangOtherInfoObject> = {};
for (const gang of Object.keys(AllGangs)) {
cpy[gang] = Object.assign({}, AllGangs[gang]);
}
@@ -232,7 +234,7 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript): Inte
},
getEquipmentCost:
(ctx: NetscriptContext) =>
(_equipName: any): number => {
(_equipName: unknown): number => {
const equipName = ctx.helper.string("equipName", _equipName);
checkGangApiAccess(ctx);
const gang = player.gang;