From 10c67ab363be8e1d34e7d4c7915f279e824de6f0 Mon Sep 17 00:00:00 2001 From: phyzical Date: Fri, 6 May 2022 16:35:07 +0800 Subject: [PATCH] refactor resulted in it being backwards --- src/NetscriptFunctions/Singularity.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index 1f7bf1c86..dece43d11 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -123,7 +123,8 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript _ctx.helper.checkSingularityAccess(); const augName = _ctx.helper.string("augName", _augName); const aug = getAugmentation(_ctx, augName); - return [aug.getCost(player).moneyCost, aug.getCost(player).repCost]; + const costs = aug.getCost(player); + return [costs.repCost, costs.moneyCost]; }, getAugmentationPrereq: (_ctx: NetscriptContext) => function (_augName: unknown): string[] {