getCharacterInformation() Singularity fn now returns multiplier information

This commit is contained in:
danielyxie 2018-10-26 12:37:28 -05:00
parent 9b8701d7d3
commit 762726bf53
2 changed files with 56 additions and 20 deletions

@ -162,24 +162,43 @@ getCharacterInformation
Returns an object with various information about your character. The object has the following properties::
{
bitnode: Current BitNode number
company: Name of company
jobTitle: Name of job
city: Name of city you are currently in
factions: Array of factions you are currently a member of
tor: Boolean indicating whether or not you have a tor router
bitnode: Current BitNode number
city: Name of city you are currently in
company: Name of company
factions: Array of factions you are currently a member of
jobTitle: Name of job
tor: Boolean indicating whether or not you have a tor router
//The following apply to when the character is performing
//some type of working action, such as working for a company/faction
timeWorked: Timed worked in ms
workHackExpGain: Hacking experience earned so far from work
workStrExpGain: Str experience earned so far from work
workDefExpGain: Def experience earned so far from work
workDexExpGain: Dex experience earned so far from work
workAgiExpGain: Agi experience earned so far from work
workChaExpGain: Cha experience earned so far from work
workRepGain: Reputation earned so far from work, if applicable
workMoneyGain: Money earned so far from work, if applicable
// The following is an object with many of the player's multipliers from Augmentations/Source Files
mult: {
agility: Agility stat
agilityExp: Agility exp
companyRep: Company reputation
crimeMoney: Money earned from crimes
crimeSuccess: Crime success chance
defense: Defense stat
defenseExp: Defense exp
dexterity: Dexterity stat
dexterityExp: Dexterity exp
factionRep: Faction reputation
hacking: Hacking stat
hackingExp: Hacking exp
strength: Strength stat
strengthExp: Strength exp
workMoney: Money earned from jobs
},
// The following apply only to when the character is performing
// some type of working action, such as working for a company/faction
timeWorked: Timed worked in ms
workHackExpGain: Hacking experience earned so far from work
workStrExpGain: Str experience earned so far from work
workDefExpGain: Def experience earned so far from work
workDexExpGain: Dex experience earned so far from work
workAgiExpGain: Agi experience earned so far from work
workChaExpGain: Cha experience earned so far from work
workRepGain: Reputation earned so far from work, if applicable
workMoneyGain: Money earned so far from work, if applicable
}
isBusy

@ -2680,12 +2680,29 @@ function NetscriptFunctions(workerScript) {
}
return {
bitnode: Player.bitNodeN,
company: Player.companyName,
jobTitle: companyPositionTitle,
city: Player.city,
company: Player.companyName,
factions: Player.factions.slice(),
tor: SpecialServerIps.hasOwnProperty("Darkweb Server"),
jobTitle: companyPositionTitle,
mults: {
agility: Player.agility_mult,
agilityExp: Player.agility_exp_mult,
companyRep: Player.company_rep_mult,
crimeMoney: Player.crime_money_mult,
crimeSuccess: Player.crime_success_mult,
defense: Player.defense_mult,
defenseExp: Player.defense_exp_mult,
dexterity: Player.dexterity_mult,
dexterityExp: Player.dexterity_exp_mult,
factionRep: Player.faction_rep_mult,
hacking: Player.hacking_mult,
hackingExp: Player.hacking_exp_mult,
strength: Player.strength_mult,
strengthExp: Player.strength_exp_mult,
workMoney: Player.work_money_mult,
},
timeWorked: Player.timeWorked,
tor: SpecialServerIps.hasOwnProperty("Darkweb Server"),
workHackExpGain: Player.workHackExpGained,
workStrExpGain: Player.workStrExpGained,
workDefExpGain: Player.workDefExpGained,