mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
NETSCRIPT: add ns.getResetInfo(#490)
* Move lastAugReset and lastNodeReset back to main API under getResetInfo, also included currentNode. * The associated properties are deprecated on getPlayer()
This commit is contained in:
@@ -87,15 +87,16 @@ export function NetscriptFormulas(): InternalAPI<IFormulas> {
|
||||
serverGrowth: 0,
|
||||
}),
|
||||
mockPlayer: () => (): IPlayer => ({
|
||||
// Person
|
||||
hp: { current: 0, max: 0 },
|
||||
skills: { hacking: 0, strength: 0, defense: 0, dexterity: 0, agility: 0, charisma: 0, intelligence: 0 },
|
||||
exp: { hacking: 0, strength: 0, defense: 0, dexterity: 0, agility: 0, charisma: 0, intelligence: 0 },
|
||||
mults: defaultMultipliers(),
|
||||
city: CityName.Sector12,
|
||||
// Player-specific
|
||||
numPeopleKilled: 0,
|
||||
money: 0,
|
||||
city: CityName.Sector12,
|
||||
location: LocationName.TravelAgency,
|
||||
bitNodeN: 0,
|
||||
totalPlaytime: 0,
|
||||
jobs: {},
|
||||
factions: [],
|
||||
|
||||
Reference in New Issue
Block a user