getCharacterInformation now additionally returns stat experience

This commit is contained in:
Olivier Gagnon 2021-03-07 05:01:24 -05:00
parent dc402bef68
commit c2ceaa9bdd
3 changed files with 13 additions and 0 deletions

@ -49,4 +49,10 @@ getCharacterInformation() Netscript Function
workChaExpGain: Cha experience earned so far from work workChaExpGain: Cha experience earned so far from work
workRepGain: Reputation earned so far from work, if applicable workRepGain: Reputation earned so far from work, if applicable
workMoneyGain: Money earned so far from work, if applicable workMoneyGain: Money earned so far from work, if applicable
hackingExp: Total hacking experience
strengthExp: Total strength experience
defenseExp: Total defense experience
dexterityExp: Total dexterity experience
agilityExp: Total agility experience
charismaExp: Total charisma experience
} }

@ -236,6 +236,7 @@ export let CONSTANTS: IMap<any> = {
regardless of if the player has bought augmentations or not. regardless of if the player has bought augmentations or not.
* getAugmentationStats is a new netscript function that returns the stats of * getAugmentationStats is a new netscript function that returns the stats of
an augmentation. an augmentation.
* getCharacterInformation now additionally returns exp
Misc. Misc.
* Fixed an issue where SF3 was listed as infinitly repeatable and SF12 as * Fixed an issue where SF3 was listed as infinitly repeatable and SF12 as

@ -2743,6 +2743,12 @@ function NetscriptFunctions(workerScript) {
workChaExpGain: Player.workChaExpGained, workChaExpGain: Player.workChaExpGained,
workRepGain: Player.workRepGained, workRepGain: Player.workRepGained,
workMoneyGain: Player.workMoneyGained, workMoneyGain: Player.workMoneyGained,
hackingExp: Player.hacking_exp,
strengthExp: Player.strength_exp,
defenseExp: Player.defense_exp,
dexterityExp: Player.dexterity_exp,
agilityExp: Player.agility_exp,
charismaExp: Player.charisma_exp,
}; };
}, },
isBusy: function() { isBusy: function() {