Commit Graph

1128 Commits

Author SHA1 Message Date
danielyxie
245bb5992d
Merge pull request #436 from Kline-/patch-1
Fix Speech Enhancement appearing twice for FSIG
2018-08-25 17:08:22 -05:00
Matthew Goff
251e18799b
Fix Speech Enhancement appearing twice for FSIG 2018-08-24 16:44:08 -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
815762bddd Attached Stock market Watchlist 2018-08-23 13:51:57 -05:00
Daniel Xie
c5841b65fe Fixed a bug where the special harcoded keywords that are search for in script RAM calculation would be counted once per 'scope' 2018-08-20 00:25:55 -05:00
Daniel Xie
f3732b2d74 Preventing exploits by progrmaming DOM button clicks in code 2018-08-17 15:06:18 -05:00
Daniel Xie
d556af0fd8 Converted pop-up boxes to use css flex 2018-08-12 14:45:35 -05:00
Daniel Xie
bb4094f879 Added option to disable hospitalization popup message 2018-08-12 00:39:37 -05:00
danielyxie
b15582ff71
Merge pull request #433 from danielyxie/bladeburner-rebalancing
Bladeburner rebalancing
2018-08-11 20:25:35 -05:00
danielyxie
e1bdf0100a
Merge pull request #432 from Kline-/stocks-use-numeral
Standardize log messages and switch from formatNumber to numeral.
2018-08-11 20:08:32 -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
Daniel Xie
b89437a52e Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-08-11 16:21:19 -05:00
Daniel Xie
5cc1a4ba01 Updated changelog with merged PRs 2018-08-11 16:21:11 -05:00
Matthew Goff
b65157df7f
Standardize log messages and switch from formatNumber to numeral. 2018-08-10 15:52:35 -05:00
danielyxie
c726ff1738
Merge pull request #431 from Kline-/fix-BN8
Move resetting stocks, gang, and corp to the end of the funcs.
2018-08-10 00:07:54 -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
danielyxie
be69d6b68a
Merge pull request #428 from hydroflame/patch-6
increase BB skill cost in BN12
2018-08-10 00:05:26 -05:00
Matthew Goff
549b3f34a3
Move reseting stocks, gang, and corp to the end of the funcs. Should fix #421. 2018-08-08 18:04:40 -05:00
Steven Evans
9a7fa5d12c
Merge branch 'dev' into refactor-out-circular-dependencies 2018-08-07 10:00:49 -04:00
Olivier Gagnon
e0ee08ec45
increase BB skill cost in BN12 2018-08-06 22:26:56 -04:00
Daniel Xie
a1a69b8042 Prevent dev menu from being shown in produ 2018-08-06 21:15:31 -04:00
Daniel Xie
171d98c891 Updated changelog and version. Adding v0.40.1 bundle 2018-08-06 19:21:37 -04:00
Daniel Xie
c0db61c78f Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-08-06 19:11:25 -04:00
Daniel Xie
dac64d188b Fixed bug with executing HTTPWorm program from Terminal 2018-08-06 19:11:14 -04:00
Daniel Xie
ea6cc3da55 Fix array/object bug with new JS Interpreter for Port functions (read, write, and tryWrite) 2018-08-06 10:25:22 -05: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
danielyxie
d1b3fb9b41
Merge pull request #422 from Kline-/cleanup-aug-desc
Cleanup augmentation descriptions
2018-08-04 17:21:26 -04:00
danielyxie
51c7630dd2
Merge pull request #404 from hydroflame/semicolon
added semicolon support to terminal as well as autocomplete support f…
2018-08-04 17:16:09 -04:00
Matthew Goff
7e311d0592
Cleanup augmentation descriptions 2018-08-04 15:14:52 -05:00
Daniel Xie
44e45af2fe Removed console.log statement 2018-08-03 16:54:11 -05:00
Daniel Xie
1ce9a5308d Fixed bug in Changelog text. Properly credited kopelli for Active Server UI Ram usage change 2018-08-03 10:50:20 -05:00
Daniel Xie
4a56076ba9 Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-08-03 10:41:56 -05:00
Daniel Xie
5ba1433898 Updated changelog for merged PRs 2018-08-03 10:41:52 -05:00
danielyxie
2f9897255e
Merge pull request #416 from kopelli/active-scripts-ram-usage
Servers on Active Scripts now show a ram usage bar
2018-08-03 11:41:16 -04:00
danielyxie
9b0db28d00
Merge pull request #415 from kopelli/active-scripts
Active Scripts list no longer jumps down on first update
2018-08-03 11:38:50 -04:00
danielyxie
3bc76f10d1
Merge pull request #417 from Kline-/patch-6
Remove extraneous logging
2018-08-03 11:36:13 -04:00
Olivier Gagnon
ddca5ae987 character overview element reuse 2018-08-03 10:54:13 -04:00
Matthew Goff
aa8fdae2df
Remove extraneous logging
This is already logged [here](b00d2acc00/src/Bladeburner.js (L1185))
2018-08-02 18:45:49 -05:00
Steven Evans
530ae48e79 [feat] Servers on Active Scripts now show a ram usage bar 2018-08-02 16:14:48 -04:00
Steven Evans
ba3f637eb1 [feat] Active Scripts list no longer jumps on first update 2018-08-02 15:53:53 -04:00
Steven Evans
edcfe71eed [refactor] Moving BitNodeMultipliers to its own file to break cyclical
module references.
2018-08-02 14:33:08 -04:00
Steven Evans
974bc3c002 [refactor] Moved Settings to TypeScript
Moved the UI binding to a separate file as there is still a circular
dependency with 'engine'. But every other file that depends on Settings
is no longer part of a larger dependency cycle.
2018-08-02 14:33:08 -04: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
56da0f9214 [refactor] Pulling out createStatusText from Engine 2018-08-02 14:33:06 -04:00
Steven Evans
7313d551f1 [refactor] Pulling out post to terminal to its own file. 2018-08-02 14:26:24 -04:00
Steven Evans
0bea4e0430 [refactor] Breaking out key codes
Trying to start breaking apart the large circular dependencies between
modules. Most of the dependencies are similar to this pattern where
there is one stand-alone member that is needed, so the entire module
gets brought along with.
2018-08-02 14:23:50 -04:00
Steven Evans
1412b01be5 [style] Fixing TSLint violations 2018-08-02 14:23:49 -04:00
Daniel Xie
357e600cf2 Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-08-02 10:08:27 -05:00
Daniel Xie
702fdf307a Merge branch 'master' of https://github.com/danielyxie/bitburner into dev 2018-08-02 10:08:19 -05:00
Daniel Xie
2c3af9c86e Updated changelog for merged PRS 2018-08-02 10:06:29 -05:00
Olivier Gagnon
ce13c1bb2f
Merge branch 'dev' into semicolon 2018-08-02 11:04:21 -04:00
danielyxie
b5e8d61ad6
Merge pull request #407 from kopelli/refactor-programs-from-terminal
Refactor - Determine program execution from terminal via hashmap instead switch statement
2018-08-02 10:57:26 -04:00
danielyxie
c2be5df1f5
Merge pull request #406 from kopelli/fix-dev-programs
Fixing Program list in dev menu
2018-08-02 10:55:27 -04:00
danielyxie
81c97aefb9
Merge pull request #397 from hydroflame/smooth-bitnode-hacking-level
made hacking level calculation smoother with regards to bitnode multi…
2018-08-02 10:54:52 -04:00
danielyxie
508e016859
Merge pull request #391 from hydroflame/patch-3
Made BN12 difficulty scale faster
2018-08-02 10:52:47 -04:00
danielyxie
d38cf88c50
Merge pull request #405 from hydroflame/detect-main
fixed nsjs script with no main causing unkillable zombie scripts
2018-08-02 10:43:43 -04:00
danielyxie
93bada0119
Merge pull request #396 from hydroflame/favor-gain
added favor related funtions
2018-08-02 10:40:48 -04:00
danielyxie
1c927c53cd
Merge pull request #395 from hydroflame/prevent-raid-fail
Prevent doing blade raids when commsEst is zero
2018-08-02 10:36:10 -04:00
danielyxie
27ac2a911a
Merge pull request #393 from Kline-/patch-3
Add CranialSignalProcessor prereqs
2018-08-02 10:33:41 -04:00
danielyxie
923c69943f
Merge pull request #412 from kopelli/fix-timestamp
Fix timestamp
2018-08-02 10:27:43 -04:00
danielyxie
dcbdac0c1b
Merge pull request #388 from hydroflame/buy-rp-negative
cna buy the red pill with negative money
2018-08-02 10:24:27 -04:00
danielyxie
f54f9a0cca
Merge pull request #385 from hydroflame/bonus-time
Display bonus time in bladeburner
2018-08-02 10:22:48 -04:00
danielyxie
4ea6c4840c
Merge pull request #360 from kopelli/scss
Incorporate SCSS for styling/bundling
2018-08-02 10:18:36 -04:00
Olivier Gagnon
fcabaf1365
Update BitNode.js 2018-08-01 17:10:19 -04:00
Steven Evans
3130b410e2 [refactor] pulling getTimestamp off Terminal 2018-08-01 13:38:54 -04:00
Steven Evans
0345daf359 [bug] Fixing the timestamp
getMonth() is 0-based, so changing the offset.

