Commit Graph

637 Commits

Author SHA1 Message Date
TheMas3212 31ed5d8f64 Add Function Call signatures to ns.kill so typescript is able to call
ns.kill(pid)
previously it will fail to compile due to not providing a host argument
2021-12-31 10:58:56 +11:00
hydroflame cc4f07d037 Merge pull request #2175 from Xynrati/patch-3
Removing old comment about removed parameter
2021-12-28 11:59:41 -05:00
Alexander Morland aaf1ad4ae5 Fixed typo
needed to fix docs
2021-12-28 17:27:21 +01:00
Xynrati 26ab62eea6 More comments to be removed 2021-12-28 08:04:50 -08:00
hydroflame 9f9ce40ef0 Merge pull request #2179 from antonvmironov/fix-CorporationInfo.state
Fix CorporationInfo.state
2021-12-28 10:37:42 -05:00
ReeseJones 1087db9f33 changed setting to selling in getSaleGain 2021-12-26 14:35:46 -08:00
Anton Mironov 3dd818cb7b Updating doc for CorporationInfo.state
Now includes a list of possible values.
2021-12-24 17:35:23 +01:00
Hedrauta 3eedd9df88 empty host = current host 2021-12-24 00:23:38 +01:00
TheMas3212 e0aaa383a4 modify BasicHGWOptions definition to mark threads parameter as optional
this is used by hack, grow and weaken all of which dont require it to be defined
2021-12-23 14:42:06 +11:00
hydroflame bfdfee2a68 Merge branch 'dev' into mychanges 2021-12-22 16:16:24 -05:00
Olivier Gagnon d2d6c33fc8 mychanges 2021-12-22 16:15:56 -05:00
hydroflame fba2265cce Merge pull request #2118 from Icehawk78/feat/add-ns2-examples-docs
Add ns2 examples to the netscript docs
2021-12-22 15:21:06 -05:00
Nicholas Galauxy 35cfa9492e Fix unintended spacing change 2021-12-22 13:38:32 -06:00
Nicholas Galauxy ed4d4d091c Update docs to include NS2 examples 2021-12-22 13:36:44 -06:00
hydroflame dbf8c788e0 Merge pull request #2111 from mikomyazaki/2027-documentation-updates
Documentation updates
2021-12-22 14:30:14 -05:00
Xynrati 21ac94dbb3 Add ns2 example for scp 2021-12-22 09:38:21 -08:00
Andrew Cooper c2e5c9f371 Documentation updates to getgrowtime, gethacktime, getweakentime, hack, hackanalyze and weaken. 2021-12-22 17:25:09 +00:00
Hedrauta 7f3f5c7648 commitCrime will return milliseconds 😉 2021-12-22 02:00:22 +01:00
hydroflame 79eb2f7e0b Merge pull request #2092 from theit8514/script-focus-v2
Add focus parameter to workForCompany/workForFaction
2021-12-21 11:02:26 -05:00
hydroflame 26106fa71d Merge pull request #2077 from MartinFournier/feature/get-theme
Add ns.ui.getTheme() api function
2021-12-21 10:57:58 -05:00
theit8514 d873f7279b Add focus parameter to workForCompany/workForFaction
Defaults to true to keep previous behavior.
2021-12-21 08:13:18 -05:00
Dan 8ccb128e6f docs(ns.getPlayer): update doc to have ram cost
Resolves danielyxie/bitburner#2084
2021-12-21 01:44:32 +00:00
Olivier Gagnon b57ac45698 doc 2021-12-20 15:59:46 -05:00
Olivier Gagnon 41a7109baa fix 2021-12-20 15:48:26 -05:00
Martin Fournier 65d0877edc Add ns.ui.getTheme() api function 2021-12-20 14:37:10 -05:00
Olivier Gagnon 5dc9ac040a toast time config 2021-12-20 13:29:04 -05:00
Jordan Turner f678574a6c made it more clear what nuke exe does 2021-12-19 13:47:34 -07:00
hydroflame d5201885aa Merge pull request #1997 from pobiega/fix/nformat-return-type
ScriptEditor NetScriptDefinitions: nFormat should return string
2021-12-18 14:40:20 -05:00
Robin Rexstedt 87d8f67df1 make nFormat return a string 2021-12-18 13:12:23 +01:00
Adraxas 069d76df25 Fix NS.exec signature 2021-12-17 18:40:00 -08:00
Martin Fournier 217b94d0a0 Fix #1863: Add getHashUpgrades hacknet function
Adds a new functions ofr hacknet servers that returns the list of
available hash upgrades.
2021-12-17 05:35:17 -05:00
Olivier Gagnon 33e918fc49 doc 2021-12-16 15:28:53 -05:00
Olivier Gagnon e16fba2418 scan doc 2021-12-16 15:21:00 -05:00
Olivier Gagnon 5718800b91 doc update 2021-12-16 12:41:18 -05:00
Olivier Gagnon 6ef99e138c fix BN exploit 2021-12-16 12:40:24 -05:00
Olivier Gagnon 3c67da02f3 typo 2021-12-16 12:33:44 -05:00
Olivier Gagnon 16431f1031 minor tweak to doc 2021-12-16 12:13:00 -05:00
hydroflame 2da9f87031 Merge pull request #1895 from TheCoderJT/editingGitDocs
Editing git docs
2021-12-16 12:11:05 -05:00
Olivier Gagnon 91c7811a36 format 2021-12-16 12:04:09 -05:00
Jordan Turner e1e032b61f added semi colons they were missing at the end of some examples 2021-12-15 22:15:29 -07:00
Jordan Turner db9b0a8ec8 added await before the ns2 method calls 2021-12-15 22:01:44 -07:00
Jordan Turner 3926913790 updated appearach of example sections based on alainbryden suggestion 2021-12-15 21:47:18 -07:00
theit8514 2e133bcf0a Fix return type of isFocused 2021-12-15 20:55:47 -05:00
theit8514 d59601f848 Add return value and code style cleanup 2021-12-15 20:48:19 -05:00
theit8514 ad57f3dc73 Work functions do not take focus
setFocus readded and updated to send the user to the Work page if focusing.
2021-12-15 20:33:48 -05:00
Jordan Turner 632e1f70f3 added rs to backricks to color code syntax 2021-12-15 10:25:54 -07:00
Jordan Turner 687682fcbd added syntax useage to github ns page 2021-12-15 10:10:32 -07:00
Olivier Gagnon 7b8e486e3a fix typo in doc 2021-12-13 15:50:01 -05:00
Olivier Gagnon 11ba8c91be getServer of hacknet doesn't return undefined 2021-12-12 13:47:05 -05:00
Olivier Gagnon 394a286646 formulas for ascension 2021-12-09 12:52:51 -05:00