phyzical
4175960fc6
use bitnode multiplers in the output of crime stats
2022-09-20 17:56:05 +08:00
Mughur
4c5adc8dfb
More hasAugmentation fixes
2022-09-14 21:21:49 +03:00
Kelenius
5350e1c3e9
Unhardcoded BN8 BB check; show if corp/BB are disabled in BN stats
2022-09-12 17:48:52 +03:00
phyzical
ca2f1a62a5
add singularity function for exporting game save
2022-09-07 16:11:51 +08:00
Rasmoh
cc0fd197c5
Expose exports from Material
2022-09-05 17:25:32 -07:00
phyzical
2a8ddb8147
fix up param order to match docs
...
hotfix/4058
File List:
src/NetscriptFunctions/Corporation.ts
2022-09-02 11:58:12 +08:00
Mughur
c467a49a38
corp functions now return copy instead of original
2022-08-31 12:05:36 +03:00
Olivier Gagnon
c9a0998cc1
Improve wrong arg user message and add ui.windowSize
2022-08-29 18:07:17 -04:00
hydroflame
a0475cc630
Merge pull request #4049 from MPJ-K/dev
...
NETSCRIPT: FIX #3963 Prevent bladeburner.setActionLevel from setting invalid action levels
2022-08-29 11:20:28 -03:00
hydroflame
c2796e164a
Merge pull request #4052 from Snarling/ns1wrapper
...
NETSCRIPT: FIX #4037 ns1 wraps deeper layers correctly.
2022-08-29 11:14:32 -03:00
Florian Schöffl
282dc28c8d
INFILTRATION: Corrected ns formula for infiltration rewards
...
In commit
7c5097ee83d9e2d185960a9c96739a78981bd600 the author extracted the functionality for infiltration rewards into a NS function and made it accessible via formulas.
The exposed function does however not use the same input parameters as the Victory screen after infiltration since he uses the difficulty and not the starting difficulty.
Difficulty is clamped to [0;3], so the formulas api showed for high difficulty servers a vastly lower result.
2022-08-29 02:35:39 +02:00
Snarling
ef1f376c09
format, lint, remove unused "running" property on ws
2022-08-27 22:32:48 -04:00
Snarling
6f36e9cdc5
Fix/Unify NS1 wrapper
2022-08-27 20:56:12 -04:00
MPJ / Quadryo
197081dd3e
Fix #3963
...
Adds a previously missing `throw` to allow `bladeburner.setActionLevel()` to properly produce errors and prevent invalid action levels from being set.
2022-08-26 20:59:26 +02:00
hydroflame
2463fc2012
Merge pull request #4028 from Snarling/scpAndWriteDocFix
...
NETSCRIPT: Update netscript definition file for scp, write, read, and flags
2022-08-25 16:37:07 -03:00
Snarling
650db2dee7
Add type fix for flags
2022-08-24 19:09:18 -04:00
Alain Bryden
359def2b61
Don't stringify answer if already a string
2022-08-24 11:09:35 -03:00
Snarling
445e365959
debounce updateRAM
2022-08-23 16:38:30 -04:00
Olivier Gagnon
89aa23f4b3
Add dummy function to generate a mock server or player for formulas stuff
2022-08-23 16:01:34 -04:00
Olivier Gagnon
7cb48f4612
fix compile error
2022-08-23 12:04:09 -04:00
hydroflame
fe3e34408d
Merge branch 'dev' into dev
2022-08-23 13:01:13 -03:00
hydroflame
486ab7aad8
Merge branch 'dev' into contractFix
2022-08-23 12:44:21 -03:00
hydroflame
6969ff52c7
Merge pull request #4010 from Risenafis/fix-create-corp
...
NETSCRIPT: Correct missing ! for boolean coercion in Corporation.createCorporation().
2022-08-23 12:10:49 -03:00
hydroflame
1d3eb2ffb5
Merge pull request #4000 from MageKing17/patch-2
...
NETSCRIPT: Correct missing `!` for boolean coercion in `singularity.workForCompany()`.
2022-08-23 12:09:49 -03:00
Risenafis
b224321222
fix selfFund was reversed
2022-08-20 23:37:39 +09:00
Snarling
4001b4cbb0
refactor stock for ctx instead of workerScript
2022-08-19 19:32:30 -04:00
MageKing17
28d7284323
Correct missing !
for boolean coercion.
...
`singularity.workForCompany()` was negating its `_focus` argument, unlike similar functions, which used double-negation to coerce to boolean. This was almost certainly a typo, since before PR-#3967 it used `_ctx.helper.boolean()` without negation, just like the other singularity functions.
2022-08-18 22:04:11 -07:00
Olivier Gagnon
a8bef50ef5
Added a few formulas to calculate work gains
2022-08-17 14:32:52 -04:00
Snarling
ea7c2c4981
fixing other commits after rebase
2022-08-09 18:25:02 -04:00
Snarling
648b7e84bf
Some cleanup
2022-08-09 18:09:26 -04:00
Snarling
931ea730a5
Move entire ns object to top-level
2022-08-09 18:09:26 -04:00
Snarling
01e63b10a1
move ctx.log to NetscriptHelpers
2022-08-09 18:09:26 -04:00
Snarling
208495e269
Initial commit
2022-08-09 18:09:24 -04:00
Snarling
3a2e676c9b
Move error functionality to new wrapper
2022-08-09 18:09:24 -04:00
Snarling
47d51391e3
fix typechecking and documentation for attempt
2022-08-02 11:30:28 -04:00
Snarling
b700b0246b
Fix contract input handling
2022-08-02 11:11:49 -04:00
Mughur
a88f36e2f4
add corp get functions, fix coffee hover text
2022-07-30 18:57:33 +03:00
Olivier Gagnon
07c7f0641a
allbuild commit c8440ef2
2022-07-28 14:35:55 -04:00
Olivier Gagnon
3b35b07860
remove unused fields on sleeves
2022-07-28 03:08:39 -04:00
Olivier Gagnon
4549b0d467
finish sleeve rework
2022-07-28 02:46:34 -04:00
Olivier Gagnon
32bd629317
lint
2022-07-27 00:08:07 -04:00
Olivier Gagnon
326d9fd7ef
Move player skills and exp to their struct
2022-07-26 23:54:17 -04:00
Olivier Gagnon
3e4f26ac0a
allbuild commit e6d14eff
2022-07-26 15:30:12 -04:00
Olivier Gagnon
18c3572423
removed the ability to bribe for shares
2022-07-26 08:20:22 -04:00
Aerophia
7c8c94d808
Add files via upload
2022-07-22 12:32:10 -05:00
Aerophia
c2ffb09514
Update Singularity.ts
2022-07-22 12:28:51 -05:00
Aerophia
1f918011dc
Update Singularity.ts
2022-07-22 12:16:48 -05:00
Aerophia
2ad978d8f4
Create Singularity.ts
2022-07-22 12:09:36 -05:00
Aerophia
dad4fcc25e
Update Singularity.ts
2022-07-22 12:09:01 -05:00
Aerophia
2907128291
Update Singularity.ts
2022-07-22 12:07:23 -05:00
Aerophia
757711ce5b
Update Singularity.ts
2022-07-22 10:29:40 -05:00
Olivier Gagnon
7f20dc2ee8
fix getPossibleInfiltrations not returning enough info and fix donation saying Invalid input before unlocking
2022-07-21 15:32:54 -04:00
Olivier Gagnon
2d522ea1e6
allbuild commit e9254edf
2022-07-21 15:09:55 -04:00
Olivier Gagnon
6498a720bb
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-07-21 02:42:52 -04:00
Olivier Gagnon
693baf26df
add sleeve aug price and rep function
2022-07-21 02:42:48 -04:00
hydroflame
68ecc9613c
Merge pull request #3739 from borisflagell/FIX#3732-v2
...
API: FIX#3732 Cannot assign two sleeve on "Take on contracts" regardless of contract type.
2022-07-21 02:31:12 -04:00
hydroflame
2fd3451780
Merge pull request #3724 from borisflagell/FIX#3661
...
API: Fix #3661 Add missing memory property to Sleeve API
2022-07-21 02:26:55 -04:00
hydroflame
a513a842e3
Merge pull request #3797 from Ansopedian/dev
...
BUGFIX: Singularity.goToLocation support for non-city-specific locations
2022-07-21 02:14:42 -04:00
Olivier Gagnon
43b8cfec5c
fix test suite
2022-07-21 02:13:47 -04:00
hydroflame
0d95533470
Merge pull request #3810 from Undeemiss/multi-hash-sell
...
BLADEBURNER: Add batch functionality to NS spendHashes API
2022-07-21 01:39:02 -04:00
Olivier Gagnon
ec17cfdaf3
merge corp not async
2022-07-20 17:27:11 -04:00
Olivier Gagnon
ef42ee7232
few more api break
2022-07-20 17:03:08 -04:00
Staszek Welsh
75a9151e74
Merge branch 'dev' into corp-remove-async
2022-07-20 21:12:27 +01:00
hydroflame
17c2f06ae0
Merge pull request #3802 from stalefishies/corp-dividends
...
CORPORATION: (BREAKING) Dividend fixes and exposing dividends info via scripts
2022-07-20 15:08:41 -04:00
Olivier Gagnon
c9b9c2c55b
merge dev
2022-07-20 12:16:42 -04:00
Olivier Gagnon
8312710b0d
fix contracts
2022-07-20 11:50:26 -04:00
Olivier Gagnon
4518eabc29
Remove some any and add getAugmentationBasePrice
2022-07-20 01:20:11 -04:00
Olivier Gagnon
71d8e35bb5
more anys
2022-07-19 23:26:21 -04:00
Olivier Gagnon
f220965a73
more anys
2022-07-19 22:54:38 -04:00
Olivier Gagnon
83c26903c0
add argument for commitCrime focus
2022-07-19 22:30:07 -04:00
Olivier Gagnon
0848d2fdaa
fix 2 any
2022-07-19 19:08:22 -04:00
Olivier Gagnon
70d5390e4d
most anys in NetFunc
2022-07-19 19:04:06 -04:00
Olivier Gagnon
c3a10d5d95
fix more anys
2022-07-19 18:25:06 -04:00
Olivier Gagnon
2442402af5
fix more anys
2022-07-19 16:46:03 -04:00
Olivier Gagnon
bb8af88b77
prep v2
2022-07-19 14:21:12 -04:00
Olivier Gagnon
c977a9def7
tidy up eslint.js
2022-07-19 12:19:32 -04:00
Olivier Gagnon
a9d5ff9bc9
lint
2022-07-18 03:31:17 -04:00
Olivier Gagnon
91ca43707a
fix any in INetscriptHelper
2022-07-18 03:01:55 -04:00
Olivier Gagnon
5f229c9c67
yet another any
2022-07-18 02:33:21 -04:00
Olivier Gagnon
97105b8e76
rm another any
2022-07-18 02:31:09 -04:00
Olivier Gagnon
1b90b42881
rm more any
2022-07-18 02:28:21 -04:00
hydroflame
c5518d9d02
Merge pull request #3910 from faangbait/patch-1
...
fix for #3909
2022-07-16 17:23:07 -04:00
hydroflame
f339e49aa7
Merge pull request #3787 from Undeemiss/bladeburner-multi-upgrade
...
BLADEBURNER: Added bulk upgrades to upgradeSkill NS API
2022-07-15 23:40:55 -04:00
faangbait
3b59f07f88
fix for #3909
...
#3909
I can't compile electron right now, but I think this ought to fix it.
2022-07-15 10:20:30 -05:00
Olivier Gagnon
1d4d86719e
rm any
2022-07-15 01:58:00 -04:00
Olivier Gagnon
4bee746576
rm any
2022-07-15 01:51:30 -04:00
Olivier Gagnon
86c0913bd3
rm some any
2022-07-14 23:03:54 -04:00
Olivier Gagnon
5629c16def
extract multipliers in its own type
2022-07-14 18:43:33 -04:00
Olivier Gagnon
0550bc188c
refactor some stuff
2022-07-14 17:43:08 -04:00
Olivier Gagnon
fac6633347
remove so many fields and values used by the old system
2022-07-12 23:13:40 -04:00
Olivier Gagnon
f7805c4a51
convert faction work to new work system
2022-07-12 01:54:19 -04:00
Olivier Gagnon
606f1bf6c4
create program and grafting done
2022-07-10 01:37:36 -04:00
Olivier Gagnon
647392626e
convert taking class ot new work system
2022-07-07 17:28:23 -04:00
Olivier Gagnon
24b6eb4d56
make workinprogress crime 2 digit precision
2022-07-07 02:03:02 -04:00
Staszek Welsh
395b583905
Add faction membership check to singularity.purchaseAugmentation
2022-07-04 23:44:58 +01:00
Staszek Welsh
02b07bb332
Fix relevant linter errors and run formatter
2022-06-02 22:54:50 +01:00
Staszek Welsh
ba7b76369b
Remove industry upgrades
...
There are only two industry upgrades, one of which is buying coffee
which is not an upgrade, and for the office not the industry. Moving
that to the office leaves just hiring AdVerts, which is better as an
explicitly named set of methods.
2022-06-02 02:43:22 +01:00
Staszek Welsh
04efd899a0
Remove async from buyCoffee and throwParty
2022-06-01 23:36:15 +01:00
Staszek Welsh
ffaa38d086
Unify code paths for buying coffee and throwing parties
2022-06-01 23:26:32 +01:00
Staszek Welsh
7d3a43f7b5
Remove async from employee assignment functions
2022-06-01 18:18:53 +01:00
Staszek Welsh
b9356ea782
Only switch employee jobs at the start of corp cycles
2022-06-01 18:11:33 +01:00
Staszek Welsh
eb46e4d156
Rename getDividends to getCycleDividends for clarity
2022-06-01 12:59:45 +01:00
Undeemiss
6ba171b0c3
Unknown-ify count parameters
2022-05-31 21:27:04 -05:00
Undeemiss
f0dc532513
Add optional count parameter to hashCost and spendHashes
2022-05-31 21:13:03 -05:00
Staszek Welsh
4a3558098c
Fix error check in issueDividends expecting 0-100 when it actually takes 0-1
2022-05-30 22:31:51 +01:00
Staszek Welsh
c117b55df9
Expose dividend info through ns.corporation.getCorporation()
2022-05-30 22:21:27 +01:00
Ansopedian
d319b3f982
added singularity.goToLocation support for non-city-specific locations
2022-05-30 14:23:06 +02:00
Undeemiss
06acc423ae
Added count to NS cost function, input checking, fixed documentation
...
Also changed upgradeSkill back to returning a bool instead of a
number.
2022-05-29 11:13:49 -05:00
Undeemiss
f8f3c099e0
Formatted/linted (There are some errors, but they aren't mine afaik)
2022-05-28 21:35:20 -05:00
Undeemiss
908d5e9570
Proof-of-concept, handling purchases of 1e150 lvls at once
...
Threw something together with a formula that should, for large
purchases, be roughly the same cost as normal. The formula change
may cause noticeable deviation from expected costs for low numbers
of upgrades, though, so I plan to fix that by having high
quantities handled differently than low ones if necessary.
2022-05-28 20:37:33 -05:00
Undeemiss
709fc3ab63
Began attempting to implement a multi-upgrade function for bb
2022-05-28 14:12:07 -05:00
borisflagell
c5b68610a1
fix typo in thrown error message
2022-05-27 17:59:37 +02:00
Olivier Gagnon
6a2e5b06ad
fix manualHack
2022-05-25 20:19:42 -04:00
T.J. Eckman
cfb0967634
Unassigned Employees Boost
...
Speed up assigning of employees currently without a job.
2022-05-25 18:55:34 -04:00
Olivier Gagnon
76ccb0ba36
lint
2022-05-25 11:43:43 -04:00
Olivier Gagnon
4dd7afac9d
allbuild commit 252b0a30
2022-05-25 11:10:25 -04:00
Olivier Gagnon
972abcbdc8
Wrap all the API
2022-05-24 20:16:39 -04:00
Olivier Gagnon
ae38b11ede
made static ram cost typecheck that it's missing no property.
2022-05-24 18:34:00 -04:00
Olivier Gagnon
0da2e74d12
more work on wrapping formulas
2022-05-24 17:51:48 -04:00
Olivier Gagnon
324f752d8a
Wrap formulas but doesn't compile
2022-05-24 17:29:44 -04:00
borisflagell
0abd760d35
API FIX:#3732 Cannot assign two sleeve on "Take on contracts" regardless of contract type.
...
ns.sleeve.setToBladeburnerAction() was not testing the contract value.
2022-05-24 15:38:05 +02:00
borisflagell
ff75097149
API: Fix #3661 Add missing memory property to Sleeve API
...
fixes #3661
Add the missing memory stat to NS.SleeveSkills Interface.
Update ns.Sleeve.GetSleeveStats accordingly.
(fixing commit issue)
2022-05-24 15:09:22 +02:00
borisflagell
051393fac9
API: FIX#2884 Add the missing className property to Sleeve'sAPI
...
fixes #2884 .
2022-05-23 19:20:33 +02:00
borisflagell
d44d71712f
Prettier
2022-05-22 06:40:32 +02:00
borisflagell
8e0af049d9
BLADEBURNER: FIX #3508 Add GetActionCurrentTime() to Bitburner API
...
Add GetActionCurrentTime() to Bitburner API.
Slightly tweak BItburner.resetAction() to also reset time counters.
2022-05-22 06:40:08 +02:00
Olivier Gagnon
0d437e5b73
lint
2022-05-20 18:20:04 -04:00
Olivier Gagnon
42dcbf889e
fix typo
2022-05-20 17:28:21 -04:00
Olivier Gagnon
7eb4494ac1
fix mc
2022-05-20 15:58:33 -04:00
Olivier Gagnon
c2b4a5b52a
Update codebase for stanek
2022-05-19 02:48:50 -04:00
Olivier Gagnon
ca1a2aad33
fix conflicts
2022-05-19 01:43:54 -04:00
hydroflame
2cb02bf445
Merge pull request #3660 from Undeemiss/stanek-error
...
STANEK: Stanek NS functions correctly throw errors when stanek not installed
2022-05-19 01:40:48 -04:00
hydroflame
b80e2d5fd1
Merge branch 'dev' into wrap-api
2022-05-19 01:37:06 -04:00
Undeemiss
58be301d06
Fixed broken stanek error
2022-05-15 20:06:52 -05:00
hydroflame
e3a0ae0407
Merge pull request #3617 from phyzical/hotfix/fix-augmentation-costs-rsponse
...
BUGFIX: getAugmentationCost response backwards
2022-05-13 11:07:48 -04:00
hydroflame
88b7b141f7
Merge pull request #3618 from Hoekstraa/clearTerminal
...
API: Terminal screen can now be cleared from within scripts with ns.ui.clearTerminal()
2022-05-13 11:07:25 -04:00
hydroflame
386dac4be2
Merge pull request #3619 from Snarling/usedRamFix
...
MISC: FIX #3593 Float errors can no longer prevent full usage of a server's available ram.
2022-05-13 11:06:49 -04:00
hydroflame
09c0e00b02
Merge pull request #3637 from Undeemiss/stanek-booster-charge-fix
...
STANEK: Fix #3196 Charging booster fragments throws an error
2022-05-13 11:05:42 -04:00
Undeemiss
b00301f4e1
Renamed BN mult CorporationSoftCap to CorporationSoftcap
...
Replaced all instances of "CorporationSoftCap" in src/ with
"CorporationSoftcap". If files outside of src/ must be changed, I
do not know what those would be.
2022-05-09 14:45:19 -05:00
Undeemiss
8a68633d9c
Throw an error when trying to charge stanek booster fragments
2022-05-09 14:29:42 -05:00
Olivier Gagnon
c6806caca2
Wrap most of the API
2022-05-07 19:08:07 -04:00
rderfler
77073836cb
Merge remote-tracking branch 'upstream/dev' into dev
2022-05-06 22:44:24 -04:00
Snarling
99a0337a14
Dirty fix for available ram float errors
...
1MB added to available ram when checking if available is sufficient. All actual ram values in game are a multiple of 50MB so an extra 1MB can't ever allow additional script load to be ran.
2022-05-06 08:56:19 -04:00
Zoë Hoekstra
65889079b6
Add log entry when ui.clearTerminal() is ran
2022-05-06 12:41:02 +02:00
Zoë Hoekstra
472c9778df
Add ns.ui.clearTerminal for 0.2 GB
2022-05-06 12:29:21 +02:00
phyzical
10c67ab363
refactor resulted in it being backwards
2022-05-06 16:35:07 +08:00
nickofolas
f45200b25e
Implement ClassType
and FactionWorkType
enums
2022-05-04 14:18:12 -05:00
nickofolas
4a8e99b170
Refactor WorkType
to an enum
2022-05-04 13:42:48 -05:00
hydroflame
44641fee07
Merge pull request #3544 from phyzical/feature/refactor-augmentation
...
REFACTOR: augmentation cost, rep cost and level to be calculated in place
2022-05-04 12:08:24 -04:00
hydroflame
105ced26bf
Merge pull request #3570 from DavidGrinberg/dev
...
CORPORATIONS: Expose makeProducts on NSDivision interface
2022-05-04 12:01:33 -04:00
hydroflame
b0c9475b57
Merge pull request #3574 from DavidGrinberg/expose-material-sell-cost
...
CORPORATIONS: Expose sales cost on NSMaterial interface
2022-05-04 11:58:12 -04:00