mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 19:43:49 +01:00
882 B
882 B
Home > bitburner > NS > getHacknetMultipliers
NS.getHacknetMultipliers() method
Get hacknet related multipliers.
Signature:
getHacknetMultipliers(): HacknetMultipliers;
Returns:
Object containing the Player’s hacknet related multipliers.
Remarks
RAM cost: 0.25 GB
Returns an object containing the Player’s hacknet related multipliers. These multipliers are returned in fractional forms, not percentages (e.g. 1.5 instead of 150%).
Example
const mults = ns.getHacknetMultipliers();
ns.tprint(`production: ${mults.production}`);
ns.tprint(`purchaseCost: ${mults.purchaseCost}`);