bitburner-src/src/Player.js

57 lines
1.2 KiB
JavaScript
Raw Normal View History

//Netburner Player class
var Player = {
//Skills and stats
hacking_skill: 1,
strength: 1,
defense: 1,
dexterity: 1,
agility: 1,
//Note: "Lifetime" refers to current ascension, "total" refers to the entire game history
//Accumulative stats and skills
total_hacking: 1,
total_strength: 1,
total_defense: 1,
total_dexterity: 1,
total_agility: 1,
lifetime_hacking: 1,
lifetime_strength: 1,
lifetime_defense: 1,
lifetime_dexterity: 1,
lifetime_agility: 1,
//Experience and multipliers
hacking_exp: 0,
strength_exp: 0,
defense_exp: 0,
dexterity_exp: 0,
agility_exp: 0,
hacking_exp_mult: 1,
strength_exp_mult: 1,
defense_exp_mult: 1,
dexterity_exp_mult: 1,
agility_exp_mult: 1,
//Money
money: 0,
total_money: 0,
lifetime_money: 0,
//Starting (home) computer
2016-10-20 20:26:38 +02:00
homeComputer: new Server(),
//Servers
2016-10-20 20:26:38 +02:00
currentServer: null, //Server currently being accessed through terminal
discoveredServers: [],
purchasedServers: [],
//Achievements and achievement progress
2016-10-20 20:26:38 +02:00
init: function() {
2016-10-20 23:11:01 +02:00
Player.homeComputer.init("19.42.93.219", "home", "Home PC", true, true, true, true, 1);
Player.currentServer = Player.homeComputer;
2016-10-20 20:26:38 +02:00
}
};