mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
add info to augs
This commit is contained in:
parent
fc963bb583
commit
a0cf44ad6a
@ -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
Loading…
Reference in New Issue
Block a user