Commit Graph

4830 Commits

Author SHA1 Message Date
theit8514
31ebdbb139 Handle 'export default' in static RAM calculation 2022-01-17 13:16:03 -05:00
theit8514
3ff00facce Update sourcefiles.rst 2022-01-17 12:26:34 -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
Thomas van der Pol
e86f1d755f
Fix CI step label for tests 2022-01-17 17:28:26 +10: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
8b52607113 Update docs after rebase 2022-01-16 16:13:45 +00: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
4e099a935e Update markdown/bitburner.product.md
Co-authored-by: Jack <phyzicaly@hotmail.com>
2022-01-16 16:12:00 +00:00
pigalot
9ad4193270 Update markdown/bitburner.product.developmentprogress.md
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
6ee291e0b3 Update md docs 2022-01-16 16:12:00 +00:00
pigalot
dc5e9f5269 More changes to docs 2022-01-16 16:11:56 +00:00
pigalot
3476fc8218 Update Docs 2022-01-16 16:11:52 +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