mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
fix broken rebase
This commit is contained in:
parent
25be5c2990
commit
16fac67257
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user