Commit Graph

375 Commits

Author SHA1 Message Date
danielyxie
42804b0cd3 Refactored 'workerScripts' array and killWorkerScript() fn to be their own modules in TypeScript 2019-05-15 23:05:36 -07:00
danielyxie
bd02e724e5 Fixed several more bugs. Rebalanced stock market changes to make the effects a bit less potent for now 2019-05-14 04:23:55 -07:00
danielyxie
fef7aaba8f Adding more directory-related unit tests. Several more bug fixes and QoL improvements 2019-05-14 01:35:37 -07:00
danielyxie
b0918d7bd3 Fixed numerous reported bugs. Refactored some of the directory-related code. Added documentation for MasonDs changes to hack/grow/weaken 2019-05-11 19:20:20 -07:00
danielyxie
29e0ce5f96 Fixed merge conflicts 2019-05-11 02:20:09 -07:00
Mason Dechaineux
44c26165f4 (feat) optional threads argument to netscript functions hack, weaken, grow 2019-05-11 02:05:40 -07:00
danielyxie
9dd68947f1 Added Dynamic RAM calculation unit tests 2019-05-10 02:24:50 -07:00
danielyxie
ece246b391 Converted mocha unit tests to run using mocha-webpack (mochapack) package 2019-05-09 19:03:13 -07:00
danielyxie
cdb5dfec62 Resolved more circular dependencies. Installed acorn-walk and imported it in RamCalculations using ES6 modules. Fixed bugs in stock market rework 2019-05-06 18:01:06 -07:00
danielyxie
8a5b6f6cbc Refactored stock buying/selling code into its own file. Refactored WorkerScript & NetscriptEnvironment into their own Typescript classes. Refactored a ton of code to remove circular dependencies 2019-05-04 21:03:40 -07:00
danielyxie
585e1ac7aa Stock transactions can now influence forecast in addition to price. Several more minor bug/UI fixes 2019-05-01 15:20:14 -07:00
danielyxie
580a7fac24 Bug fixes for v0.47.0. Fixed the BUY MAX feature for new stock market. Added collapse/expand tickers buttons for new stock market UI 2019-04-29 20:54:20 -07:00
Mason Dechaineux
8fa7b112e1 Correctly throw error when ns.run() is called with 0 threads 2019-04-28 23:21:55 -07:00
danielyxie
dd9df0a18c Fixed Stock Market UI. Added documentation for stock market changes 2019-04-28 23:21:32 -07:00
danielyxie
d7fb335815 Fixed Stock market UI compilation errors and removed refactored code 2019-04-28 23:21:32 -07:00
danielyxie
4809a21e38 Finished React components for new Stock Market UI 2019-04-28 23:21:32 -07:00
danielyxie
6b3646e981 Added spread and price movement properties to stocks. Refactored Stock Market implementation code 2019-04-28 23:21:32 -07:00
danielyxie
bcb198220d v0.46.3 2019-04-19 22:27:33 -07:00
danielyxie
3d1684f825 Fix Terminal wget bug. Issue #593 2019-04-14 02:07:29 -07:00
danielyxie
215cf59e0b Fixed comment styling for all top-level src files 2019-04-14 02:07:29 -07:00
danielyxie
0d14cd6e7e Improved module import styling for all top-level src files 2019-04-14 02:07:29 -07:00
danielyxie
3ce2e83dd8 Finished rudimentary filesystem implementation for Terminal 2019-04-09 23:07:12 -07:00
danielyxie
3241945452 Added hacknet node api functions for spending hashes. Fixed several bugs with v0.46.0. Rebalanced hash upgrades. continued working on terminal directory implementation 2019-04-05 02:08:41 -07:00
danielyxie
b5ebbba43d Fixed merge conflicts with dev 2019-04-03 17:12:11 -07:00
danielyxie
4b95ba9ed1 Finished location code refactor. Has not yet been tested 2019-04-01 02:23:25 -07:00
danielyxie
804e4c23e3 Updated Hacknet Node API documentation for the BN-9 changes. netscript functions now properly fail for Hacknet Servers 2019-03-30 19:53:57 -07:00
danielyxie
51d9274626 Added effects for Source-File 9 2019-03-29 20:01:34 -07:00
danielyxie
18a3f061b4 Rebalanced new Hacknet Node mechanics. Adjusted Hacknet API so that it'll work with hacknet Servers. Fixed Corporation bug with Issuing new Shares 2019-03-29 16:14:32 -07:00
Olivier Gagnon
0f8f572519
Merge branch 'dev' into sleeve-buy-aug-api 2019-03-25 02:01:45 -04:00
danielyxie
34d749809a BitNode-9 initial implementation 2019-03-24 20:17:47 -07:00
danielyxie
856d02a129 v0.45.1 2019-03-23 19:40:35 -07:00
Olivier Gagnon
96db360a36 added sleeve aug api 2019-03-23 00:22:40 -04:00
danielyxie
dfd7aa2d2e Minor fixes to new Sleeve API 2019-03-19 16:38:49 -07:00
danielyxie
c3bc6a0c28 Changed Sleeve API functions to prevent conflicts with identically-named functions 2019-03-17 22:04:12 -07:00
Olivier Gagnon
08136524be use SourceFileFlags instead of hasSleeveSF 2019-03-17 18:15:10 -07:00
Olivier Gagnon
b132efbded doc for sleeve api 2019-03-17 18:15:10 -07:00
Olivier Gagnon
f8f4299ed5 getInfo and getTask sleeve api 2019-03-17 18:15:10 -07:00
Olivier Gagnon
060e0f7bfc get sync/shock 2019-03-17 18:15:10 -07:00
Olivier Gagnon
8df7f8de4b basic sleeve api 2019-03-17 18:15:10 -07:00
danielyxie
5230837dad Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2019-03-13 15:22:14 -07:00
Olivier Gagnon
da97c1b4b9 added getBlackOpRank 2019-03-13 15:21:31 -07:00
danielyxie
3e10f5de6d Migrated Corporation UI implementation to use React 2019-03-13 15:17:30 -07:00
danielyxie
fa4e98d06c Merge branch 'master' of https://github.com/danielyxie/bitburner into server-code-refactor 2019-03-04 23:29:01 -08:00
danielyxie
9879d07d7c Fixed a few minor bugs with submitting solutions for Coding Contracts. Started on Getting STarted Guide for wiki 2019-03-04 22:41:31 -08:00
Mason Dechaineux
67d083772a Fixed bug with rm terminal and ns commands that made non-exe files with .exe in their name undeletable. 2019-03-04 22:41:31 -08:00
danielyxie
473f0f1447 Refactored Server/Script/Files code to TypeScript 2019-03-04 17:40:28 -08:00
Mason Dechaineux
b26568bf7d Fixed bug with rm terminal and ns commands that made non-exe files with .exe in their name undeletable. 2019-02-26 00:47:29 -08:00
danielyxie
b7157b63e0 Implemented a money tracker that keeps record where all of the player's money comes from. Players can see a breakdown in the 'Stats' page 2019-02-22 13:22:39 -08:00
danielyxie
107977e6f4 Various bugfixes 2019-02-20 00:42:27 -08:00
danielyxie
c6a9675232 New BitNode multipliers, new Covenant Sleeve Purchasing feature. untested 2019-02-13 18:08:18 -08:00
danielyxie
0d43ed9c61 Merge branch 'master' of https://github.com/danielyxie/bitburner into dev 2019-02-09 23:25:51 -08:00
danielyxie
920d3d3f36 Fixed bugs with job requirement tooltips not appearing 2019-02-09 23:25:34 -08:00
danielyxie
840df3087f Various QOL improvements and bug fixes 2019-02-08 18:46:30 -08:00
danielyxie
df8468228f Fixed getCrimeChance() bug 2019-02-08 18:02:46 -08:00
danielyxie
0e8872fad1 Added 6 new Coding Contracts. Added Coding Contract information to documentation. 2019-02-05 16:45:12 -08:00
danielyxie
a09ea46a38 Added BitNode multipliers for purchased servers. Fixed bugs in new Script Editor implementation. Added documentation for script editors 2019-01-29 22:02:27 -08:00
danielyxie
d54f0906f0 Re-adjusted some stock market parameters. Improved Resleeving UI by allowing sort. Rebalanced Resleeve price. 0 is now a valid argument for number of threads when running scripts 2019-01-28 16:17:04 -08:00
danielyxie
8d2c007bcb Implemented new Editor Option: CodeMirror. (Vim mode not 100% done yet) 2019-01-27 14:08:45 -08:00
danielyxie
17bfbfeb80 Fixed merge conflicts. Fixed bug with Crimes 2019-01-18 10:04:04 -08:00
danielyxie
7db169f828 Refactored Main Menu UI implementation. Fixed several bugs related to recent JS -> TypeScript refactors 2019-01-18 09:57:21 -08:00
danielyxie
435d183645 Fixed bug with creating program through Singularity function 2019-01-16 21:28:36 -08:00
danielyxie
6d8d25e0bb Refactored Augmentation implementation to Typescript, and to have the multiplier information in the actrual Augmentation object 2019-01-15 05:11:14 -08:00
danielyxie
bcb231a966 Implemented Sleeve UI. Compiled but untested 2019-01-14 19:34:04 -08:00
danielyxie
ad1df00889 Home Computer now has max RAM 2019-01-09 02:43:59 -08:00
danielyxie
9db7aee34e Updated Stock market UI for new stock Max Shares restriction. Added Netscript function for getting a stock's max shares 2019-01-09 02:06:49 -08:00
danielyxie
ee831a87f8 Added hackAnalyze() functions. Fixed bug with gymWorkout() and Millenium Fitness Gym. Updated documentation for new functions 2019-01-08 21:26:20 -08:00
danielyxie
56a727ae48 Fixed havocmayhem getAugmentationPrereq() conflicts 2019-01-08 21:26:20 -08:00
danielyxie
736020b33a Added copy save to clipbaord option. Added getOrders netscript function. Fixed Corporation Bugs 2019-01-08 21:26:20 -08:00
havocmayhem
b540a56c50 Update NetscriptFunctions.js 2019-01-08 21:26:20 -08:00
havocmayhem
5758f874ad Update NetscriptFunctions.js 2019-01-08 21:26:20 -08:00
danielyxie
ab138ea477 Converted Programs and DarkWeb implementations to Typescript 2019-01-08 21:26:20 -08:00
danielyxie
48c694c9c1 Convert Locations and Faction implementations to TypeScript. Also restructed directory. Implemented Sleeve, but untested 2019-01-08 21:26:20 -08:00
danielyxie
a10833837f Added maximum number of shares per stock 2019-01-08 16:42:39 -08:00
danielyxie
23eb6908e0 Added hackAnalyze() functions. Fixed bug with gymWorkout() and Millenium Fitness Gym. Updated documentation for new functions 2019-01-03 00:39:32 -08:00
danielyxie
6bbfae976e Fixed havocmayhem getAugmentationPrereq() conflicts 2018-12-30 16:36:44 -08:00
danielyxie
669477626b Merge branch 'master' of https://github.com/havocmayhem/bitburner-1 into havocmayhem-master 2018-12-30 16:31:28 -08:00
danielyxie
5091b56ff2 Added copy save to clipbaord option. Added getOrders netscript function. Fixed Corporation Bugs 2018-12-30 16:11:48 -08:00
havocmayhem
984a2aa5d4
Update NetscriptFunctions.js 2018-12-30 21:07:24 +05:30
havocmayhem
7dd44446df
Update NetscriptFunctions.js 2018-12-30 20:58:42 +05:30
danielyxie
928faa5b4c Converted Programs and DarkWeb implementations to Typescript 2018-12-25 02:14:18 -08:00
danielyxie
5c8512c4b6 Convert Locations and Faction implementations to TypeScript. Also restructed directory. Implemented Sleeve, but untested 2018-12-07 02:54:26 -08:00
danielyxie
66d50a7ae4 Added growthAnalyze() NS function. Fixed GH issue #492. In Gang mechanic, added new hacking augs/upgrades. Also rebalanced defense upgrades. Added new 'compact' main menu configuration 2018-11-19 21:54:03 -08:00
danielyxie
b242ca2f42 Fixed bugs with refactored Company/job code. Added 'expr' Terminal command 2018-11-17 16:23:48 -08:00
danielyxie
9b3ff6d2d3 Fixed merge conflicts with dev 2018-11-15 19:45:03 -08:00
danielyxie
d6bdc9433a Initial commit for company code refactor. Split out all components into separate files and converted to typescript 2018-11-15 17:28:23 -08:00
danielyxie
93f241029a In the Gang Mechanic, added ability to see your chance to win clash with other gangs. rm() now takes an optional parameter for server 2018-11-13 23:38:45 -08:00
danielyxie
40bfa030e5 Fixed netscript gang api functions purchaseEquipment() and ascendMember(). Used for...of rather than for...in 2018-11-13 14:42:15 -08:00
danielyxie
263b1250df Updated Changelog. Updated Version to v0.41.1. Fixed reference error bug in gang.ascendMember() Netscript function 2018-11-05 18:16:53 -06:00
danielyxie
063c24e739 Updated getScriptLogs() Netscript function to be able to get logs from another script 2018-11-04 17:57:31 -06:00
danielyxie
e2b7418780 Testing/bug fixes in v0.41.1. Updated Dev Menu features. Fixed 'Portfolio Mode' button on Stock market bugs 2018-11-04 17:03:53 -06:00
danielyxie
5b06a0b800 v0.41.0 QOL changes and suggestions 2018-11-04 17:03:53 -06:00
danielyxie
013af4e26c Refactored Stock market to store/accumulate cycles so that it's not completely useless when offline/tabbed out 2018-10-30 16:02:16 -05:00
danielyxie
43dc6f2309 Updated version to v0.41.0. Bug fixes for Gang API. Some Gang API functions now log. Final rebalancing for gang rework 2018-10-29 11:08:41 -05:00
danielyxie
f8d74cdf00 Updated changelog. Fixed dynamic RAM calculation bug. 2018-10-26 15:54:22 -05:00
danielyxie
9b5147da8c getCharacterInformation() Singularity fn now returns multiplier information 2018-10-26 15:54:22 -05:00
danielyxie
c56e18a0f9 Adding gang.getOtherGangInformation() function. Rebalancing 2018-10-24 20:26:53 -05:00
danielyxie
58c67415c1 More gang rebalancing. Removed penalty for committing crimes through Singularity functions 2018-10-24 13:20:51 -05:00
danielyxie
4c3219bb9e Revert "Revert "Gang rework""
This reverts commit be0a08d70caacd9bc3a43faab2825cd5f3c68e1f.
2018-10-23 13:55:42 -05:00
danielyxie
be0a08d70c
Revert "Gang rework" 2018-10-23 13:47:00 -05:00
danielyxie
e073c08011 Added documentation for Gang API. Added dev menu options for Gang mechanic 2018-10-22 13:45:08 -05:00
danielyxie
0cdfe590a7 Finished Gang API. Rebalanced the way Gang territory works. Added discount feature for purchasing Gang member equipment 2018-10-21 20:04:32 -05:00
danielyxie
e73ebe843f Gang-rework bugfixes and rebalancing. Started adding Gang API 2018-10-19 19:30:02 -05:00
danielyxie
3bd7ad77b7 Adjusted RAM costs for Singularity functions and document/window. Fixed bug with calling print() in NetscriptJS 2018-10-17 15:32:15 -05:00
danielyxie
27c2547252 Fixed bug where scp() NS function reported an invalid error. Added getStockVolatility() and getStockForecast() to netscript.js syntax highlighting. Fixed typo 2018-10-16 14:52:18 -05:00
danielyxie
5902c892de v0.40.5 2018-10-09 11:56:22 -05:00
danielyxie
f4391b19bc Fixed various Coding Contract bugs. Added getContractType() to coding contract API 2018-10-09 11:56:22 -05:00
danielyxie
2b3c58a17b v0.40.4 2018-10-01 19:51:32 -05:00
Santiago Kent
dea7bd79c8 Added the getStockSymbols method to the TIX API, wich returns an array of the tradable symbols 2018-10-01 19:51:32 -05:00
danielyxie
0e7b6599bb wget() Netscript function always returns a Promise 2018-10-01 19:51:32 -05:00
danielyxie
a7592250f3 Finished wget() Netscript fn implementation. Updated documentation 2018-10-01 19:51:32 -05:00
danielyxie
44ce4bc674 Added RAM usage calculations for wget() Netscript fn 2018-10-01 19:51:32 -05:00
danielyxie
427cdb48ba Initial commit for implemeenting wget and refactoring some Server-related code 2018-10-01 19:51:32 -05:00
danielyxie
11c60a87c2 grow() no longer reports Infinite growth when money is at 0 2018-10-01 19:51:32 -05:00
danielyxie
d624d2f86f Fixed bug with contract generation when player doesn't have a job. Added bladeburner.getActionRepGain() function 2018-10-01 19:51:32 -05:00
danielyxie
f78f0ec1a7 Implemented Coding Contracts 2018-10-01 19:51:32 -05:00
danielyxie
420fd0c5ad write()/read() now work for script files. You can now use angled brackets in tprint() (and create DOM elements). Added CodingContract implementation 2018-10-01 19:51:32 -05:00
danielyxie
56b2f581d8 Added donateToFaction(), isLogEnabled(), and getScriptLogs() Netscript functions. Added optional hacking/int level parameters to getHackTime/getGrowTime/etc functions 2018-09-11 13:56:23 -05:00
danielyxie
26fa9cfe82 Rebalanced Stock Market and Bladeburner. Refactored Stock class to Typescript 2018-09-06 11:07:59 -05:00
danielyxie
395fc3b9df Added tryWrite() as a native Netscript function. Updated documentation to reflect the fact that port handles no longer work in Netscript 1.0 2018-08-30 15:27:47 -05:00
danielyxie
5ede6be8e5 Refactored functions that calculate hacking time/exp gain/chance/ etc into a separate file 2018-08-30 12:00:38 -05:00
danielyxie
2bf6871ece V0.40.2 BUndle and minor bug/typo fixes 2018-08-25 23:26:42 -05:00
Daniel Xie
e4f02b298b Added Four Sigma (4S) Market Data feature, and its Netscript TIX API functions as well 2018-08-24 15:44:48 -05:00
Daniel Xie
de0f891d52 Various rebalances to Bladeburner: Buffed Augmentations. Simulacrum costs less rep but more money. Slightly more money gained from contracts. Operations give more rank. More Synthoid communities. Added getBonusTime() and getSkillUpgradeCost() to Bladeburner API. Operation count increases faster and is more randomized. Decreased rate at which contracts/ops level up 2018-08-11 20:05:32 -05:00
danielyxie
72bd1f22c5
Merge pull request #423 from Kline-/fix-getActionTime
Fix bladeburner.getActionTime returning null
2018-08-10 00:06:38 -05:00
Steven Evans
9a7fa5d12c
Merge branch 'dev' into refactor-out-circular-dependencies 2018-08-07 10:00:49 -04:00
Daniel Xie
faa5e807d5 Updating documentation and Netscripy syntax highlighting for v0.40.1 community update. Bitrunners now has CranialSignalProcessors 3-5. CyberSec now has Cranial Signal Processors 1-2. 2018-08-05 03:37:28 -04:00
Matthew Goff
9b099fcee9
Fix bladeburner.getActionTime returning null 2018-08-04 16:52:45 -05:00
Steven Evans
826a8799fa [refactor] Extracting Locations to its own file to remove circular dependency 2018-08-02 14:33:08 -04:00
Steven Evans
26b0840f26 [refactor] Breaking out page tracking from 'engine' 2018-08-02 14:33:07 -04:00
Steven Evans
7313d551f1 [refactor] Pulling out post to terminal to its own file. 2018-08-02 14:26:24 -04:00
danielyxie
93bada0119
Merge pull request #396 from hydroflame/favor-gain
added favor related funtions
2018-08-02 10:40:48 -04:00
Steven Evans
06a0b75b1c [feature] added "getPurchasedServerCost" NS function 2018-07-30 21:31:12 -04:00
Olivier Gagnon
142e141f6f added favor related funtions 2018-07-27 21:46:37 -04:00
danielyxie
b34057f2d3 Added more error line numbers to JS Interpreter. Reputation needed for megacorp faction reduced from 250k -> 200k. Fixed bladeburner.getActionobject() bug with general actions 2018-07-27 19:00:57 -05:00
danielyxie
47134a9640 Fixed bug where hacking special servers w/ no money would result in NaN because of a '0 / 0' in fortify() calculation 2018-07-25 15:58:36 -05:00
Olivier Gagnon
a4f2c3c7a8 added getOwnedAugmentation function 2018-07-25 00:31:17 -04:00
danielyxie
54ec0110e2
Merge pull request #362 from hydroflame/max-servers-func
Max servers func
2018-07-20 12:24:27 -05:00
Olivier Gagnon
54c0d97048 added bladeburner functions related to action levels 2018-07-20 00:06:59 -04:00
Olivier Gagnon
55650ab7a5 forgot my semicolons 2018-07-19 22:23:43 -04:00
Olivier Gagnon
a2b5ca10ac added purchasable servers functions to get constants 2018-07-19 22:21:11 -04:00
danielyxie
5845fa8702 Fixed merge conflicts 2018-07-15 20:48:27 -05:00
danielyxie
44e4325a5d
Merge pull request #358 from danielyxie/new-hacknetnode-api
New hacknetnode api
2018-07-15 20:43:04 -05:00
danielyxie
a605dd4491 Bladeburner API getCurrentAction() now returns null if current action is 'Idle' 2018-07-15 20:39:07 -05:00
danielyxie
2b38a8cd2a Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-07-14 20:06:23 -05:00
danielyxie
497186355f New Hacknet Node Netscript API - initial commit 2018-07-14 19:25:50 -05:00
Olivier Gagnon
4a17c5a49c limit fortifying to the amount of hck thread you needed to drain the server 2018-07-12 21:16:24 -04:00
danielyxie
e97861f42b Bladeburner API Improvements: Added getCurrentAction(). getSkillLevel() now fails if no argument is passed 2018-07-12 00:01:52 -05:00
danielyxie
3ffc820519 Fixed new Netscript1 Interpreter to work for functions returning Arrays/Objets. Untested. Also still needs new Hacknet Node implementation 2018-07-10 23:41:26 -05:00
danielyxie
dcd6292ed2 Fixed bugs with new HelperFunctions 2018-07-10 00:11:18 -05:00
Steven Evans
015524f049 [refactor] Moved 'powerOfTwo' to 'isPowerOfTwo' TS file 2018-07-08 20:17:52 -04:00