mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a00c253dcb | ||
|
|
123628ec0b | ||
|
|
cae28e2d25 | ||
|
|
486d025572 | ||
|
|
d4816ad0c4 | ||
|
|
e7dbc08e18 | ||
|
|
0483c809ff | ||
|
|
cd972dabe3 | ||
|
|
e2a353fc8a | ||
|
|
1b8214b6fa | ||
|
|
af584e8c87 | ||
|
|
250841df66 | ||
|
|
d9aef91ea3 | ||
|
|
c285d494b9 | ||
|
|
316a1aa475 | ||
|
|
56a3660d38 | ||
|
|
e1aec379c1 | ||
|
|
381ea915f7 | ||
|
|
619db14622 | ||
|
|
84423e6309 | ||
|
|
1d2136da4b | ||
|
|
56441b8e34 | ||
|
|
5106315128 | ||
|
|
6ca7f10faf | ||
|
|
56802fc85e | ||
|
|
700583a739 | ||
|
|
a290b0bef5 | ||
|
|
79a06dd91c | ||
|
|
6cd6f28820 | ||
|
|
dabb5016fc | ||
|
|
58e38faad6 | ||
|
|
31e8ca8c8d | ||
|
|
c72519e3ea | ||
|
|
58333c1b46 | ||
|
|
f0ad090cdc | ||
|
|
4bd1fce1f6 | ||
|
|
b35e25e5dc | ||
|
|
a8bb345c88 | ||
|
|
bbe4f9c286 | ||
|
|
f9dcefd6ea | ||
|
|
44c2bab557 | ||
|
|
fbca5a4d8f | ||
|
|
c2ceaa9bdd | ||
|
|
dc402bef68 | ||
|
|
64272c99fb | ||
|
|
c8377c0bb3 | ||
|
|
4145ddad39 |
@@ -59,10 +59,16 @@
|
||||
}
|
||||
|
||||
#character-hp-wrapper { color: $my-stat-hp-color; }
|
||||
.character-hp-cell { color: $my-stat-hp-color; }
|
||||
#character-money-wrapper { color: $my-stat-money-color; }
|
||||
.character-money-cell { color: $my-stat-money-color; }
|
||||
#character-hack-wrapper { color: $my-stat-hack-color; }
|
||||
.character-hack-cell { color: $my-stat-hack-color; }
|
||||
#character-cha-wrapper { color: $my-stat-cha-color; }
|
||||
.character-cha-cell { color: $my-stat-cha-color; }
|
||||
#character-int-wrapper { color: $my-stat-int-color; }
|
||||
.character-int-cell { color: $my-stat-int-color; }
|
||||
.character-combat-cell { color: $my-stat-physical; }
|
||||
|
||||
.character-overview-btn {
|
||||
@include borderRadius(12px);
|
||||
|
||||
@@ -17,7 +17,8 @@ body {
|
||||
p,
|
||||
pre,
|
||||
h2,
|
||||
.text {
|
||||
.text,
|
||||
td {
|
||||
color: var(--my-font-color);
|
||||
}
|
||||
|
||||
@@ -79,6 +80,28 @@ a:visited {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#factions-tab {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#factions-notification {
|
||||
font-size: $defaultFontSize * 0.625;
|
||||
position: absolute; /* Position the badge within the relatively positioned button */
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#augmentations-tab {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#augmentations-notification {
|
||||
font-size: $defaultFontSize * 0.625;
|
||||
position: absolute; /* Position the badge within the relatively positioned button */
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.notification-on {
|
||||
background-color: #fa3e3e;
|
||||
color: #fff;
|
||||
@@ -336,3 +359,38 @@ a:visited {
|
||||
.smallfont {
|
||||
font-size: $defaultFontSize * 0.8125;
|
||||
}
|
||||
|
||||
|
||||
.optionCheckbox {
|
||||
filter: invert(1) sepia(1) hue-rotate(41deg) brightness(100%) saturate(10);
|
||||
margin: 5px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.optionRange {
|
||||
-webkit-appearance: none;
|
||||
background: #777;
|
||||
outline: none;
|
||||
opacity: 0.7;
|
||||
height: 10px;
|
||||
-webkit-transition: .2s;
|
||||
transition: opacity .2s;
|
||||
margin: 3px;
|
||||
}
|
||||
|
||||
|
||||
.optionRange::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: var(--my-font-color);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.optionRange::-moz-range-thumb {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: var(--my-font-color);
|
||||
cursor: pointer;
|
||||
}
|
||||
4
dist/engine.bundle.js
vendored
4
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/engineStyle.bundle.js
vendored
2
dist/engineStyle.bundle.js
vendored
@@ -1,2 +1,2 @@
|
||||
!function(n){function t(t){for(var e,i,f=t[0],c=t[1],l=t[2],p=0,s=[];p<f.length;p++)i=f[p],u[i]&&s.push(u[i][0]),u[i]=0;for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(n[e]=c[e]);for(a&&a(t);s.length;)s.shift()();return r.push.apply(r,l||[]),o()}function o(){for(var n,t=0;t<r.length;t++){for(var o=r[t],e=!0,f=1;f<o.length;f++){var c=o[f];0!==u[c]&&(e=!1)}e&&(r.splice(t--,1),n=i(i.s=o[0]))}return n}var e={},u={1:0},r=[];function i(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=n,i.c=e,i.d=function(n,t,o){i.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},i.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,t){if(1&t&&(n=i(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var e in n)i.d(o,e,function(t){return n[t]}.bind(null,e));return o},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="";var f=window.webpackJsonp=window.webpackJsonp||[],c=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var a=c;r.push([362,0]),o()}({305:function(n,t,o){},307:function(n,t,o){},309:function(n,t,o){},311:function(n,t,o){},313:function(n,t,o){},315:function(n,t,o){},317:function(n,t,o){},319:function(n,t,o){},321:function(n,t,o){},323:function(n,t,o){},325:function(n,t,o){},327:function(n,t,o){},329:function(n,t,o){},331:function(n,t,o){},333:function(n,t,o){},335:function(n,t,o){},337:function(n,t,o){},339:function(n,t,o){},341:function(n,t,o){},343:function(n,t,o){},345:function(n,t,o){},347:function(n,t,o){},349:function(n,t,o){},351:function(n,t,o){},353:function(n,t,o){},355:function(n,t,o){},357:function(n,t,o){},359:function(n,t,o){},362:function(n,t,o){"use strict";o.r(t);o(361),o(359),o(357),o(355),o(353),o(351),o(349),o(347),o(345),o(343),o(341),o(339),o(337),o(335),o(333),o(331),o(329),o(327),o(325),o(323),o(321),o(319),o(317),o(315),o(313),o(311),o(309),o(307),o(305)}});
|
||||
!function(n){function t(t){for(var e,i,f=t[0],c=t[1],l=t[2],p=0,s=[];p<f.length;p++)i=f[p],u[i]&&s.push(u[i][0]),u[i]=0;for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(n[e]=c[e]);for(a&&a(t);s.length;)s.shift()();return r.push.apply(r,l||[]),o()}function o(){for(var n,t=0;t<r.length;t++){for(var o=r[t],e=!0,f=1;f<o.length;f++){var c=o[f];0!==u[c]&&(e=!1)}e&&(r.splice(t--,1),n=i(i.s=o[0]))}return n}var e={},u={1:0},r=[];function i(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=n,i.c=e,i.d=function(n,t,o){i.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},i.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,t){if(1&t&&(n=i(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var e in n)i.d(o,e,function(t){return n[t]}.bind(null,e));return o},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="";var f=window.webpackJsonp=window.webpackJsonp||[],c=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var a=c;r.push([364,0]),o()}({307:function(n,t,o){},309:function(n,t,o){},311:function(n,t,o){},313:function(n,t,o){},315:function(n,t,o){},317:function(n,t,o){},319:function(n,t,o){},321:function(n,t,o){},323:function(n,t,o){},325:function(n,t,o){},327:function(n,t,o){},329:function(n,t,o){},331:function(n,t,o){},333:function(n,t,o){},335:function(n,t,o){},337:function(n,t,o){},339:function(n,t,o){},341:function(n,t,o){},343:function(n,t,o){},345:function(n,t,o){},347:function(n,t,o){},349:function(n,t,o){},351:function(n,t,o){},353:function(n,t,o){},355:function(n,t,o){},357:function(n,t,o){},359:function(n,t,o){},361:function(n,t,o){},364:function(n,t,o){"use strict";o.r(t);o(363),o(361),o(359),o(357),o(355),o(353),o(351),o(349),o(347),o(345),o(343),o(341),o(339),o(337),o(335),o(333),o(331),o(329),o(327),o(325),o(323),o(321),o(319),o(317),o(315),o(313),o(311),o(309),o(307)}});
|
||||
//# sourceMappingURL=engineStyle.bundle.js.map
|
||||
70
dist/engineStyle.css
vendored
70
dist/engineStyle.css
vendored
@@ -26,7 +26,8 @@ body {
|
||||
p,
|
||||
pre,
|
||||
h2,
|
||||
.text {
|
||||
.text,
|
||||
td {
|
||||
color: var(--my-font-color); }
|
||||
|
||||
h1 {
|
||||
@@ -78,6 +79,26 @@ a:visited {
|
||||
top: 0;
|
||||
right: 0; }
|
||||
|
||||
#factions-tab {
|
||||
position: relative; }
|
||||
|
||||
#factions-notification {
|
||||
font-size: 10px;
|
||||
position: absolute;
|
||||
/* Position the badge within the relatively positioned button */
|
||||
top: 0;
|
||||
right: 0; }
|
||||
|
||||
#augmentations-tab {
|
||||
position: relative; }
|
||||
|
||||
#augmentations-notification {
|
||||
font-size: 10px;
|
||||
position: absolute;
|
||||
/* Position the badge within the relatively positioned button */
|
||||
top: 0;
|
||||
right: 0; }
|
||||
|
||||
.notification-on {
|
||||
background-color: #fa3e3e;
|
||||
color: #fff;
|
||||
@@ -335,6 +356,35 @@ a:visited {
|
||||
.smallfont {
|
||||
font-size: 13px; }
|
||||
|
||||
.optionCheckbox {
|
||||
filter: invert(1) sepia(1) hue-rotate(41deg) brightness(100%) saturate(10);
|
||||
margin: 5px;
|
||||
float: right; }
|
||||
|
||||
.optionRange {
|
||||
-webkit-appearance: none;
|
||||
background: #777;
|
||||
outline: none;
|
||||
opacity: 0.7;
|
||||
height: 10px;
|
||||
-webkit-transition: .2s;
|
||||
transition: opacity .2s;
|
||||
margin: 3px; }
|
||||
|
||||
.optionRange::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: var(--my-font-color);
|
||||
cursor: pointer; }
|
||||
|
||||
.optionRange::-moz-range-thumb {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: var(--my-font-color);
|
||||
cursor: pointer; }
|
||||
|
||||
/* COLORS */
|
||||
/* Attributes */
|
||||
/* Styling for tooltip-style elements */
|
||||
@@ -684,18 +734,36 @@ button {
|
||||
#character-hp-wrapper {
|
||||
color: #dd3434; }
|
||||
|
||||
.character-hp-cell {
|
||||
color: #dd3434; }
|
||||
|
||||
#character-money-wrapper {
|
||||
color: #ffd700; }
|
||||
|
||||
.character-money-cell {
|
||||
color: #ffd700; }
|
||||
|
||||
#character-hack-wrapper {
|
||||
color: #adff2f; }
|
||||
|
||||
.character-hack-cell {
|
||||
color: #adff2f; }
|
||||
|
||||
#character-cha-wrapper {
|
||||
color: #a671d1; }
|
||||
|
||||
.character-cha-cell {
|
||||
color: #a671d1; }
|
||||
|
||||
#character-int-wrapper {
|
||||
color: #6495ed; }
|
||||
|
||||
.character-int-cell {
|
||||
color: #6495ed; }
|
||||
|
||||
.character-combat-cell {
|
||||
color: #faffdf; }
|
||||
|
||||
.character-overview-btn {
|
||||
-webkit-border-radius: 12px;
|
||||
-moz-border-radius: 12px;
|
||||
|
||||
26
dist/vendor.bundle.js
vendored
26
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
@@ -3,6 +3,80 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
v0.49.0 - 2021-03-11 Source-File -1 (hydroflame)
|
||||
-------
|
||||
|
||||
**Source-File -1**
|
||||
|
||||
* For advanced players: The game now embraces exploits and will reward
|
||||
players for doing so.
|
||||
|
||||
**Gang**
|
||||
|
||||
* ascension is less effective as the ascension multiplier goes up.
|
||||
* territory gain scales with power difference.
|
||||
|
||||
**Netscript**
|
||||
|
||||
* 'gang.getEquipmentStats' returns the stats of the equipment.
|
||||
* 'gang.getTaskStats' returns the stats of a task.
|
||||
* 'getCrimeStats' returns the stats of a crime.
|
||||
* Crashes should now print the ns stack trace.
|
||||
* Log messages are now more consistent.
|
||||
* 'softReset' now accepts a callback script like 'installAugmentations'
|
||||
|
||||
**Misc.**
|
||||
|
||||
* Minor formatting under Hacking>Active Scripts
|
||||
* option menu colors now match the rest of the game, kinda.
|
||||
|
||||
|
||||
v0.48.0 - ASCII - 2021-03-07 (hydroflame)
|
||||
-------
|
||||
|
||||
**ASCII**
|
||||
|
||||
* Travel Agency now displays a world map
|
||||
* Cities are now top view of metro station maps
|
||||
|
||||
**Netscript**
|
||||
|
||||
* 'softReset' is a new netscript function that performs a soft reset
|
||||
regardless of if the player has bought augmentations or not.
|
||||
* 'getAugmentationStats' is a new netscript function that returns the stats of
|
||||
an augmentation.
|
||||
* getCharacterInformation now additionally returns exp
|
||||
* pid resets back to 1 when installing or destroying a BitNode.
|
||||
* New '.ns' scripts start with a main function.
|
||||
* 'hacknet.maxNumNodes' returns the maximum number of hacknet nodes.
|
||||
|
||||
**Bladeburner**
|
||||
|
||||
* Current stamina will scale as max stamina increases, this prevents players
|
||||
from having very high penalty when they gain huge amount of exp at the
|
||||
start of a reset.
|
||||
|
||||
**Misc.**
|
||||
|
||||
* Fixed an issue where SF3 was listed as infinitly repeatable and SF12 as
|
||||
having a limit of 3.
|
||||
* Fixed an issue where the gang equipment screen would freeze the game if a
|
||||
script installed augmentations while it is open.
|
||||
* All BonusTime now displays in the 'H M S' format.
|
||||
* Donation textbox style updated to match the rest of the game.
|
||||
* Corporation name style updated to match the rest of the game.
|
||||
* minor formatting under Hacking>Active Scripts
|
||||
* typo in BN12 description
|
||||
* BN12 now reduces contract money
|
||||
* Character>Stats percentages are aligned, server and hacknet limit are
|
||||
displayed, if the player has SF5 the reduces stats are shown.
|
||||
* Character>Augmentations now displays by how much the player stats will
|
||||
increase.
|
||||
* Character>Augmentations has a badge indicating how many augs the player
|
||||
has bought but not installed
|
||||
* Character>Factions has a badge indicating how many factions have pending
|
||||
invites.
|
||||
|
||||
v0.47.2 - 7/15/2019
|
||||
-------------------
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ getActionAutolevel() Netscript Function
|
||||
=======================================
|
||||
|
||||
.. js:function:: getActionAutolevel(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ getActionCountRemaining() Netscript Function
|
||||
============================================
|
||||
|
||||
.. js:function:: getActionCountRemaining(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ getActionCurrentLevel() Netscript Function
|
||||
==========================================
|
||||
|
||||
.. js:function:: getActionCurrentLevel(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ getActionEstimatedSuccessChance() Netscript Function
|
||||
====================================================
|
||||
|
||||
.. js:function:: getActionEstimatedSuccessChance(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ getActionMaxLevel() Netscript Function
|
||||
======================================
|
||||
|
||||
.. js:function:: getActionMaxLevel(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ getActionRepGain() Netscript Function
|
||||
=====================================
|
||||
|
||||
.. js:function:: getActionRepGain(type, name[, level=current level])
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ getActionTime() Netscript Function
|
||||
==================================
|
||||
|
||||
.. js:function:: getActionTime(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ getBlackOpNames() Netscript Function
|
||||
====================================
|
||||
|
||||
.. js:function:: getBlackOpNames()
|
||||
|
||||
:RAM cost: 0.4 GB
|
||||
|
||||
Returns an array of strings containing the names of all Bladeburner Black Ops
|
||||
|
||||
@@ -2,6 +2,7 @@ getBlackOpRank() Netscript Function
|
||||
====================================
|
||||
|
||||
.. js:function:: getBlackOpRank(name)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string name: name of the BlackOp. Must be an exact match.
|
||||
|
||||
@@ -2,6 +2,7 @@ getBonusTime() Netscript Function
|
||||
=================================
|
||||
|
||||
.. js:function:: getBonusTime()
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
Returns the amount of accumulated "bonus time" (seconds) for the Bladeburner mechanic.
|
||||
|
||||
@@ -2,6 +2,7 @@ getCity() Netscript Function
|
||||
============================
|
||||
|
||||
.. js:function:: getCity()
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
Returns the city that the player is currently in (for Bladeburner).
|
||||
|
||||
@@ -2,6 +2,7 @@ getCityChaos() Netscript Function
|
||||
=================================
|
||||
|
||||
.. js:function:: getCityChaos(cityName)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string cityName: Name of city. Case-sensitive
|
||||
|
||||
@@ -2,6 +2,7 @@ getCityEstimatedCommunities() Netscript Function
|
||||
================================================
|
||||
|
||||
.. js:function:: getCityEstimatedCommunities(cityName)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string cityName: Name of city. Case-sensitive
|
||||
|
||||
@@ -2,6 +2,7 @@ getCityEstimatedPopulation() Netscript Function
|
||||
===============================================
|
||||
|
||||
.. js:function:: getCityEstimatedPopulation(cityName)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string cityName: Name of city. Case-sensitive
|
||||
|
||||
@@ -2,6 +2,7 @@ getContractNames() Netscript Function
|
||||
=====================================
|
||||
|
||||
.. js:function:: getContractNames()
|
||||
|
||||
:RAM cost: 0.4 GB
|
||||
|
||||
Returns an array of strings containing the names of all Bladeburner contracts
|
||||
|
||||
@@ -2,6 +2,7 @@ getCurrentAction() Netscript Function
|
||||
=====================================
|
||||
|
||||
.. js:function:: getCurrentAction()
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
Returns an object that represents the player's current Bladeburner action::
|
||||
|
||||
@@ -2,6 +2,7 @@ getGeneralActionNames() Netscript Function
|
||||
==========================================
|
||||
|
||||
.. js:function:: getGeneralActionNames()
|
||||
|
||||
:RAM cost: 0.4 GB
|
||||
|
||||
Returns an array of strings containing the names of all general Bladeburner actions
|
||||
|
||||
@@ -2,6 +2,7 @@ getOperationNames() Netscript Function
|
||||
======================================
|
||||
|
||||
.. js:function:: getOperationNames()
|
||||
|
||||
:RAM cost: 0.4 GB
|
||||
|
||||
Returns an array of strings containing the names of all Bladeburner operations
|
||||
|
||||
@@ -2,6 +2,7 @@ getRank() Netscript Function
|
||||
============================
|
||||
|
||||
.. js:function:: getRank()
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
Returns the player's Bladeburner Rank
|
||||
|
||||
@@ -2,6 +2,7 @@ getSkillLevel() Netscript Function
|
||||
==================================
|
||||
|
||||
.. js:function:: getSkillLevel(skillName="")
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string skillName: Name of skill. Case-sensitive and must be an exact match
|
||||
|
||||
@@ -2,6 +2,7 @@ getSkillNames() Netscript Function
|
||||
==================================
|
||||
|
||||
.. js:function:: getSkillNames()
|
||||
|
||||
:RAM cost: 0.4 GB
|
||||
|
||||
Returns an array of strings containing the names of all Bladeburner skills
|
||||
|
||||
@@ -2,6 +2,7 @@ getSkillPoints() Netscript Function
|
||||
===================================
|
||||
|
||||
.. js:function:: getSkillPoints()
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
Returns the number of Bladeburner skill points you have
|
||||
|
||||
@@ -2,6 +2,7 @@ getSkillUpgradeCost() Netscript Function
|
||||
========================================
|
||||
|
||||
.. js:function:: getSkillUpgradeCost(skillName="")
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string skillName: Name of skill. Case-sensitive and must be an exact match
|
||||
|
||||
@@ -2,6 +2,7 @@ getStamina() Netscript Function
|
||||
===============================
|
||||
|
||||
.. js:function:: getStamina()
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
Returns an array with two elements:
|
||||
|
||||
@@ -2,6 +2,7 @@ getTeamSize() Netscript Function
|
||||
================================
|
||||
|
||||
.. js:function:: getTeamSize(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ joinBladeburnerDivision() Netscript Function
|
||||
============================================
|
||||
|
||||
.. js:function:: joinBladeburnerDivision()
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
Attempts to join the Bladeburner division.
|
||||
|
||||
@@ -2,6 +2,7 @@ joinBladeburnerFaction() Netscript Function
|
||||
===========================================
|
||||
|
||||
.. js:function:: joinBladeburnerFaction()
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
Attempts to join the Bladeburner faction.
|
||||
|
||||
@@ -2,6 +2,7 @@ setActionAutolevel() Netscript Function
|
||||
=======================================
|
||||
|
||||
.. js:function:: setActionAutolevel(type, name, autoLevel)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ setActionLevel() Netscript Function
|
||||
===================================
|
||||
|
||||
.. js:function:: setActionLevel(type, name, level)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ setTeamSize() Netscript Function
|
||||
================================
|
||||
|
||||
.. js:function:: setTeamSize(type, name, size)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ startAction() Netscript Function
|
||||
================================
|
||||
|
||||
.. js:function:: startAction(type, name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string type: Type of action. See :ref:`bladeburner_action_types`
|
||||
|
||||
@@ -2,6 +2,7 @@ stopBladeburnerAction() Netscript Function
|
||||
==========================================
|
||||
|
||||
.. js:function:: stopBladeburnerAction()
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
Stops the current Bladeburner action
|
||||
|
||||
@@ -2,6 +2,7 @@ switchCity() Netscript Function
|
||||
===============================
|
||||
|
||||
.. js:function:: switchCity(cityName)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string cityName: Name of city
|
||||
|
||||
@@ -2,6 +2,7 @@ upgradeSkill() Netscript Function
|
||||
=================================
|
||||
|
||||
.. js:function:: upgradeSkill(skillName)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string skillName: Name of Skill to be upgraded. Case-sensitive and must be an exact match
|
||||
|
||||
@@ -3,6 +3,8 @@ ascendMember() Netscript Function
|
||||
|
||||
.. js:function:: ascendMember(name)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string name: Name of member to ascend
|
||||
|
||||
Ascend the specified Gang Member.
|
||||
@@ -20,5 +22,3 @@ ascendMember() Netscript Function
|
||||
agi: Agility multiplier gained from ascending. Decimal form
|
||||
cha: Charisma multiplier gained from ascending. Decimal form
|
||||
}
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
@@ -3,6 +3,6 @@ canRecruitMember() Netscript Function
|
||||
|
||||
.. js:function:: canRecruitMember()
|
||||
|
||||
:returns: Boolean indicating whether a member can currently be recruited
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
:returns: Boolean indicating whether a member can currently be recruited
|
||||
|
||||
@@ -3,6 +3,8 @@ getBonusTime() Netscript Function
|
||||
|
||||
.. js:function:: getBonusTime()
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
Returns the amount of accumulated "bonus time" (seconds) for the Gang mechanic.
|
||||
|
||||
"Bonus time" is accumulated when the game is offline or if the game is
|
||||
@@ -11,5 +13,3 @@ getBonusTime() Netscript Function
|
||||
"Bonus time" makes the game progress faster, up to 10x the normal speed.
|
||||
|
||||
:returns: Bonus time for the Gang mechanic in seconds
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -3,9 +3,9 @@ getChanceToWinClash() Netscript Function
|
||||
|
||||
.. js:function:: getChanceToWinClash(gangName)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string gangName: Target gang
|
||||
|
||||
Returns the chance you have to win a clash with the specified gang. The chance
|
||||
is returned in decimal form, not percentage
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ getEquipmentCost() Netscript Function
|
||||
|
||||
.. js:function:: getEquipmentCost(equipName)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string equipName: Name of equipment
|
||||
|
||||
Get the amount of money it takes to purchase a piece of Equipment or an Augmentation.
|
||||
@@ -10,5 +12,3 @@ getEquipmentCost() Netscript Function
|
||||
|
||||
:returns: Cost to purchase the specified Equipment/Augmentation (number). Infinity
|
||||
for invalid arguments
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
@@ -3,9 +3,9 @@ getEquipmentNames() Netscript Function
|
||||
|
||||
.. js:function:: getEquipmentNames()
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
Get the name of all possible equipment/upgrades you can purchase for your
|
||||
Gang Members. This includes Augmentations.
|
||||
|
||||
:returns: Array of strings of the names of all Equpiment/Augmentations
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
17
doc/source/netscript/gangapi/getEquipmentStats.rst
Normal file
17
doc/source/netscript/gangapi/getEquipmentStats.rst
Normal file
@@ -0,0 +1,17 @@
|
||||
getEquipmentStats() Netscript Function
|
||||
=====================================
|
||||
|
||||
.. js:function:: getEquipmentStats(equipName)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string equipName: Name of equipment
|
||||
|
||||
:returns: A dictionary containing the stats of the equipment.
|
||||
|
||||
Get the specified equipment stats.
|
||||
|
||||
{
|
||||
"str":1.04,
|
||||
"def":1.04
|
||||
}
|
||||
@@ -3,6 +3,8 @@ getEquipmentType() Netscript Function
|
||||
|
||||
.. js:function:: getEquipmentType(equipName)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string equipName: Name of equipment
|
||||
|
||||
Get the specified equipment type, which can be one of the following:
|
||||
@@ -14,5 +16,3 @@ getEquipmentType() Netscript Function
|
||||
* Augmentation
|
||||
|
||||
:returns: A string stating the type of the equipment
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ getGangInformation() Netscript Function
|
||||
|
||||
.. js:function:: getGangInformation()
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
Get general information about the gang
|
||||
|
||||
:returns: An object with the gang information.
|
||||
@@ -21,5 +23,3 @@ getGangInformation() Netscript Function
|
||||
wantedLevel: Gang's wanted level
|
||||
wantedLevelGainRate: Wanted level gained/lost per second (negative for losses)
|
||||
}
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
@@ -3,14 +3,14 @@ getMemberInformation() Netscript Function
|
||||
|
||||
.. js:function:: getMemberInformation(name)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string name: Name of member
|
||||
|
||||
Get stat and equipment-related information about a Gang Member
|
||||
|
||||
:returns: An object with the gang member information.
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
The object has the following structure::
|
||||
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@ getMemberNames() Netscript Function
|
||||
|
||||
.. js:function:: getMemberNames()
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
Get the names of all Gang members
|
||||
|
||||
:returns: An array of the names of all Gang members as strings
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ getOtherGangInformation() Netscript Function
|
||||
|
||||
.. js:function:: getOtherGangInformation()
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
Get territory and power information about all gangs
|
||||
|
||||
:returns: An object with information about all gangs
|
||||
@@ -24,5 +26,3 @@ getOtherGangInformation() Netscript Function
|
||||
},
|
||||
... (for all six gangs)
|
||||
}
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
@@ -3,8 +3,8 @@ getTaskNames() Netscript Function
|
||||
|
||||
.. js:function:: getTaskNames()
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
Get the name of all valid tasks that Gang members can be assigned to
|
||||
|
||||
:returns: Array of strings of all task names
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
35
doc/source/netscript/gangapi/getTaskStats.rst
Normal file
35
doc/source/netscript/gangapi/getTaskStats.rst
Normal file
@@ -0,0 +1,35 @@
|
||||
getTaskStats() Netscript Function
|
||||
======================================
|
||||
|
||||
.. js:function:: getTaskStats(taskName)
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
:param string name: Name of the task.
|
||||
|
||||
Get the stats of a gang member stats. This is typically used to evaluate
|
||||
which action should be executed next.
|
||||
|
||||
{
|
||||
name: Terrorism,
|
||||
desc: "Assign this gang member to commit acts of terrorism
|
||||
|
||||
Greatly increases respect - Greatly increases wanted level - Scales heavily with territory",
|
||||
isHacking: false,
|
||||
isCombat: true,
|
||||
baseRespect: 0.01,
|
||||
baseWanted: 6,
|
||||
baseMoney: 0,
|
||||
hackWeight: 20,
|
||||
strWeight: 20,
|
||||
defWeight: 20,
|
||||
dexWeight: 20,
|
||||
agiWeight: 0,
|
||||
chaWeight: 20,
|
||||
difficulty: 36,
|
||||
territory: {
|
||||
money: 1,
|
||||
respect: 2,
|
||||
wanted: 2
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,8 @@ purchaseEquipment() Netscript Function
|
||||
|
||||
.. js:function:: purchaseEquipment(memberName, equipName)
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
:param string memberName: Name of Gang member to purchase the equipment for
|
||||
:param string equipName: Name of Equipment/Augmentation to purchase
|
||||
|
||||
@@ -10,5 +12,3 @@ purchaseEquipment() Netscript Function
|
||||
Gang member.
|
||||
|
||||
:returns: True if the equipment was successfully purchased. False otherwise
|
||||
|
||||
:RAM cost: 4 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ recruitMember() Netscript Function
|
||||
|
||||
.. js:function:: recruitMember(name)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string name: Name of member to recruit
|
||||
|
||||
Attempt to recruit a new gang member.
|
||||
@@ -13,5 +15,3 @@ recruitMember() Netscript Function
|
||||
* There already exists a member with the specified name
|
||||
|
||||
:returns: True if the member was successfully recruited. False otherwise
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ setMemberTask() Netscript Function
|
||||
|
||||
.. js:function:: setMemberTask(memberName, taskName)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string memberName: Name of Gang member to assign
|
||||
:param string taskName: Task to assign
|
||||
|
||||
@@ -10,5 +12,3 @@ setMemberTask() Netscript Function
|
||||
If an invalid task is specified, the Gang member will be set to idle ("Unassigned")
|
||||
|
||||
:returns: True if the Gang Member was successfully assigned to the task. False otherwise
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
@@ -3,8 +3,8 @@ setTerritoryWarfare() Netscript Function
|
||||
|
||||
.. js:function:: setTerritoryWarfare(engage)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param bool engage: Whether or not to engage in territory warfare
|
||||
|
||||
Set whether or not the gang should engage in territory warfare
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
@@ -5,6 +5,8 @@ getCacheUpgradeCost() Netscript Function
|
||||
|
||||
.. js:function:: getCacheUpgradeCost(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of times to upgrade cache. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -15,5 +17,3 @@ getCacheUpgradeCost() Netscript Function
|
||||
|
||||
If an invalid value for *n* is provided, then this function returns 0. If the
|
||||
specified Hacknet Server is already at the max cache level, then Infinity is returned.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ getCoreUpgradeCost() Netscript Function
|
||||
|
||||
.. js:function:: getCoreUpgradeCost(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of times to upgrade cores. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -10,5 +12,3 @@ getCoreUpgradeCost() Netscript Function
|
||||
|
||||
If an invalid value for *n* is provided, then this function returns 0. If the
|
||||
specified Hacknet Node is already at the max number of cores, then Infinity is returned.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ getLevelUpgradeCost() Netscript Function
|
||||
|
||||
.. js:function:: getLevelUpgradeCost(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of levels to upgrade. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -10,5 +12,3 @@ getLevelUpgradeCost() Netscript Function
|
||||
|
||||
If an invalid value for *n* is provided, then this function returns 0. If the
|
||||
specified Hacknet Node is already at max level, then Infinity is returned.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -5,6 +5,8 @@ getNodeStats() Netscript Function
|
||||
|
||||
.. js:function:: getNodeStats(i)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
|
||||
Returns an object containing a variety of stats about the specified Hacknet Node::
|
||||
@@ -20,8 +22,6 @@ getNodeStats() Netscript Function
|
||||
timeOnline: Number of seconds since Node has been purchased,
|
||||
totalProduction: Total amount that the Node has produced
|
||||
}
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
.. note:: Note that for Hacknet Nodes, production refers to the amount of money the node generates.
|
||||
For Hacknet Servers (the upgraded version of Hacknet Nodes), production refers to the amount
|
||||
|
||||
@@ -3,6 +3,6 @@ getPurchaseNodeCost() Netscript Function
|
||||
|
||||
.. js:function:: getPurchaseNodeCost()
|
||||
|
||||
Returns the cost of purchasing a new Hacknet Node
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
Returns the cost of purchasing a new Hacknet Node
|
||||
|
||||
@@ -3,6 +3,8 @@ getRamUpgradeCost() Netscript Function
|
||||
|
||||
.. js:function:: getRamUpgradeCost(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of times to upgrade RAM. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -10,5 +12,3 @@ getRamUpgradeCost() Netscript Function
|
||||
|
||||
If an invalid value for *n* is provided, then this function returns 0. If the
|
||||
specified Hacknet Node is already at max RAM, then Infinity is returned.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -5,6 +5,8 @@ hashCost() Netscript Function
|
||||
|
||||
.. js:function:: hashCost(upgName)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param string upgName: Name of upgrade to get the cost of. Must be an exact match
|
||||
|
||||
.. note:: This function is only applicable for Hacknet Servers (the upgraded version
|
||||
@@ -12,8 +14,6 @@ hashCost() Netscript Function
|
||||
|
||||
Returns the number of hashes required for the specified upgrade. The name of the
|
||||
upgrade must be an exact match.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
8
doc/source/netscript/hacknetnodeapi/maxNumNodes.rst
Normal file
8
doc/source/netscript/hacknetnodeapi/maxNumNodes.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
maxNumNodes() Netscript Function
|
||||
=============================
|
||||
|
||||
.. js:function:: maxNumNodes()
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
Returns the maximum number of Hacknet Nodes you can own.
|
||||
@@ -5,9 +5,9 @@ numHashes() Netscript Function
|
||||
|
||||
.. js:function:: numHashes()
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
.. note:: This function is only applicable for Hacknet Servers (the upgraded version
|
||||
of a Hacknet Node).
|
||||
|
||||
Returns the number of hashes you have
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -3,6 +3,6 @@ numNodes() Netscript Function
|
||||
|
||||
.. js:function:: numNodes()
|
||||
|
||||
Returns the number of Hacknet Nodes you own.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
Returns the number of Hacknet Nodes you own.
|
||||
|
||||
@@ -3,11 +3,11 @@ purchaseNode() Netscript Function
|
||||
|
||||
.. js:function:: purchaseNode()
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
Purchases a new Hacknet Node. Returns a number with the index of the Hacknet Node.
|
||||
This index is equivalent to the number at the end of the Hacknet Node's name
|
||||
(e.g The Hacknet Node named 'hacknet-node-4' will have an index of 4).
|
||||
|
||||
If the player cannot afford to purchase a new Hacknet Node then the function
|
||||
will return -1.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -5,6 +5,8 @@ spendHashes() Netscript Function
|
||||
|
||||
.. js:function:: spendHashes(upgName, upgTarget)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param string upgName: Name of upgrade to spend hashes on. Must be an exact match
|
||||
:param string upgTarget: Object to which upgrade applies. Required for certain upgrades
|
||||
|
||||
@@ -24,5 +26,3 @@ spendHashes() Netscript Function
|
||||
|
||||
hacknet.spendHashes("Sell for Corporation Funds");
|
||||
hacknet.spendHashes("Increase Maximum Money", "foodnstuff");
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -5,6 +5,8 @@ upgradeCache() Netscript Function
|
||||
|
||||
.. js:function:: upgradeCache(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of cache levels to purchase. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -17,5 +19,3 @@ upgradeCache() Netscript Function
|
||||
it purchases some positive amount and the Server reaches its max cache level.
|
||||
|
||||
Returns false otherwise.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ upgradeCore() Netscript Function
|
||||
|
||||
.. js:function:: upgradeCore(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of cores to purchase. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -12,5 +14,3 @@ upgradeCore() Netscript Function
|
||||
it purchases some positive amount and the Node reaches its max number of cores.
|
||||
|
||||
Returns false otherwise.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ upgradeLevel() Netscript Function
|
||||
|
||||
.. js:function:: upgradeLevel(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of levels to purchase. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -12,5 +14,3 @@ upgradeLevel() Netscript Function
|
||||
if it is upgraded by some positive amount and the Node reaches its max level.
|
||||
|
||||
Returns false otherwise.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -3,6 +3,8 @@ upgradeRam() Netscript Function
|
||||
|
||||
.. js:function:: upgradeRam(i, n)
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
:param number i: Index/Identifier of Hacknet Node. :ref:`See here for details <netscript_hacknetnodeapi_referencingahacknetnode>`
|
||||
:param number n: Number of times to upgrade RAM. Must be positive. Rounded to nearest integer
|
||||
|
||||
@@ -14,5 +16,3 @@ upgradeRam() Netscript Function
|
||||
it is upgraded some positive number of times and the Node reaches it max RAM.
|
||||
|
||||
Returns false otherwise.
|
||||
|
||||
:RAM cost: 0 GB
|
||||
|
||||
@@ -2,6 +2,7 @@ applyToCompany() Netscript Function
|
||||
===================================
|
||||
|
||||
.. js:function:: applyToCompany(companyName, field)
|
||||
|
||||
:RAM cost: 3 GB
|
||||
|
||||
:param string companyName: Name of company to apply to. CASE-SENSITIVE.
|
||||
|
||||
@@ -2,6 +2,7 @@ checkFactionInvitations() Netscript Function
|
||||
============================================
|
||||
|
||||
.. js:function:: checkFactionInvitations()
|
||||
|
||||
:RAM cost: 3 GB
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 2 of Source-File 4 in order to use this function.
|
||||
|
||||
@@ -2,6 +2,7 @@ commitCrime() Netscript Function
|
||||
================================
|
||||
|
||||
.. js:function:: commitCrime(crime)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string crime:
|
||||
|
||||
@@ -2,6 +2,7 @@ createProgram() Netscript Function
|
||||
==================================
|
||||
|
||||
.. js:function:: createProgram(programName)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string programName: Name of program to create. Not case-sensitive
|
||||
|
||||
@@ -2,6 +2,7 @@ donateToFaction() Netscript Function
|
||||
====================================
|
||||
|
||||
.. js:function:: donateToFaction(factionName, donateAmt)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string factionName: Name of faction to donate to. CASE-SENSITIVE
|
||||
|
||||
@@ -2,6 +2,7 @@ getAugmentationCost() Netscript Function
|
||||
========================================
|
||||
|
||||
.. js:function:: getAugmentationCost(augName)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string augName: Name of Augmentation. CASE-SENSITIVE
|
||||
|
||||
@@ -3,6 +3,8 @@ getAugmentationPrereq() Netscript Function
|
||||
|
||||
.. js:function:: getAugmentationPrereq(augName)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string augName: Name of Augmentation. CASE-SENSITIVE
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 3 of Source-File 4 in order to use this function.
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
getAugmentationStats() Netscript Function
|
||||
=========================================
|
||||
|
||||
.. js:function:: getAugmentationStats(name)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string name: Name of Augmentation. CASE-SENSITIVE
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 3 of Source-File 4 in order to use this function.
|
||||
|
||||
ns.getAugmentationStats("Synfibril Muscle")
|
||||
{
|
||||
strength_mult: 1.3,
|
||||
defense_mult: 1.3,
|
||||
}
|
||||
@@ -2,6 +2,7 @@ getAugmentationsFromFaction() Netscript Function
|
||||
================================================
|
||||
|
||||
.. js:function:: getAugmentationsFromFaction(facName)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string facName: Name of faction. CASE-SENSITIVE
|
||||
|
||||
@@ -2,6 +2,7 @@ getCharacterInformation() Netscript Function
|
||||
============================================
|
||||
|
||||
.. js:function:: getCharacterInformation()
|
||||
|
||||
:RAM cost: 0.5 GB
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 1 of Source-File 4 in order to run this function.
|
||||
@@ -48,4 +49,10 @@ getCharacterInformation() Netscript Function
|
||||
workChaExpGain: Cha experience earned so far from work
|
||||
workRepGain: Reputation earned so far from work, if applicable
|
||||
workMoneyGain: Money earned so far from work, if applicable
|
||||
hackingExp: Total hacking experience
|
||||
strengthExp: Total strength experience
|
||||
defenseExp: Total defense experience
|
||||
dexterityExp: Total dexterity experience
|
||||
agilityExp: Total agility experience
|
||||
charismaExp: Total charisma experience
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ getCompanyFavor() Netscript Function
|
||||
====================================
|
||||
|
||||
.. js:function:: getCompanyFavor(companyName)
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
:param string companyName: Name of the company. CASE-SENSITIVE
|
||||
|
||||
@@ -2,6 +2,7 @@ getCompanyFavorGain() Netscript Function
|
||||
========================================
|
||||
|
||||
.. js:function:: getCompanyFavorGain(companyName)
|
||||
|
||||
:RAM cost: 0.75 GB
|
||||
|
||||
:param string companyName: Name of the company. CASE-SENSITIVE
|
||||
|
||||
@@ -2,6 +2,7 @@ getCompanyRep() Netscript Function
|
||||
==================================
|
||||
|
||||
.. js:function:: getCompanyRep(companyName)
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
:param string companyName: Name of the company. CASE-SENSITIVE
|
||||
|
||||
@@ -2,6 +2,7 @@ getCrimeChance() Netscript Function
|
||||
===================================
|
||||
|
||||
.. js:function:: getCrimeChance(crime)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string crime:
|
||||
|
||||
37
doc/source/netscript/singularityfunctions/getCrimeStats.rst
Normal file
37
doc/source/netscript/singularityfunctions/getCrimeStats.rst
Normal file
@@ -0,0 +1,37 @@
|
||||
getCrimeStats() Netscript Function
|
||||
===================================
|
||||
|
||||
.. js:function:: getCrimeStats(crime)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string crime:
|
||||
Name of crime. Not case-sensitive. This argument is fairlyn lenient in terms of what inputs it accepts.
|
||||
Check the documentation for the *commitCrime()* function for a list of example inputs.
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 3 of Source-File 4 in order to use this function.
|
||||
|
||||
:return The stats of the crime
|
||||
|
||||
{
|
||||
"difficulty": 0.2,
|
||||
"karma": 0.25,
|
||||
"kills": 0,
|
||||
"money": 36000,
|
||||
"name": "Mug",
|
||||
"time": 4000,
|
||||
"type": "mug someone",
|
||||
"hacking_success_weight": 0,
|
||||
"strength_success_weight": 1.5,
|
||||
"defense_success_weight": 0.5,
|
||||
"dexterity_success_weight": 1.5,
|
||||
"agility_success_weight": 0.5,
|
||||
"charisma_success_weight": 0,
|
||||
"hacking_exp": 0,
|
||||
"strength_exp": 3,
|
||||
"defense_exp": 3,
|
||||
"dexterity_exp": 3,
|
||||
"agility_exp": 3,
|
||||
"charisma_exp": 0,
|
||||
"intelligence_exp": 0
|
||||
}
|
||||
@@ -2,6 +2,7 @@ getFactionFavor() Netscript Function
|
||||
====================================
|
||||
|
||||
.. js:function:: getFactionFavor(factionName)
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
:param string factionName: Name of faction. CASE-SENSITIVE
|
||||
|
||||
@@ -2,6 +2,7 @@ getFactionFavorGain() Netscript Function
|
||||
========================================
|
||||
|
||||
.. js:function:: getFactionFavorGain(factionName)
|
||||
|
||||
:RAM cost: 0.75 GB
|
||||
|
||||
:param string factionName: Name of faction. CASE-SENSITIVE
|
||||
|
||||
@@ -2,6 +2,7 @@ getFactionRep() Netscript Function
|
||||
==================================
|
||||
|
||||
.. js:function:: getFactionRep(factionName)
|
||||
|
||||
:RAM cost: 1 GB
|
||||
|
||||
:param string factionName: Name of faction. CASE-SENSITIVE
|
||||
|
||||
@@ -3,6 +3,8 @@ getOwnedAugmentations() Netscript Function
|
||||
|
||||
.. js:function:: getOwnedAugmentations(purchased=false)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param boolean purchase:
|
||||
Specifies whether the returned array should include Augmentations you have purchased but not yet installed.
|
||||
By default, this argument is false which means that the return value will NOT have the purchased Augmentations.
|
||||
|
||||
@@ -2,6 +2,7 @@ getOwnedSourceFiles() Netscript Function
|
||||
========================================
|
||||
|
||||
.. js:function:: getOwnedSourceFiles()
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 3 of Source-File 4 in order to use this function.
|
||||
|
||||
@@ -3,6 +3,8 @@ getStats() Netscript Function
|
||||
|
||||
.. js:function:: getStats()
|
||||
|
||||
:RAM cost: 0.5 GB
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 1 of Source-File 4 in order to run this function.
|
||||
|
||||
Returns an object with the Player's stats. The object has the following properties::
|
||||
|
||||
@@ -2,6 +2,7 @@ getUpgradeHomeRamCost() Netscript Function
|
||||
==========================================
|
||||
|
||||
.. js:function:: getUpgradeHomeRamCost()
|
||||
|
||||
:RAM cost: 1.5 GB
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 2 of Source-File 4 in order to use this function.
|
||||
|
||||
@@ -2,6 +2,7 @@ gymWorkout() Netscript Function
|
||||
===============================
|
||||
|
||||
.. js:function:: gymWorkout(gymName, stat)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
|
||||
:param string gymName:
|
||||
|
||||
@@ -2,6 +2,7 @@ installAugmentations() Netscript Function
|
||||
=========================================
|
||||
|
||||
.. js:function:: installAugmentations(cbScript)
|
||||
|
||||
:RAM cost: 5 GB
|
||||
|
||||
:param string cbScript:
|
||||
|
||||
@@ -2,6 +2,7 @@ isBusy() Netscript Function
|
||||
===========================
|
||||
|
||||
.. js:function:: isBusy()
|
||||
|
||||
:RAM cost: 0.5 GB
|
||||
|
||||
If you are not in BitNode-4, then you must have Level 1 of Source-File 4 in order to run this function.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user