Commit Graph

5149 Commits

Author SHA1 Message Date
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
phyzical dd47a8baa0 throw error without bulk purchase reasearch 2022-01-17 20:00:19 +08:00
phyzical 6f2924dc0d generated docs 2022-01-17 18:24:42 +08:00
phyzical d50e199171 added buybackShares, sellShares and bulkPurchase 2022-01-17 18:03:29 +08:00
phyzical b742fae1c6 Bugfix for creating products in invalid industries 2022-01-17 17:58:09 +08: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 01efd372e9.
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