fix broken rebase

This commit is contained in:
Snarling 2022-09-27 16:23:53 -04:00
parent 25be5c2990
commit 16fac67257
3 changed files with 3 additions and 6 deletions

@ -12,7 +12,7 @@ import { RunningScript } from "../Script/RunningScript";
import { calculateAchievements } from "../Achievements/Achievements";
import {
AugmentationStats,
Multipliers,
CrimeStats,
Singularity as ISingularity,
SourceFileLvl,
@ -168,7 +168,7 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
return aug.getCost().repCost;
},
getAugmentationStats: (ctx: NetscriptContext) =>
function (_augName: unknown): AugmentationStats {
function (_augName: unknown): Multipliers {
helpers.checkSingularityAccess(ctx);
const augName = helpers.string(ctx, "augName", _augName);
const aug = getAugmentation(ctx, augName);

@ -50,6 +50,7 @@ export abstract class Person {
regenerateHp = personMethods.regenerateHp;
queryStatFromString = personMethods.queryStatFromString;
updateSkillLevels = personMethods.updateSkillLevels;
hasAugmentation = personMethods.hasAugmentation;
calculateSkill = calculateSkill; //Class version is equal to imported version
/** Reset all multipliers to 1 */

@ -280,10 +280,6 @@ export class Sleeve extends Person {
return true;
}
hasAugmentation(aug: string): boolean {
return this.augmentations.some((a) => a.name === aug);
}
tryBuyAugmentation(aug: Augmentation): boolean {
if (!Player.canAfford(aug.baseCost)) {
return false;