Remove some any and add getAugmentationBasePrice

This commit is contained in:
Olivier Gagnon
2022-07-20 01:20:11 -04:00
parent ceb9fa1249
commit 4518eabc29
7 changed files with 30 additions and 11 deletions
+7
View File
@@ -137,6 +137,13 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
const aug = getAugmentation(_ctx, augName);
return aug.prereqs.slice();
},
getAugmentationBasePrice: (_ctx: NetscriptContext) =>
function (_augName: unknown): number {
_ctx.helper.checkSingularityAccess();
const augName = _ctx.helper.string("augName", _augName);
const aug = getAugmentation(_ctx, augName);
return aug.baseCost * BitNodeMultipliers.AugmentationMoneyCost;
},
getAugmentationPrice: (_ctx: NetscriptContext) =>
function (_augName: unknown): number {
_ctx.helper.checkSingularityAccess();