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:
Snarling
2023-04-25 05:22:36 -04:00
committed by GitHub
parent 62adaf3006
commit 6024c81113
19 changed files with 183 additions and 143 deletions
+3 -2
View File
@@ -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: [],