Merge pull request #3617 from phyzical/hotfix/fix-augmentation-costs-rsponse

BUGFIX: getAugmentationCost response backwards
This commit is contained in:
hydroflame 2022-05-13 11:07:48 -04:00 committed by GitHub
commit e3a0ae0407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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[] {