mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Began defining the Company class
This commit is contained in:
19
src/Company.js
Normal file
19
src/Company.js
Normal file
@@ -0,0 +1,19 @@
|
||||
//Netburner Company class
|
||||
function Company() {
|
||||
this.companyName = "";
|
||||
this.companyPositions = [];
|
||||
|
||||
//Player-related properties for company
|
||||
this.isPlayerEmployed = false;
|
||||
this.playerPosition = false;
|
||||
this.playerReputation = 0; //"Reputation" within company, gain reputation by working for company
|
||||
};
|
||||
|
||||
function CompanyPosition(name, reqHack, reqStr, reqDef, reqDex, reqAgi) {
|
||||
this.positionName = name;
|
||||
this.requiredHacking = reqHack;
|
||||
this.requiredStrength = reqStr;
|
||||
this.requiredDefense = reqDef;
|
||||
this.requiredDexterity = reqDex;
|
||||
this.requiredAgility = reqAgi;
|
||||
}
|
||||
Reference in New Issue
Block a user