getDay() is the day of week, not day of the month.

Ensuring hours & minutes are always two digits.
2018-08-01 12:55:01 -04:00
Olivier Gagnon
1cf276fa99 deleted the file 2018-07-31 01:21:29 -04:00
Olivier Gagnon
873114d52f nuke unused code 2018-07-31 01:20:06 -04:00
Steven Evans
a09fcd21ca [refactor] Determine program execution from terminal via hashmap instead
of switch statement.

Introducing variables within the case block of a switch statement can be
problematic and confusing as case statements do not have their own
scope, and thus are hoisted to the function level. Thus, with a large
enough switch statement, variable declarations could easily be
overlooked as they are peppered throughout the cases. This is especially
problematic for 'const' and 'let' declarations, which are very concerned
about scoping. There is an ESLint rule specifically enabled to catch
this behavior.

This refactoring is a way to mitigate the behavior, while still allowing
for the use of 'const'.
2018-07-31 00:18:38 -04:00
Steven Evans
977d8b7d71 [bug] Fixing Program list in dev menu 2018-07-31 00:14:37 -04:00
Steven Evans
06a0b75b1c [feature] added "getPurchasedServerCost" NS function 2018-07-30 21:31:12 -04:00
Olivier Gagnon
8b49a68f85 fixed nsjs script with no main causing unkillable zombie scripts 2018-07-30 21:01:09 -04:00
Olivier Gagnon
c4b25a0c90 added semicolon support to terminal as well as autocomplete support for semicolon commands 2018-07-30 20:16:39 -04:00
danielyxie
fabc45f496 Fixed bug with calling scp() on an array 2018-07-29 15:14:24 -05:00
Olivier Gagnon
68f3423ef5
Update BitNode.js 2018-07-29 03:49:45 -04:00
Olivier Gagnon
55abdc11b3
Update BitNode.js 2018-07-29 03:41:09 -04:00
Olivier Gagnon
e7b185661b
Update BitNode.js 2018-07-29 03:39:43 -04:00
danielyxie
b18b6cf380 Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-07-27 22:03:57 -05:00
danielyxie
58b1006b91 Updated version and changelog 2018-07-27 22:03:43 -05:00
Olivier Gagnon
14b318f828 made hacking level calculation smoother with regards to bitnode multiplier 2018-07-27 21:50:25 -04:00
Olivier Gagnon
142e141f6f added favor related funtions 2018-07-27 21:46:37 -04:00
Olivier Gagnon
ba7ebad399 prevent raid when est is zero 2018-07-27 20:58:52 -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
Matthew Goff
be10d14cc5
Add CranialSignalProcessor prereqs 2018-07-27 16:29:14 -05:00
Olivier Gagnon
498dba1b73
floor bitburner skill cost to handle rational BladeburnerSkillCost 2018-07-27 14:48:20 -04:00
Olivier Gagnon
b04cc680a2
Update BitNode.js 2018-07-27 14:44:24 -04:00
Olivier Gagnon
b9013c5118
Merge branch 'dev' into patch-3 2018-07-27 14:42:19 -04:00
Olivier Gagnon
59160f1f93
Made BN12 difficulty scale faster 2018-07-27 14:41:13 -04: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
danielyxie
a27ecca7bf Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-07-25 15:00:43 -05:00
danielyxie
ab0f7ea4f1
Merge pull request #389 from hydroflame/red-save
Save Game is red when autosave is disabled.
2018-07-25 14:57:59 -05:00
danielyxie
eb4fd7fe5a
Merge pull request #387 from hydroflame/get-owned-source-files
added getOwnedAugmentation function
2018-07-25 14:56:45 -05:00
danielyxie
5161ca7739 JS-Interpreter fix sprintf and vsprintf by converting JS Interpreter objects to Native objects when passing in arguments. JS-Interpreter add error/exception line numbers wherever possible 2018-07-25 14:53:54 -05:00
Olivier Gagnon
a465db4e74 save game now glows red if you dont have autosave enabled 2018-07-25 00:56:52 -04:00
Olivier Gagnon
40d550992a cna buy the red pill with negative money 2018-07-25 00:40:28 -04:00
Olivier Gagnon
a4f2c3c7a8 added getOwnedAugmentation function 2018-07-25 00:31:17 -04:00
Olivier Gagnon
9f43a7208c gave distinct fl1ght message when conditions are fulfilled 2018-07-25 00:11:35 -04:00
Olivier Gagnon
bd105bbb45 added bonus time display to blade 2018-07-24 23:52:53 -04:00
danielyxie
49d081f42e Updated development bundle. Updated changelog 2018-07-24 17:22:48 -05:00
danielyxie
2ec2203d67 Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-07-24 17:00:28 -05:00
danielyxie
8ec4cefd8c
Merge pull request #372 from hydroflame/patch-2
Update Faction.js
2018-07-24 14:42:21 -05:00
danielyxie
1f686e88c7
Merge pull request #371 from hydroflame/patch-1
This has been annoying me
2018-07-24 14:41:48 -05:00
danielyxie
10ba1fa71e
Merge pull request #370 from Kline-/patch-2
Add LuminCloaking1 as prereq to LuminCloaking2
2018-07-24 14:41:11 -05:00
danielyxie
418cbf24d9
Merge pull request #369 from Kline-/patch-1
Fix typo
2018-07-24 14:40:19 -05:00
danielyxie
ccedd38370
Merge pull request #380 from hydroflame/bladeburner-clarity
clarified skill description
2018-07-24 14:14:45 -05:00
danielyxie
ab287b7c44 Updated documentation for new Netscript. Added new polyfills for new JS interpreter 2018-07-24 13:29:38 -05:00
Olivier Gagnon
563bc7d531 prevent bladeburner api from leveling past max level 2018-07-23 21:34:26 -04:00
Olivier Gagnon
86d46afb33 clarified skill description 2018-07-23 18:49:53 -04:00
Olivier Gagnon
bb3bb9f297
Update Faction.js 2018-07-22 19:58:42 -04:00
Olivier Gagnon
02c87fce80
Update Bladeburner.js 2018-07-22 13:55:17 -04:00
Matthew Goff
7879064cf3
Add LuminCloaking1 as prereq to LuminCloaking2
The description didn't explicitly state that the lower levels were not prereqs (like Neurotrainer does), so I'm assuming this was just an oversight.
2018-07-22 12:42:55 -05:00
Matthew Goff
15d441f8a6
Fix typo 2018-07-22 08:20:13 -05:00
danielyxie
a39dda019e Update changelog. Fix missing spaces in Faction Infos. UPdate Beta branch update text 2018-07-20 13:21:43 -05:00
danielyxie
b822a2447d
Merge pull request #359 from kopelli/remove-loading-screen
[refactor] Pulled 'removeLoadingScreen' out of Engine
2018-07-20 12:26:34 -05:00
danielyxie
54ec0110e2
Merge pull request #362 from hydroflame/max-servers-func
Max servers func
2018-07-20 12:24:27 -05:00
danielyxie
ffb55206fa
Merge pull request #363 from hydroflame/bladeburner-api-actions-levels
added bladeburner functions related to action levels
2018-07-20 09:59:21 -05:00
danielyxie
88755f1d0f Added import functionality to Netscript 1.0 2018-07-20 09:28:03 -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
523bfc18d1 Beta branch now always shows update when opening game 2018-07-18 21:23:49 -05:00
danielyxie
2b21e93a14 Rebalancing Infiltration by decreasing starting Infiltration security b 10% 2018-07-18 16:11:44 -05:00
danielyxie
08862109fe Source-File 12's effect is now multiplicative with itself again (reverted from a previous update). Source-File 6 now also affects combat stat level, not just exp gain 2018-07-18 16:00:52 -05:00
danielyxie
af40edfb7d Added new Hacknet Node API documentation 2018-07-18 15:33:22 -05:00
Steven Evans
681401b7b0 [refactor] Converting all font-size to be based on $defaultFontSize 2018-07-17 12:09:19 -04:00
Steven Evans
9b5b997b6d [chore] Introducing SCSS, renaming existing files.
Not utilizing any functionality yet, just setting up for refactorings.
2018-07-17 11:55:04 -04:00
Steven Evans
3faed7caf2 [refactor, chore] "Compile" CSS via Webpack
This may seem unnecessary (and odd to import CSS files into JS...), but
this sets up the project for being able to keep the distributed
(release) resources all together, as well as setting the stage for
introducing something like SCSS.
2018-07-16 23:22:24 -04:00
Steven Evans
bd814446d5 [refactor] Pulled 'removeLoadingScreen' out of Engine 2018-07-16 14:20:01 -04:00
danielyxie
e4742289c7 BN-12 now properly affects Bladeburner multipliers. Added polyfill in new JS interpreter for Array.includes. Fixed terminal not focusing with tab" 2018-07-16 01:00:57 -05: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
c449dee97e Fixed bug with Corporaiton healthcare. Fixed bug with new netscript 1.0 JS Interpreter properly throwing errors 2018-07-15 13:03:33 -05:00
danielyxie
2b38a8cd2a Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-07-14 20:06:23 -05:00
danielyxie
b40c247dcb Bladeburner General actions now set both Name and Type in underlying ActionId 2018-07-14 19:59:27 -05:00
danielyxie
30740dbf23
Merge pull request #356 from hydroflame/limit-hack-security
limit fortifying to the amount of hck thread you needed to drain the …
2018-07-14 19:29:21 -05:00
danielyxie
497186355f New Hacknet Node Netscript API - initial commit 2018-07-14 19:25:50 -05:00
Olivier Gagnon
6514632b43 added shortcuts to corp, gang and blade under the world tab 2018-07-12 22:22:28 -04: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
28bebeb144 [refactor] Moved 'createAccordionElement' to its own TS file 2018-07-09 13:58:04 -04:00
Steven Evans
af40252ee9 [refactor] Moved 'clearSelector' to its own TS file. 2018-07-09 13:57:21 -04:00
Steven Evans
9e26ee7858 [refactor] Moved 'removeChildrenFromElements' to its own TS file 2018-07-08 21:18:44 -04:00
Steven Evans
95939a8818 [refactor] Moved 'removeElement' to its own TS file; deduped logic 2018-07-08 21:18:43 -04:00
Steven Evans
8016321bfb [refactor] Moved 'clearEventListeners' to its own TS file 2018-07-08 21:18:10 -04:00
Steven Evans
7edf5b5f1a [refactor] Moved 'clearObject' to its own TS file 2018-07-08 20:17:53 -04:00
Steven Evans
6701503c78 [refactor] Moved 'compareArrays' to its own TS file 2018-07-08 20:17:52 -04:00
Steven Evans
1f7ed8f791 [refactor] Moved 'appendLineBreaks' to its own TS file 2018-07-08 20:17:52 -04:00
Steven Evans
015524f049 [refactor] Moved 'powerOfTwo' to 'isPowerOfTwo' TS file 2018-07-08 20:17:52 -04:00
Steven Evans
1a5208f78f [refactor] Moved 'printArray' to 'arrayToString' TS file 2018-07-08 20:17:51 -04:00
Steven Evans
d20516b03c [refactor] Moved 'addOffset' to its own TS file 2018-07-08 20:17:51 -04:00
Steven Evans
875f7b4438 [refactor] Moved 'removeElementById' to its own TS file 2018-07-08 20:17:50 -04:00
Steven Evans
488f947a5b [refactor] Moved 'getElementById' to its own TS file. 2018-07-08 20:17:50 -04:00
Steven Evans
8c25684fe1 [refactor] Moved 'createPopup' to its own TS file. 2018-07-08 20:17:50 -04:00
Steven Evans
107f1de18d [refactor] Moved createElement into its own TS file
This is the start at separating out UI related work from potentially backend
related work. This distinction will help when Web Workers can be
introduced to get around the background tab limitation for scripts.
2018-07-08 20:17:49 -04:00
Steven Evans
bdb935d104 [refactor] Moved isValidIPAddress to its own TS file 2018-07-08 20:17:49 -04:00
Steven Evans
be9891d93b [refactor] Moved 'getRandomInt' to its own TS file 2018-07-08 20:17:49 -04:00
Steven Evans
39c9488768 [refactor] Moved 'roundToTwo' to its own TS file 2018-07-08 20:17:48 -04:00
Steven Evans
15e3b751da [refactor] Moved "exceptionAlert" to its own TS file
Since this is a UI only function, when Web Workers are introduced this
call chain will not be allowed on the backend.
2018-07-08 20:15:07 -04:00
Steven Evans
be577164e3 [refactor] Removed export of "numOccurrences"
Does not appear to actually be used outside of StringHelperFunctions.ts
2018-07-08 20:15:07 -04:00
Steven Evans
a6293474a9 [refactor] Moved "isString()" to its own TS file 2018-07-08 20:15:06 -04:00
Steven Evans
187b5051b9 [refactor] Moved "createProgressBarText" to its own TS file 2018-07-08 20:15:06 -04:00
danielyxie
78c5a1b0f4 Initial commit for new Netscript 1 Intepreter 2018-07-08 18:53:24 -05:00
danielyxie
fde2b8cbc1 Infiltration can no longer be done programmatically. HP is reset when prestiging 2018-07-07 19:16:58 -05:00
danielyxie
f33bc59768
Merge pull request #349 from hydroflame/fix-donate-invalid-input
Fix donate invalid input
2018-07-06 17:07:44 -05:00
Olivier Gagnon
2090554238 fixed ramUsed wrong calculation 2018-07-05 23:15:01 -04:00
Olivier Gagnon
7721bfc6c8 clearing the faction donate text field no longer says invalid amount, also formatting 2018-07-05 12:59:20 -04:00
danielyxie
a165880fff Fix typo with Source File 12 2018-07-05 00:00:13 -05:00
danielyxie
7cc759f314 Updated version to v0.39.1. Production Build. Updated documentation 2018-07-04 23:52:54 -05:00
danielyxie
30b9624e1f Updated documentation 2018-07-03 21:12:46 -05:00
danielyxie
3213032427 Fixed incompatibility issues with Edge (due to spread syntax). Fixed issue with Terminal autocomplete and capitalized commands. Script ram is now rounded to 2 decimal places 2018-07-02 22:35:12 -05:00
danielyxie
c8421168b6 Copying a NetscriptJS script with scp now properly clears its 'module'. 2018-06-29 00:39:05 -05:00
Steven Evans
8624fff015
Merge branch 'dev' into eslint 2018-06-27 23:42:42 -04:00
danielyxie
300cd01cc8
Merge pull request #344 from kopelli/lint-cleanup
[style] Cleaning up TSLint violations
2018-06-27 22:39:50 -05:00
danielyxie
0de312a047
Merge pull request #347 from danielyxie/infiltration-improvements
Finishing Infiltration returns to company page. Infiltration remember…
2018-06-27 22:37:10 -05:00
danielyxie
393ce096fd Finishing Infiltration returns to company page. Infiltration remembers selected faction 2018-06-27 22:34:57 -05:00
Olivier Gagnon
611b9d2b12 fix crime parameter 2018-06-27 21:47:09 -04:00
danielyxie
e2b2fb66f3 Rebalancing BN - 7 and several Source Files 2018-06-27 18:28:11 -05:00
Steven Evans
f372f1e693 Merge branch 'dev' into eslint 2018-06-26 22:04:45 -04:00
Steven Evans
2b5090a273 [style] Cleaning up TSLint violations
Adding a few custom types and documentation to clean up TSLint rule
violations. Included some usage of rule disabling for things like long
lines where we need to extract text that the user would see. That level
of text should really be separated from the logic.
2018-06-26 21:40:26 -04:00
danielyxie
18e47ee7c4 Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-06-26 16:58:45 -05:00
Olivier Gagnon
048cbb0910 faction into to ts 2018-06-26 16:34:14 -04:00
Olivier Gagnon
7927e2bfe7 little more ts 2018-06-26 16:10:04 -04:00
danielyxie
219568d8af Fixing merge conflicts 2018-06-26 13:17:07 -05:00
Olivier Gagnon
50a1e83b55 more .js wrongly removed 2018-06-26 13:38:55 -04:00
Olivier Gagnon
40b29ea3c0 woops, sed overkill 2018-06-26 13:27:57 -04:00
Olivier Gagnon
6bdf946790 remove all .js from all appplicable imports 2018-06-26 12:34:11 -04:00
danielyxie
f9943db71d Adding description to SourceFile 7 2018-06-26 09:59:44 -05:00
danielyxie
13dbd9f26c Merge PRs and fix issues 2018-06-26 09:49:28 -05:00
danielyxie
89ecb15b6f
Merge pull request #324 from hydroflame/hydroflame-convert-ts
first conversion
2018-06-25 20:02:40 -05:00
danielyxie
0343ba863b
Merge pull request #323 from hydroflame/fix-negative-security-growth
cap difficulty and fix negative security growth
2018-06-25 19:59:48 -05:00
danielyxie
60c308a28f
Merge pull request #321 from hydroflame/buy-aug-setting
moved the suppress buy aug confirmation to settings, will now persist
2018-06-25 19:42:17 -05:00
danielyxie
d2a1443960
Merge pull request #320 from hydroflame/move-tor-html
[SMALL] moved all tor-html related code to one place, hurray for decoupling
2018-06-25 19:40:59 -05:00
danielyxie
b2a24002ee
Merge pull request #266 from hydroflame/streamline-create-programs
Streamline create programs
2018-06-25 19:34:08 -05:00
danielyxie
75ff10b5c2 Added documentation for Bladeburner API. Fixed typo in BN-7 description. 2018-06-25 14:07:03 -05:00
danielyxie
ca15e689ef More rebalancing of Infiltration. Updating version to v0.39.0 2018-06-25 12:29:51 -05:00
danielyxie
6193faa44a
Merge pull request #331 from hydroflame/format-fl1ght
Format fl1ght, fix #328
2018-06-24 22:29:49 -05:00
danielyxie
58753f9c89 Added Bladeburner functions and 'bladeburner' keyword to syntax highlighter for Netscript. Fixed a bug with bladeburner.getSkillLevel() Netscript fn 2018-06-24 22:07:05 -05:00
danielyxie
8c8574878c Rebalanced infiltration by making base difficulty lower, slightly decreasing the difficulty gain, and increasing money/exp rewards 2018-06-24 21:50:03 -05:00
Steven Evans
877432f3ac Merge branch 'dev' into eslint 2018-06-24 21:58:02 -04:00
Olivier Gagnon
c830f08081 format fl1ght money like the rest of the money 2018-06-24 21:08:40 -04:00
danielyxie
22b64dcc4a Implemented BN-7 2018-06-24 19:13:50 -05:00
Steven Evans
52269759ec [chore] Adding ESLint
This is a baseline ESLint configuration, with *A LOT* of rules disabled.
All rules that are enabled already conform to the codebase. As code
clean up starts to happen, rules can be enabled one-by-one.
2018-06-22 22:28:59 -04:00
Olivier Gagnon
3af76f50ab
Merge branch 'dev' into streamline-create-programs 2018-06-22 20:48:26 -04:00
Olivier Gagnon
53ddfbc9ec first conversion 2018-06-22 17:30:24 -04:00
danielyxie
343d474702
Merge pull request #318 from hydroflame/darkweb-autolink
added autolink to darkweb
2018-06-22 15:13:48 -05:00
danielyxie
5ad481893b
Merge pull request #322 from hydroflame/time-since-bitnode
added time since last bitnode timer
2018-06-22 15:13:03 -05:00
danielyxie
3a291cf4dd
Merge pull request #303 from kopelli/typescript
Add Typescript and TSLint to the tool chain
2018-06-22 15:11:49 -05:00
Olivier Gagnon
fbc9627344 cap difficulty and fix negative growth 2018-06-22 15:41:55 -04:00
danielyxie
aa17b02da7 Added var declaration in Netscript 1.0. Loops and conditionals no longer incur RAM cost, but base RAM cost increased from 1.4 to 1.6 GB 2018-06-22 14:39:15 -05:00
Olivier Gagnon
4f9ae82b4b added time since last bitnode timer 2018-06-22 15:38:25 -04:00
Olivier Gagnon
8f30a2246c using classList instead of setAttributes 2018-06-21 13:52:34 -04:00
Olivier Gagnon
15b0c11731 moved the suppress buy aug confirmation to settings, will now persist 2018-06-21 13:32:21 -04:00
Olivier Gagnon
9dc96c51cb moved all tor-html related code to one place, hurray for decoupling 2018-06-21 13:00:33 -04:00
danielyxie
24cd1bb498 Merge branch 'master' of https://github.com/danielyxie/bitburner into dev 2018-06-21 10:49:40 -05:00
Steven Evans
942c26b27e
Merge branch 'dev' into typescript 2018-06-20 22:10:20 -04:00
Olivier Gagnon
0ea6312d49
Merge branch 'dev' into streamline-create-programs 2018-06-20 18:50:08 -04:00
Olivier Gagnon
3ab23df8d7 terminal autocompletes darkweb better 2018-06-20 18:34:39 -04:00
Olivier Gagnon
01a5911ee1 added autolink to darkweb 2018-06-20 18:27:13 -04:00
danielyxie
abfb1b1947
Merge pull request #301 from hydroflame/beautify
Add a button to beautify scripts in text editor
2018-06-20 16:57:58 -05:00
danielyxie
91d53d93a1
Merge pull request #298 from hydroflame/corporation-styling
Corporation styling
2018-06-20 16:57:07 -05:00
danielyxie
856f7a0cd2
Merge pull request #264 from hydroflame/streamline-darkweb
streamline darkweb
2018-06-20 16:56:10 -05:00
Olivier Gagnon
cab8dbf5d9 made skill calculation smoother 2018-06-19 00:37:56 -04:00
danielyxie
f5be9e5da7 Fix bug with spawn() 2018-06-17 14:19:43 -05:00
danielyxie
f33806e189 Updated tover sion v0.38.1 2018-06-15 14:05:53 -05:00
danielyxie
d38cfc61bd Merge branch 'dev' of https://github.com/danielyxie/bitburner into dev 2018-06-15 01:09:54 -05:00
danielyxie
b4cec584f6
Merge pull request #299 from hydroflame/fix-grow-security
fix growth not increasing security if server reaches max money
2018-06-15 01:09:17 -05:00
danielyxie
bee20b090c
Merge pull request #296 from hydroflame/serverExists-all-true
fixed serverExists returning true for non-existent IPs
2018-06-15 01:04:52 -05:00
danielyxie
c365696447 Reverse const change in Script RAM parser. Built documentation 2018-06-15 00:58:35 -05:00
danielyxie
8620a4d30c Fix issue with 'Object.prototye' functions throwing errors during NetscriptJS RAM calculation. Fixed type with new Travel Confirmation setting loading to the correct initial value. Fixed Competition/Demand display for Products. Changed RAM for window/document access to be 100 2018-06-14 14:51:06 -05:00
Steven Evans
9c09e44db2 [refactor, chore] Including TSLint; fixing most things.
As it currently stands, bringing in TSLint with *all* rules enabled by
default and override each as we go. This means that as we upgrade and
bring in new rules we might start seeing new rules that the code
violates.

