mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
ae15914efa
Unfortunately, I haven't used most of the specialty APIs yet, so I'm not intimately familiar with where their documentation might be wrong. I figured some fixes were better than no fixes, and I can always make more fixes later. Fixes #1023.
18 lines
681 B
ReStructuredText
18 lines
681 B
ReStructuredText
getScriptExpGain() Netscript Function
|
|
=====================================
|
|
|
|
.. js:function:: getScriptExpGain([scriptname[, hostname[, args...]]])
|
|
|
|
:RAM cost: 0.1 GB
|
|
:param string scriptname: Filename of script.
|
|
:param string hostname: Server on which script is running.
|
|
:param args...: Arguments that the script is running with.
|
|
:returns: The amount of hacking experience the specified script generates
|
|
while online.
|
|
|
|
This function can also return the total experience gain rate of all of your
|
|
active scripts by running the function with no arguments.
|
|
|
|
.. note:: A script is uniquely identified by both its name and its
|
|
arguments.
|