mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 06:02:26 +01:00
little more ts
This commit is contained in:
parent
9f6da01ea1
commit
7927e2bfe7
@ -1,16 +1,27 @@
|
|||||||
//Contains the "information" property for all the Factions, which is just a description
|
//Contains the "information" property for all the Factions, which is just a description
|
||||||
//of each faction
|
//of each faction
|
||||||
function FactionInfo(infoText, enemies, offerHackingMission, offerHackingWork, offerFieldWork, offerSecurityWork) {
|
class FactionInfo {
|
||||||
this.infoText = infoText;
|
infoText: string;
|
||||||
this.enemies = enemies;
|
enemies: string[];
|
||||||
this.offerHackingMission = offerHackingMission;
|
offerHackingMission: boolean;
|
||||||
this.offerHackingWork = offerHackingWork;
|
offerHackingWork: boolean;
|
||||||
this.offerFieldWork = offerFieldWork;
|
offerFieldWork: boolean;
|
||||||
this.offerSecurityWork = offerSecurityWork;
|
offerSecurityWork: boolean;
|
||||||
|
augmentationPriceMult: number;
|
||||||
|
augmentationRepRequirementMult: number;
|
||||||
|
|
||||||
// these are always all 1 for now.
|
constructor(infoText: string, enemies: string[], offerHackingMission: boolean, offerHackingWork: boolean, offerFieldWork: boolean, offerSecurityWork: boolean) {
|
||||||
this.augmentationPriceMult = 1;
|
this.infoText = infoText;
|
||||||
this.augmentationRepRequirementMult = 1;
|
this.enemies = enemies;
|
||||||
|
this.offerHackingMission = offerHackingMission;
|
||||||
|
this.offerHackingWork = offerHackingWork;
|
||||||
|
this.offerFieldWork = offerFieldWork;
|
||||||
|
this.offerSecurityWork = offerSecurityWork;
|
||||||
|
|
||||||
|
// these are always all 1 for now.
|
||||||
|
this.augmentationPriceMult = 1;
|
||||||
|
this.augmentationRepRequirementMult = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const FactionInfos = {
|
const FactionInfos = {
|
Loading…
Reference in New Issue
Block a user