Because all the rules are enabled by default, the choice to explicitly
disable/relax rules can be discussed as part of PRs.

This also brought in strict type checking. This means we shouldn't be
relying on truthy/falsey value coercion. It also means that we will
likely need to create some type definition files or port certain files
over. That...will be a bit tedious, but will make the codebase better as
a whole.
2018-06-14 14:57:44 -04:00
Steven Evans
67cee8642b [refactor] Converted TextFile to TypeScript 2018-06-14 09:11:28 -04:00
Olivier Gagnon
c35395e302 added beautifier button in text editor 2018-06-14 02:26:54 -04:00
Steven Evans
3e1ec388e0 [chore] Introduce TypeScript; Tested out with HelpText. 2018-06-13 23:38:35 -04:00
Olivier Gagnon
7c658e2966 growth now adds security even if the server reaches max, but only the amount that was needed 2018-06-13 17:27:26 -04:00
Olivier Gagnon
83aeb50605 unify dropdown and text input accross the app 2018-06-13 16:20:27 -04:00
danielyxie
d6620da22e Removed import of DevModeEnabled in engine.js. Removed JSON.stringify in webpack.config.js for build mode 2018-06-13 14:26:15 -05:00
danielyxie
89016aeed9 Added devmode. Enabled using build flag. Added new npm build scripts 2018-06-13 12:38:22 -05:00
Olivier Gagnon
bb68fa5806 fixed getServer instead 2018-06-13 12:34:32 -04:00
Olivier Gagnon
07c9f9e155 fixed server exists returning true for non-existent IPs 2018-06-13 12:16:12 -04:00
danielyxie
20e437844a Merge branch 'master' of https://github.com/danielyxie/bitburner into dev 2018-06-13 09:24:15 -05:00
danielyxie
b7b40d237a
Merge pull request #295 from hydroflame/prevent-document-nsjs
window and document symbold now occur impossibly high ram cost in nsjs
2018-06-13 09:22:47 -05:00
danielyxie
449df57edf
Merge pull request #294 from hydroflame/suppress-travel-confirm
added options to suppress travel confirmation
2018-06-13 09:19:50 -05:00
danielyxie
c663b5edc7
Merge pull request #289 from hydroflame/fix-277
Fix #277
2018-06-13 09:18:31 -05:00
danielyxie
fa42d4ee43
Merge pull request #288 from hydroflame/netscript-ps
Netscript ps function
2018-06-13 09:17:58 -05:00
danielyxie
2fc17e973c
Merge pull request #292 from hydroflame/fix-282
fixed 282
2018-06-13 09:15:38 -05:00