Martin Fournier
a9e2e35446
Move theme related things into its own subfolder
...
This will make contributions easier and less prone to conflicts.
2022-01-20 18:41:48 -05:00
Martin Fournier
aae3851d59
Add webpack file-loader to handle images
...
It lets us bundle static files such as images.
Allows us to `imports img from "./img.png"` to retrieve an image's path.
Note that we'll have to add other entries in the global.d.ts file if we
want to handle other extensions than .png.
Adds mocks to Jest tests so that we don't fail tests when loading static
assets.
2022-01-20 18:41:48 -05:00
Olivier Gagnon
f7d18efaf6
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-01-20 16:14:35 -05:00
Olivier Gagnon
77f525c98c
rm blob caching
2022-01-20 16:11:48 -05:00
hydroflame
ca7b8068ea
Merge pull request #2713 from JohnnyUrosevic/dev
...
Change "import" to "important" in hackers-starting-handbook.lit
2022-01-20 12:24:45 -05:00
Martin Fournier
6e908814db
Add game version in document.title
...
Also add [dev] prefix when in development mode.
2022-01-20 09:26:07 -05:00
Johnny Urosevic
81db1b0a97
Change "import" to "important"
2022-01-19 13:00:59 -08:00
Sage Pointer
5fc7993dff
Remove console spamming from CalculateShareMult
2022-01-19 02:47:51 +02:00
Olivier Gagnon
53727f6222
typo
2022-01-18 19:20:16 -05:00
Olivier Gagnon
69cf98ff34
doc
2022-01-18 19:12:52 -05:00
Olivier Gagnon
d2ec38753b
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-01-18 18:59:17 -05:00
Olivier Gagnon
d0a44a6088
change asleep
2022-01-18 18:57:43 -05:00
hydroflame
bb34d6b582
Merge pull request #2618 from pigalot/Corp-Api-Updates
...
Corp api updates
2022-01-18 18:05:23 -05:00
hydroflame
b6f514dd4d
Merge pull request #2693 from nickofolas/fix/body-background
...
Use background primary for `<body>`
2022-01-18 17:50:49 -05:00
hydroflame
7bebc86b11
Merge pull request #2684 from nickofolas/improvement/script-editor
...
Script Editor Improvements
2022-01-18 17:49:07 -05:00
nickofolas
eb7a0ebace
Use background primary before #000000 for body
2022-01-18 16:15:36 -06:00
hydroflame
ae83eeacb7
Merge pull request #2689 from nickofolas/fix/singularity-focus
...
Fix Singularity focus arg issues
2022-01-18 17:00:12 -05:00
Olivier Gagnon
05cbc25a8f
1.4
2022-01-18 14:03:24 -05:00
nickofolas
2d38ce8f72
Fix focus arg for sing functions
2022-01-18 08:49:06 -06:00
nickofolas
89fd54698b
Fix ns.setFocus
2022-01-18 08:20:58 -06:00
nickofolas
258a1b262e
Update options button
2022-01-17 17:20:38 -06:00
nickofolas
a9314f2447
Show N/A when editing a txt file
2022-01-17 16:44:55 -06:00
nickofolas
c41cd68a8d
Add modal to editor with RAM details
2022-01-17 16:32:45 -06:00
nickofolas
c1b777733f
Improve clarity of editor tabs
2022-01-17 15:14:07 -06:00
hydroflame
c5089ab82a
Merge pull request #2664 from MartinFournier/feature/recovery
...
Add information to the recovery page
2022-01-17 16:05:00 -05:00
hydroflame
1d83247f8d
Merge pull request #2671 from gianfun/fix_ns_tail_behavior
...
Fix ns.tail() behaviour for multiple calls
2022-01-17 16:01:34 -05:00
hydroflame
25112acefb
Merge pull request #2654 from SlyCedix/bounded-logs
...
Bound log windows to screen
2022-01-17 16:01:16 -05:00
hydroflame
27a54217eb
Merge pull request #2653 from nickofolas/fix/refactor-loops
...
Refactor `for ... in` loops
2022-01-17 16:01:04 -05:00
hydroflame
f591935757
Merge pull request #2655 from SagePtr/patch-1
...
Fix "travel" achievement icon
2022-01-17 15:56:44 -05:00
hydroflame
574c541b2e
Merge pull request #2656 from SagePtr/patch-2
...
Minor fix to growth parameter description
2022-01-17 15:56:35 -05:00
hydroflame
8df950721c
Merge pull request #2657 from theit8514/grandparent-script-cache
...
Remove dependents from cache when dependency updated
2022-01-17 15:56:06 -05:00
hydroflame
ef89c2eb1d
Merge pull request #2660 from nickofolas/fix/extraneous-br
...
Remove extraneous line breaks from buttons
2022-01-17 15:55:51 -05:00
hydroflame
247c02856a
Merge pull request #2658 from smolgumball/clickable-ls-style-tweak
...
Fix issues with timestamps on same line as clickable script rows in `ls`
2022-01-17 15:55:22 -05:00
hydroflame
b5357ec04e
Merge pull request #2665 from MartinFournier/feature/ns-ui-getgameinfo
...
Add ns.ui.getGameInfo() to retrieve game version
2022-01-17 15:53:43 -05:00
hydroflame
abef252547
Merge pull request #2666 from MartinFournier/fix/dupe-cost
...
Remove duplicated 'cost' keyword for RAM cost.
2022-01-17 15:53:31 -05:00
hydroflame
5344548740
Merge pull request #2668 from MartinFournier/fix/locked-shortcuts
...
Shortcuts now check to see if feature is unlocked
2022-01-17 15:53:18 -05:00
hydroflame
4e5f05d269
Merge pull request #2667 from MartinFournier/fix/hash-cache-achievement
...
Add check for hash capacity > 0 for MAX_CACHE
2022-01-17 15:52:42 -05:00
hydroflame
b58a2c3cd5
Merge pull request #2674 from nickofolas/fix/help-format-fix-merge
...
Fix formatting lost in merge commit
2022-01-17 15:52:28 -05:00
hydroflame
2a8a958a7a
Merge pull request #2673 from MartinFournier/feature/sidebar-collapsed-tooltip
...
Add tooltips on sidebar icons when collapsed
2022-01-17 15:52:13 -05:00
hydroflame
a9a2764d62
Merge pull request #2672 from MartinFournier/fix/sidebar-stays-collapsed
...
Keep the sidebar opened or closed on reload
2022-01-17 15:52:01 -05:00
hydroflame
cd372c7a55
Merge pull request #2676 from TheMas3212/fix-2675
...
Add Formulas.exe on start of bitnode 5
2022-01-17 15:51:27 -05:00
hydroflame
cdb73319b2
Merge pull request #2679 from MartinFournier/fix/job-shortcut
...
Change job shortcut test to match sidebar item
2022-01-17 15:50:58 -05:00
hydroflame
facca0c2e3
Merge pull request #2680 from attrib/patch-2
...
Fix formatting of respect needed on gang UI
2022-01-17 15:50:24 -05:00
theit8514
31ebdbb139
Handle 'export default' in static RAM calculation
2022-01-17 13:16:03 -05:00
theit8514
423efe19e1
Remove dependents from cache when dependency updated
2022-01-17 12:02:00 -05:00
Karl Fritsche
c638b51e50
Fix formatting of respect needed on gang UI
2022-01-17 15:18:19 +01:00
Martin Fournier
82fe86820f
Change job shortcut test to match sidebar item
...
I switched it to match the same condition as the sidebar menu item,
which checks for player.companyName, which should be set to the latest
company the player worked at. This can prevent a crash loading the jobs
page with an invalid companyName.
This fixes a problem a user had where the player.companyName was empty
while actually items in player.jobs, but I could not figure out how
to replicate. It may have had something to do with part-time jobs.
2022-01-17 08:08:33 -05:00
TheMas3212
0ba4f07a34
Add Formulas.exe on start of bitnode 5
...
fixes #2675
2022-01-17 17:30:50 +11:00
nickofolas
7a31b19c88
Fix formatting lost in merge commit
2022-01-16 20:40:11 -06:00
Martin Fournier
490da6d374
Add tooltips on sidebar icons when collapsed
2022-01-16 17:11:12 -05:00
Martin Fournier
f9daf5df64
Keep the sidebar opened or closed on reload
...
Previously, going to a full-width page and heading back to the terminal would default the sidebar to its opened state regardless of what it was before.
Now it stores it in the GameRoot's state and also in the Settings so
that it persists over reloads.
2022-01-16 17:00:06 -05:00
Gian P
e38010a9a4
Revert "Logs button reopens log window"
...
This reverts commit 01efd372e95628d419575ade0e6536a458fd61d2.
2022-01-16 18:21:02 -03:00
Martin Fournier
a03e47593f
Shortcuts now check to see if feature is unlocked
...
The sidebar now checks if the Player has unlocked the features before using the router to head to the new page.
- Check added for Bladeburner
- Check added for Gangs
2022-01-16 11:31:52 -05:00
Martin Fournier
da7f161e45
Add check for hash capacity > 0 for MAX_CACHE
...
Achievement would trigger as soon as you entered the node as the
capacity was 0.
It looks like this fix was lost in a merge resolution (see PR #2459 )
2022-01-16 11:20:15 -05:00
pigalot
d34d720ab9
Office Size Upgrade Cost
2022-01-16 16:12:03 +00:00
pigalot
2246dd7fe6
Update src/ScriptEditor/NetscriptDefinitions.d.ts
...
Co-authored-by: Jack <phyzicaly@hotmail.com>
2022-01-16 16:12:00 +00:00
pigalot
416c4ad619
swap if for Math.min
2022-01-16 16:12:00 +00:00
pigalot
4f391682b7
Fix for unneeded extra =
2022-01-16 16:12:00 +00:00
pigalot
bd20f16a2d
Fix for AI Cores in smart supply
2022-01-16 16:12:00 +00:00
pigalot
4562102448
Fix for js docs
2022-01-16 16:11:32 +00:00
pigalot
62f40b3dc1
Add bribe
2022-01-16 16:11:32 +00:00
pigalot
ea88f5f150
spelling mistake
2022-01-16 16:11:32 +00:00
pigalot
1b1dc20c16
fix error message
2022-01-16 16:11:32 +00:00
pigalot
6533913b3b
add docs for create corp self fund
2022-01-16 16:11:32 +00:00
pigalot
19ecda1607
Fix doc bug
2022-01-16 16:11:32 +00:00
pigalot
1384b86810
Added better job assignment function, and fix docs
2022-01-16 16:11:32 +00:00
pigalot
abdc786403
prevent DreamSense from pushing over max
2022-01-16 16:11:32 +00:00
pigalot
e245cc471a
Prevent awareness and pop going over max
2022-01-16 16:11:31 +00:00
pigalot
98e8910c3a
Research func, gopublic function, and validation
2022-01-16 16:11:31 +00:00
pigalot
2269f79b15
Add investments to the api
2022-01-16 16:11:31 +00:00
pigalot
1b8c715a5e
Add costs and count function for ads
2022-01-16 16:11:31 +00:00
pigalot
42d767b443
Fix Bug with smart supply leftovers
2022-01-16 16:11:31 +00:00
pigalot
74019bc2be
Make list of divisions accessable on the corp
2022-01-16 16:11:31 +00:00
pigalot
360b8d8d16
Add has corp to the api player object
2022-01-16 16:11:31 +00:00
pigalot
2cfa589da6
Prevent seed money outside of 3
2022-01-16 16:11:31 +00:00
pigalot
e2bb76ae6d
Add createCorp
2022-01-16 16:11:31 +00:00
pigalot
bea6b0e0b1
Fix create corp text
2022-01-16 16:11:31 +00:00
pigalot
8729b54a9c
Make 3.3 unlock all corp APIs
2022-01-16 16:11:31 +00:00
Martin Fournier
739294da1d
Remove duplicated 'cost' keyword for RAM cost.
...
Only some of the entries had this, so I assume they were introduced by a bad find & replace.
2022-01-16 10:51:34 -05:00
Martin Fournier
07403eaaaa
Add ns.ui.getGameInfo() to retrieve game version
...
Returns { version, commit, platform }
2022-01-16 10:49:01 -05:00
Martin Fournier
65964c84b2
Add information to the recovery page
...
Adds error & environment information to the recovery page when
available. The info will be displayed when the error boundary catches an error only.
Otherwise, does a few minor tweaks to the UI of the page.
- Add DevPage button to throw an uncaught error to go into recovery
- Add "Delete Save" button in recovery from Game Options (refactored into its own
component)
- Use "Soft Reset" button from Game Options (refactored into its own
component)
- The "Soft Reset" & "Delete Save" buttons now have confirmations
- Add tooltip on "Disable Recovery Mode" button
- Add timestamp to the RECOVERY.json filename
- Add textarea containing markdown with the current error details, if
available
- Error
- Page
- Version
- Environment
- Platform
- UserAgent
- Features
- Source
- Stack Trace
- Change GitHub new issue link to contain default body & title, if possible
- Change links to not take the full width (they were clickable by mistake)
- Fix "Disable Recovery Mode" not resetting the ErrorBoundary's state,
making going back to terminal impossible
2022-01-16 09:07:53 -05:00
nickofolas
1eea092391
Remove extraneous line breaks from buttons
2022-01-16 01:31:06 -06:00
smolgumball
cb82907817
Fix issues with timestamps on same line as clickable script rows in ls
2022-01-15 21:29:12 -07:00
Sage Pointer
32982f4ee8
Minor fix to growth parameter description
2022-01-16 04:44:50 +02:00
Sage Pointer
12ad8b7d03
Fix "travel" achievement icon
2022-01-16 04:27:27 +02:00
Cyn
8d7b71c5aa
Prevent dragging log window off screen & reset log window position if resized off screen
2022-01-15 20:52:02 -05:00
SlyCedix
c25067c062
bound log box to parent div
2022-01-15 20:52:02 -05:00
nickofolas
ab841f7530
Refactor for ... in
loops
2022-01-15 18:45:03 -06:00
Olivier Gagnon
8b69fd7faa
doc
2022-01-15 18:39:37 -05:00
hydroflame
f1c2dc2693
Merge pull request #2650 from BuckAMayzing/update-hacknet-constant-typing
...
Fix `constants()` function typing for hacknet nodes/servers
2022-01-15 18:29:13 -05:00
hydroflame
c0f6399a96
Merge pull request #2590 from deathly809/feature/ns_support_rm
...
Add support for the mv command in NS
2022-01-15 18:26:31 -05:00
hydroflame
7a84fa4d29
Merge pull request #2591 from nickofolas/improvement/singularity-focus-args
...
Add focus arg to Singularity functions
2022-01-15 18:25:56 -05:00
hydroflame
a7d7405e04
Merge pull request #2610 from Dexalt142/fix-exploit-achievement
...
fix: dev menu achievement name & visibility
2022-01-15 18:24:10 -05:00
hydroflame
0b36c9a4b2
Merge pull request #2648 from SlyCedix/scp-def
...
Add function signature for scp(files, destination)
2022-01-15 18:23:56 -05:00
hydroflame
37401f0917
Merge pull request #2580 from deathly809/bug/cancel_should_clear_focus
...
Ensure that we leave focus when we call stopAction or cancel working
2022-01-15 18:15:50 -05:00
Olivier Gagnon
d5c3d89613
fix bug
2022-01-15 18:13:35 -05:00
hydroflame
a454e21977
Merge branch 'dev' into feature-catch-errors-and-softreset-recovery
2022-01-15 18:00:33 -05:00
Olivier Gagnon
58fa091dd5
fix mc
2022-01-15 17:53:19 -05:00
Olivier Gagnon
de64777c75
some chagens
2022-01-15 17:52:50 -05:00
hydroflame
2ff7639b79
Merge pull request #2550 from TheMas3212/feature-save-validator
...
Feature save validator
2022-01-15 17:52:17 -05:00