In the Gang Mechanic, added ability to see your chance to win clash with other gangs. rm() now takes an optional parameter for server

This commit is contained in:
danielyxie
2018-11-13 22:05:51 -08:00
parent 8778e835e0
commit 93f241029a
6 changed files with 60 additions and 36 deletions
+3 -2
View File
@@ -951,9 +951,10 @@ getPortHandle
rm
^^
.. js:function:: rm(fn)
.. js:function:: rm(fn[, hostname/ip=current server])
:param string fn: Filename of file to remove. Must include the extension
:param string hostname/ip: Hostname or IP Address of the server on which to delete the file. Optional. Defaults to current server
:returns: True if it successfully deletes the file, and false otherwise
:RAM cost: 1 GB
@@ -1011,7 +1012,7 @@ getScriptRam
.. js:function:: getScriptRam(scriptname[, hostname/ip])
:param string scriptname: Filename of script. This is case-sensitive.
:param string hostname/ip: Hostname or IP of target server the script is located on. This is optional, If it is not specified then the function will se the current server as the target server.
:param string hostname/ip: Hostname or IP of target server the script is located on. This is optional, If it is not specified then the function will set the current server as the target server.
:RAM cost: 0.1 GB
Returns the amount of RAM required to run the specified script on the target server. Returns