Olivier Gagnon
0133945c8b
add eslint strict
2022-10-16 14:32:01 -04:00
Olivier Gagnon
c3b2c6396c
lint and made a some code more robust to older save file
2022-10-16 14:25:42 -04:00
Duck McSouls
6f1822bf4d
DOC: gang.canRecruitMember()
: when this returns true or false
...
Elaborate on the conditions under which the function would return true or false. In particular, after a gang is successfully created the function always return true so the player can recruit a number of founding members to their gang. When the gang is at capacity, the function always return false. In between, the function returns true or false depending on the amount of respect the player has.
2022-10-16 18:34:34 +11:00
Duck McSouls
ac0e7c9595
DOC: gang.canRecruitMember()
: typo fixes
...
Some typographical fixes.
2022-10-16 17:56:45 +11:00
Duck McSouls
93090691b5
DOC: ns.prompt()
: some examples
...
Add some examples to illustrate the use of the various options. As per suggestion by @Snarling, simplify the examples on free-form text box and drop-down list.
2022-10-15 11:27:56 +11:00
Duck McSouls
473e6a2674
DOC: ns.prompt()
: explain the various options
...
Elaborate on the effects of `options.type` and `options.choices`. Break the explanation into bullet points for clearer presentation. Thanks to @Snarling for pointing out that the default is to create a boolean dialog box.
2022-10-15 11:03:36 +11:00
omuretsu
9908f4aaa5
Error message fixes
2022-10-14 11:08:24 -04:00
omuretsu
7683990d17
format and lint
2022-10-14 11:03:50 -04:00
omuretsu
ad0be471ce
fix ns.prompt typechecking
...
Introduced some new type assertion functions, initial step in larger type safety rework.
2022-10-14 11:00:29 -04:00
borisflagell
baa149fa80
Update HospitalLocation.tsx
...
Add auto-refreshing to the component
2022-10-14 14:13:53 +03:00
borisflagell
1b61ec0e12
Update HospitalLocation.tsx
2022-10-14 13:59:56 +03:00
Duck McSouls
a368c6904e
DOC: ns.prompt()
: a typo fix
...
A simple typographical fix.
2022-10-14 14:50:35 +11:00
Daniel Bachran
5acd5e84a3
#4239 Adjust write() documentation
...
write() only accepts strings now.
2022-10-13 17:45:40 +02:00
Duck McSouls
67062bceab
NETSCRIPT: remove unused variables
...
Running `npm run lint` shows that 2 variables are unused: `MoneySource as IMoneySource` and `MoneySources as IMoneySources`. Remove these unused variables.
2022-10-13 20:18:42 +11:00
Olivier Gagnon
6c84d64e67
rm unecessary return type
2022-10-13 01:07:10 -04:00
Olivier Gagnon
4c4f050214
simplify get money source
2022-10-13 00:55:57 -04:00
Olivier Gagnon
8ff840edfa
getBitnodeM takes 2 arg
2022-10-13 00:51:53 -04:00
Olivier Gagnon
ae5fc168bf
Add getMoneySources
2022-10-13 00:10:59 -04:00
hydroflame
d0fe28f8fb
Merge pull request #4220 from cptpiepmatz/fix-nano-not-opening-root-script-if-in-dir
...
UI: Fixed `nano` not correctly opening a script in root of a server if `cd`'d into a directory
2022-10-12 23:58:59 -04:00
hydroflame
14914eb190
Merge pull request #4229 from borisflagell/wxsQDSSQF
...
SLEEVE: Fix #4194 Bladeburner Contract in Sleeve were not giving proper reward.
2022-10-12 23:54:15 -04:00
hydroflame
93769c7089
Merge pull request #4224 from quacksouls/doc-scan
...
DOC: `ns.scan()`: typo fixes and add 2 examples
2022-10-12 23:52:34 -04:00
hydroflame
aa39728f67
Merge pull request #4230 from borisflagell/SoA_RepCost
...
SOA: Fix #3884 Implement unused SoARepMult constant to SoA's augmentations price + linked UI modification
2022-10-12 23:52:14 -04:00
hydroflame
50bc41bf5b
Merge pull request #4231 from borisflagell/TypoRepReq#3811
...
API: Fix #3811 Update NetscriptDefinitions.d.ts
2022-10-12 23:51:39 -04:00
hydroflame
c1ab4e82f2
Merge pull request #4232 from borisflagell/UI_reputation_color
...
UI: Fix #3719 Inconsistent colors of reputation gains on Install Augmentations screen
2022-10-12 23:51:23 -04:00
hydroflame
74a1b9b180
Merge pull request #4234 from Jakob002/Jakob002-patch-1
...
MISC: Fixed typo in Literatures.ts
2022-10-12 23:51:10 -04:00
hydroflame
68e90b8e6e
Merge pull request #4236 from Snarling/typeFix
...
NETSCRIPT: Fix internal typechecking of functions
2022-10-12 23:50:22 -04:00
hydroflame
70fa66c3e8
Merge pull request #4237 from Jakob002/Jakob002-patch-2
...
MISC: message formatting
2022-10-12 23:46:53 -04:00
omuretsu
e192ad53ec
Actually format + lint
2022-10-12 10:18:56 -04:00
Jakob002
c2ed9067e0
MISC: message formatting
...
Replaced someArray.toString() with someArray.join(", "). This will return "foo, bar, baz" (with spaces) instead of "foo,bar,baz" (no spaces).
2022-10-12 15:16:10 +02:00
omuretsu
7a384d53f4
typefix netscriptFunctions (see desc)
...
* Types for InternalFunction and ExternalFunction have been modified to actually typecheck ns functions against docs.
* Internal functions are required to use unknown for any params on the inner function.
* Return types for internal function inner-function must match the respective external function.
* Added new typecheck assertion function for asserting dynamic object types, to allow unknownifying params that were previously hardcoded objec structures.
* Because type assertion for parameter types and return types is enforced by InternalAPI, removed all duplicate type declarations on NetscriptFunction params and returns.
2022-10-12 08:49:27 -04:00
Jakob002
fc50625dcf
Fixed typo in Literatures.ts
2022-10-12 08:47:03 +02:00
omuretsu
41b6f0b87b
add hoop before exposing
2022-10-11 21:02:04 -04:00
omuretsu
7d07f44b3e
move to global scope
2022-10-11 20:01:10 -04:00
omuretsu
84b99c569a
extra printRaw function
2022-10-11 16:07:45 -04:00
borisflagell
b3f2fe5e02
Update PlayerMultipliers.tsx
2022-10-11 19:22:06 +03:00
borisflagell
def2cb281b
Update AugmentationsPage.tsx
2022-10-11 19:03:58 +03:00
borisflagell
b2886ba623
Update NetscriptDefinitions.d.ts
2022-10-11 18:45:38 +03:00
borisflagell
6c625a5ca3
Update AugmentationsPage.tsx
2022-10-11 18:30:41 +03:00
borisflagell
5c1777a6d4
Update AugmentationsPage.tsx
...
Tooltip's text refining
2022-10-11 18:29:17 +03:00
borisflagell
125cd04383
Fix #3884
...
Fix #3884
2022-10-11 18:12:06 +03:00
borisflagell
bbe6421b06
Update Bladeburner.tsx
...
Prettier
2022-10-11 15:33:55 +03:00
borisflagell
f3becee15b
Fix Bladeburner Contract in Sleeve
2022-10-11 15:25:16 +03:00
Duck McSouls
b03288a700
DOC: ns.scan(): add 2 examples
...
The first example shows how to use `ns.scan()` without passing an argument. The second example uses `ns.scan()` by passing the hostname of a target server. Both examples can be written more succinctly by using the `forEach()` method of array, but for the purposes of illustration the `for` loop should be easier for beginners to read.
2022-10-11 18:48:47 +11:00
Olivier Gagnon
1d5d839cd9
allbuild commit 73bcf087
2022-10-11 01:07:40 -04:00
Olivier Gagnon
73bcf0870f
doc
2022-10-11 01:06:26 -04:00
hydroflame
1cf7b28ac8
Merge pull request #4225 from quacksouls/doc-sleeve-crime
...
DOC: `ns.sleeve.setToCommitCrime()`: add list of crimes a sleeve can commit
2022-10-11 00:58:58 -04:00
Duck McSouls
afe6a837c3
DOC: ns.sleeve.setToCommitCrime()
: add 1 example
...
An example on how to set a sleeve to commit a crime. The example shows that sleeves are indexed from 0.
2022-10-10 20:49:33 +11:00
Duck McSouls
c728c550f5
DOC: ns.sleeve.setToCommitCrime()
: add all crimes a sleeve can commit
...
Add a list of crimes that a sleeve can commit. Update the parameter documentation to refer to this list.
2022-10-10 13:18:00 +11:00
Duck McSouls
304b7645b0
DOC: ns.sleeve.setToCommitCrime()
: starting index of sleeves
...
Document the index of the first sleeve. Sleeves are indexed starting from zero, i.e. 0. Increment by 1 to get the index of the next sleeve. And so on.
2022-10-10 12:47:20 +11:00
Olivier Gagnon
7089122b3b
more ranbling
2022-10-09 19:55:46 -04:00