numCycleForGrowth() function now accoutns for BitNode growth multiplier. Cleaned up docuemntation

This commit is contained in:
danielyxie
2019-03-19 17:53:46 -07:00
parent f7fd3c859f
commit 4bdb34bc7b
6 changed files with 15 additions and 9 deletions
@@ -1,5 +1,5 @@
enableLog() Netscript Function
=============================
==============================
.. js:function:: enableLog(fn)
@@ -4,7 +4,7 @@ purchaseServer() Netscript Function
.. js:function:: purchaseServer(hostname, ram)
:param string hostname: Hostname of the purchased server
:param number ram: Amount of RAM of the purchased server. Must be a power of 2 (2, 4, 8, 16, etc.). Maximum value of getPurchasedServerMaxRam()
:param number ram: Amount of RAM of the purchased server. Must be a power of 2. Maximum value of :js:func:`getPurchasedServerMaxRam`
:RAM cost: 2.25 GB
Purchased a server with the specified hostname and amount of RAM.
@@ -1,7 +1,11 @@
workForCompany() Netscript Function
===================================
.. js:function:: workForCompany()
.. js:function:: workForCompany(companyName=lastCompany)
:param string companyName: Name of company to work for. Must be an exact match.
Optional. If not specified, this argument defaults to
the last job that you worked
If you are not in BitNode-4, then you must have Level 2 of Source-File 4 in order to use this function.