mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-14 11:43:50 +01:00
48 lines
1.6 KiB
ReStructuredText
48 lines
1.6 KiB
ReStructuredText
Netscript Gang API
|
|
==================
|
|
|
|
Netscript provides the following API for interacting with the game's Gang mechanic.
|
|
|
|
The Gang API is **not** immediately available to the player and must be unlocked
|
|
later in the game
|
|
|
|
.. warning:: This page contains spoilers for the game
|
|
|
|
The Gang mechanic and the Gang API are unlocked in BitNode-2.
|
|
|
|
**Gang API functions must be accessed through the 'gang' namespace**
|
|
|
|
In :ref:`netscript1`::
|
|
|
|
gang.getMemberNames();
|
|
gang.recruitMember("Fry");
|
|
|
|
In :ref:`netscriptjs`::
|
|
|
|
ns.gang.getMemberNames();
|
|
ns.gang.recruitMember("Fry");
|
|
|
|
.. toctree::
|
|
:caption: API Functions:
|
|
|
|
createGang() <gangapi/createGang>
|
|
inGang() <gangapi/inGang>
|
|
getMemberNames() <gangapi/getMemberNames>
|
|
getGangInformation() <gangapi/getGangInformation>
|
|
getOtherGangInformation() <gangapi/getOtherGangInformation>
|
|
getMemberInformation() <gangapi/getMemberInformation>
|
|
canRecruitMember() <gangapi/canRecruitMember>
|
|
recruitMember() <gangapi/recruitMember>
|
|
getTaskNames() <gangapi/getTaskNames>
|
|
setMemberTask() <gangapi/setMemberTask>
|
|
getTaskStats() <gangapi/getTaskStats>
|
|
getEquipmentNames() <gangapi/getEquipmentNames>
|
|
getEquipmentCost() <gangapi/getEquipmentCost>
|
|
getEquipmentType() <gangapi/getEquipmentType>
|
|
getEquipmentStats() <gangapi/getEquipmentStats>
|
|
purchaseEquipment() <gangapi/purchaseEquipment>
|
|
ascendMember() <gangapi/ascendMember>
|
|
setTerritoryWarfare() <gangapi/setTerritoryWarfare>
|
|
getChanceToWinClash() <gangapi/getChanceToWinClash>
|
|
getBonusTime() <gangapi/getBonusTime>
|