Commit Graph

812 Commits

Author SHA1 Message Date
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
danielyxie
9a0dd4b9ee
Merge pull request #286 from hydroflame/tor-green
Tor green
2018-06-13 09:10:52 -05:00
danielyxie
b0865c09f5
Merge pull request #285 from hydroflame/company-favor-format
Company favor format
2018-06-13 09:04:17 -05:00
danielyxie
ca484fa679
Merge pull request #281 from kristapsmelderis/fix#280
fix #280
2018-06-13 08:58:23 -05:00
danielyxie
ff12c87913
Merge pull request #279 from hydroflame/prevent-work-faction-bn2
prevent players from doing work through singularity in BN2 when the p…
2018-06-13 08:57:59 -05:00
danielyxie
84d239e7f8
Merge pull request #278 from hydroflame/fix-negative-growth
Fix negative growth
2018-06-13 08:54:47 -05:00
danielyxie
388ff30ed8
Merge pull request #263 from hydroflame/exec-log
exec, spawn, and run won't log when disableLog is set
2018-06-13 08:51:37 -05:00
Olivier Gagnon
af2e04db10 window and document symbold now occur impossibly high ram cost in nsjs 2018-06-13 03:57:25 -04:00
Olivier Gagnon
7362ead364 added options to suppress travel confirmation 2018-06-13 03:37:21 -04:00
Olivier Gagnon
bef2f07811 fixed 282 2018-06-13 01:02:26 -04:00
danielyxie
575b67440c v0.38.0 - Minor re-balancing and bug fixes in Bladeburner 2018-06-12 23:16:23 -05:00
Olivier Gagnon
6f82f67cea fix #277 2018-06-13 00:12:16 -04:00
Olivier Gagnon
758f00419b added ps function to netscript, returns the list of processes currently running on that server 2018-06-13 00:03:02 -04:00
Olivier Gagnon
cc5731baae enable/disable dev mode with a global var 2018-06-12 17:24:53 -04:00
Olivier Gagnon
ad90a0bb6f added home ram upgrade button, enable+disable intelligence, source file modifications 2018-06-12 16:44:21 -04:00
Olivier Gagnon
c2f2829e75 added stats related dev options 2018-06-12 16:06:05 -04:00
Olivier Gagnon
bc14a6a147 work on the dev menu 2018-06-12 15:27:37 -04:00