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

@ -163,14 +163,33 @@ getCharacterInformation
{ {
bitnode: Current BitNode number bitnode: Current BitNode number
company: Name of company
jobTitle: Name of job
city: Name of city you are currently in city: Name of city you are currently in
company: Name of company
factions: Array of factions you are currently a member of 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 tor: Boolean indicating whether or not you have a tor router
//The following apply to when the character is performing // The following is an object with many of the player's multipliers from Augmentations/Source Files
//some type of working action, such as working for a company/faction 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 timeWorked: Timed worked in ms
workHackExpGain: Hacking experience earned so far from work workHackExpGain: Hacking experience earned so far from work
workStrExpGain: Str experience earned so far from work workStrExpGain: Str experience earned so far from work

@ -2680,12 +2680,29 @@ function NetscriptFunctions(workerScript) {
} }
return { return {
bitnode: Player.bitNodeN, bitnode: Player.bitNodeN,
company: Player.companyName,
jobTitle: companyPositionTitle,
city: Player.city, city: Player.city,
company: Player.companyName,
factions: Player.factions.slice(), 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, timeWorked: Player.timeWorked,
tor: SpecialServerIps.hasOwnProperty("Darkweb Server"),
workHackExpGain: Player.workHackExpGained, workHackExpGain: Player.workHackExpGained,
workStrExpGain: Player.workStrExpGained, workStrExpGain: Player.workStrExpGained,
workDefExpGain: Player.workDefExpGained, workDefExpGain: Player.workDefExpGained,