Added functions to create gang

This commit is contained in:
Olivier Gagnon
2021-06-12 04:47:03 -04:00
parent 9996232751
commit d6a7471e0b
5 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
createGang() Netscript Function
======================================
.. js:function:: createGang(faction)
:RAM cost: 1 GB
:param string faction: Name of faction
:returns: ``true`` if a Gang was created with that faction.
Creates a Gang with that faction. You need to have access to Gangs, the
faction must be one of the approved gang factions, and you must be a member
of that faction for the creation to be successful.

View File

@@ -0,0 +1,7 @@
inGang() Netscript Function
======================================
.. js:function:: inGang()
:RAM cost: 1 GB
:returns: ``true`` if the player is already in a gang.

View File

@@ -25,6 +25,8 @@ In :ref:`netscriptjs`::
.. toctree::
:caption: API Functions:
createGang() <gangapi/createGang>
inGang() <gangapi/inGang>
getMemberNames() <gangapi/getMemberNames>
getGangInformation() <gangapi/getGangInformation>
getOtherGangInformation() <gangapi/getOtherGangInformation>