mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
e572c6dad8
* Hash upgrades and Bladeburner skills can now be clicked to copy to clipboard * Aug purchase confirmation popup displays money in 0.000a format * Character now displays hacknet server info properly * Character,Info now displays hacknet server info correctly. * Formulas (#825) Formulas API v0.1 * Make all money the same color, same for reputation, format all numbers consistently. * rename a lot of the formulas function to no longer contain calculate * added hacking related formulas * removed unused variable * v0.51.0
61 lines
2.3 KiB
ReStructuredText
61 lines
2.3 KiB
ReStructuredText
.. _netscriptformulas:
|
|
|
|
Netscript Formulas Functions
|
|
============================
|
|
|
|
.. warning:: This page contains spoilers for the game.
|
|
|
|
The formulas API allow you to gain insight into the inner workings of the game.
|
|
These functions will allow you to make more informed decision.
|
|
|
|
All of these function cost 0 GB of ram to use. All these function require
|
|
Source-File 5-1 but some additionally need another source file level 1 to use.
|
|
|
|
|
|
basic formulas
|
|
--------------
|
|
|
|
These functions are under the ``formulas.basic.`` name space and available as
|
|
soon as you acquire Source-File 5-1
|
|
|
|
.. toctree::
|
|
calculateSkill() <formulasapi/basic/calculateSkill>
|
|
calculateExp() <formulasapi/basic/calculateExp>
|
|
growTime() <formulasapi/basic/growTime>
|
|
hackTime() <formulasapi/basic/hackTime>
|
|
weakenTime() <formulasapi/basic/weakenTime>
|
|
growPercent() <formulasapi/basic/growPercent>
|
|
hackPercent() <formulasapi/basic/hackPercent>
|
|
hackChance() <formulasapi/basic/hackChance>
|
|
hackExp() <formulasapi/basic/hackExp>
|
|
|
|
|
|
hacknetNodes formulas
|
|
---------------------
|
|
|
|
These functions are under the ``formulas.hacknetNodes.`` namespace and available as
|
|
soon as you acquire Source-File 5-1.
|
|
|
|
.. toctree::
|
|
hacknetNodeCost() <formulasapi/hacknetNodes/hacknetNodeCost>
|
|
moneyGainRate() <formulasapi/hacknetNodes/moneyGainRate>
|
|
levelUpgradeCost() <formulasapi/hacknetNodes/levelUpgradeCost>
|
|
ramUpgradeCost() <formulasapi/hacknetNodes/ramUpgradeCost>
|
|
coreUpgradeCost() <formulasapi/hacknetNodes/coreUpgradeCost>
|
|
constants() <formulasapi/hacknetNodes/constants>
|
|
|
|
hacknetServers formulas
|
|
-----------------------
|
|
|
|
These functions are under the ``formulas.hacknetServers.`` namespace.
|
|
These functions require Source-File 5-1 and Source-File 9-1 to be invoked.
|
|
|
|
.. toctree::
|
|
hacknetServerCost() <formulasapi/hacknetServers/hacknetServerCost>
|
|
hashGainRate() <formulasapi/hacknetServers/hashGainRate>
|
|
levelUpgradeCost() <formulasapi/hacknetServers/levelUpgradeCost>
|
|
ramUpgradeCost() <formulasapi/hacknetServers/ramUpgradeCost>
|
|
coreUpgradeCost() <formulasapi/hacknetServers/coreUpgradeCost>
|
|
cacheUpgradeCost() <formulasapi/hacknetServers/cacheUpgradeCost>
|
|
hashUpgradeCost() <formulasapi/hacknetServers/hashUpgradeCost>
|
|
constants() <formulasapi/hacknetServers/constants> |