mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
Began defining the Company class
This commit is contained in:
parent
6cf9339919
commit
6e0644555c
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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user