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

File diff suppressed because it is too large Load Diff