Merge pull request #3179 from danielyxie/unique

add info to augs
This commit is contained in:
hydroflame 2022-03-19 00:18:00 -04:00 committed by GitHub
commit adf2615784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 360 additions and 676 deletions

@ -18,6 +18,7 @@ export interface IConstructorParams {
name: string;
prereqs?: string[];
repCost: number;
factions: string[];
hacking_mult?: number;
strength_mult?: number;
@ -393,12 +394,16 @@ export class Augmentation {
// Initial cost. Doesn't change when you purchase multiple Augmentation
startingCost = 0;
// Factions that offer this aug.
factions: string[] = [];
constructor(
params: IConstructorParams = {
info: "",
moneyCost: 0,
name: "",
repCost: 0,
factions: [],
},
) {
this.name = params.name;
@ -408,6 +413,7 @@ export class Augmentation {
this.baseRepRequirement = params.repCost * BitNodeMultipliers.AugmentationRepCost;
this.baseCost = params.moneyCost * BitNodeMultipliers.AugmentationMoneyCost;
this.startingCost = this.baseCost;
this.factions = params.factions;
if (params.isSpecial) {
this.isSpecial = true;

File diff suppressed because it is too large Load Diff