add info to augs

This commit is contained in:
Olivier Gagnon 2022-03-19 00:15:24 -04:00
parent fc963bb583
commit a0cf44ad6a
2 changed files with 368 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