bitburner-src/src/PersonObjects/Grafting/CraftableAugmentation.ts
2022-03-19 11:03:18 -05:00

27 lines
648 B
TypeScript

import { Augmentation } from "../../Augmentation/Augmentation";
import { CONSTANTS } from "../../Constants";
export interface IConstructorParams {
augmentation: Augmentation;
readonly cost: number;
readonly time: number;
}
export class CraftableAugmentation {
// The augmentation that this craftable corresponds to
augmentation: Augmentation;
constructor(augmentation: Augmentation) {
this.augmentation = augmentation;
}
get cost(): number {
return this.augmentation.startingCost * CONSTANTS.AugmentationCraftingCostMult;
}
get time(): number {
// CONSTANTS.AugmentationCraftingTimeMult
return 15000;
}
}