Commit Graph

3387 Commits

Author SHA1 Message Date
jamie-mac
1b1206c95d Fix: Cypress tests for dev (updates to match UI changes) 2022-01-25 23:57:36 +00:00
Alex Aubuchon
6342ccbad5 Indicate that getRunningScript can return null 2022-01-25 18:28:47 -05:00
Phil Despotos
65ffbcc27e Corp API: Add setSmartSupplyUseLeftovers
The API can already toggle smart supply on/off, but can't manage the
related controls for whether smart supply will draw from the existing
materials in the warehouse. Without it, we can't keep some resources in
storage to boost the production multiplier without disabling smart
supply entirely.
2022-01-25 12:51:07 -06:00
Dominik Winter
e29eceb2bd fix augmentation order when set to alphabetically 2022-01-25 18:21:09 +01:00
Martin Fournier
8a2cad6c4a Reset styles for html changelogs in getUpdateText
Adds an optional sxProps to the DialogBox component.
2022-01-25 10:20:36 -05:00
David Perez Alvarez
6de6fa092f
"improve" server money grow when 0
min `server.moneyAvailable` of 1$ when growing

unify displayed growth
2022-01-24 09:51:36 -05:00
Cyn
cdeae4ef68 Make travelToCity throw on invalid city name and return false on no money 2022-01-23 22:08:07 -05:00
Martin Fournier
e7aa977eb0 Persist terminal command history in game save
Copy the terminal commands into the player object so that they are saved
between game reloads.

Adds a 'history' command to display history, and a 'history -c' command
to clear it from both the current terminal & the player's save.
2022-01-23 17:09:54 -05:00
qcorradi
23cd53aad4 Add the deck count for blackjack 2022-01-23 22:08:23 +01:00
qcorradi
08314ed33e Fixed array comparison handling of NaN
Issue #2033 is fixed, not using Object.is as recommended by https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#when_to_use_object.is_versus_triple_equals
2022-01-23 20:33:32 +01:00
qcorradi
341975ee09 Fixed player hacking exp multiplier application
Fixing the application of player's exp multiplier as indicated in #2260,
the game balance will need to get re-adjusted in consequence.
2022-01-23 20:30:36 +01:00
zeddrak
56fe63cdd5
In response to Issue #2678
Added some clarifications in response to Issue #2678.
Did not rebuild the md files (I didn't want to cause unnecessary file conflicts).
2022-01-22 21:41:53 -08:00
zeddrak
3fa580cb93
Update codingcontracttypes.ts 2022-01-22 21:06:20 -08:00
zeddrak
57a1bef967
In response to Issue #2732 (Optional)
This simply clarifies the description for the find all valid math expressions in response to issue #2732 
https://github.com/danielyxie/bitburner/issues/2732
2022-01-22 21:00:28 -08:00
zeddrak
4ffe5508dc
HacknetServer Grow/Weaken error messages
It may be intentional to use hack for all 3 (ie, assume the player makes the connection that can't hack, also means can't grow or weaken), in which case, disregard.
On the other hand, it could've easily been a copy/paste artifact, and this would be more explicitly clear, so thought it was worth bringing up.
2022-01-22 14:47:33 -08:00
Heikki Aitakangas
621df103cf Fix formulas access checks 2022-01-23 00:31:59 +02:00
nickofolas
f6bb4e0138 Fix console warning on ascension modal 2022-01-22 11:37:27 -06:00
nickofolas
3921457ee6 Update Gang equip. page UI 2022-01-22 11:16:51 -06:00
jamie-mac
ef95ec2e90 Fix: slots result matches against a previous state of the reels
Fix: reels spin the wrong way
2022-01-22 16:05:27 +00:00
nickofolas
310374dc56 Fix console complaints with gang cards 2022-01-22 09:36:36 -06:00
Xi-Lin Yeh
cf8908fbc8 Add metadata (hash, ramUsage) to be returns
Allows for better dirty checking and integrations
2022-01-21 20:49:12 -08:00
nickofolas
c6ddba9f5f Redesign Gang management page 2022-01-21 20:02:29 -06:00
smolgumball
1c856bf7ef Resort imports 2022-01-21 15:57:44 -07:00
smolgumball
f28c5b3b45 Improve row spacing 2022-01-21 15:55:10 -07:00
nickofolas
259071e3d5 Align slider endpoints in settings 2022-01-21 16:32:32 -06:00
smolgumball
275e8c8756 Cleanup styles + presentation in FactionsRoot.tsx 2022-01-21 15:29:24 -07:00
nickofolas
a954095519 Prevent FactionRoot options from extending beyond the window 2022-01-21 16:15:41 -06:00
nickofolas
6018f2280d Research modal UI pass 2022-01-21 16:08:02 -06:00
jamie-mac
8963842276 Fixes black matching 0 on the roulette table 2022-01-21 21:28:25 +00:00
jamie-mac
60c354622d Fixes incorrect result being detected on the roulette table
Resolves #2382
Resolves #2086
2022-01-21 20:42:09 +00:00
nickofolas
844b228596 Align overview page 2022-01-21 14:32:02 -06:00
nickofolas
a904c362d9 Office UI alignment 2022-01-21 14:32:02 -06:00
nickofolas
542f164930 Align warehouse buttons 2022-01-21 14:32:02 -06:00
lethern
a96053a82b
Aug info: fixed typo 2022-01-21 15:51:31 +01:00
Kyle Hargraves
b7604709e5 NetscriptDefinitions: fix jsdoc for Corp research functions 2022-01-21 07:37:16 -06:00
Kyle Hargraves
267a7144cb Fix type of CrimeStats.name 2022-01-21 07:32:39 -06:00
Martin Fournier
6dba1db3c9 Display bonus time in sleeve detailed stats panel
Also adds a field to modify the stored cycles in the dev menu.
2022-01-21 07:50:41 -05:00
Terrana
f2c4109211
Add ns.printf function
Behaviour is consistent with that of tprintf versus tprint and
should be equivalent to ns.print(ns.sprintf(...))
2022-01-21 12:08:47 +00:00
Olivier Gagnon
07fe3c1906 update scam msg 2022-01-20 23:53:33 -05:00
Olivier Gagnon
a3c599e6c5 update to prevent scam 2022-01-20 23:43:19 -05:00
nickofolas
1a8a24587f Ensure that the proper editor is updated by syncing 2022-01-20 17:45:54 -06:00
Martin Fournier
5c0d76828f Add ID to ThemeEditorButton 2022-01-20 18:43:36 -05:00
Martin Fournier
a26b9c8dcf Add theme browser page accessible from game options
Removed the themes buttons that were in the ThemeEditorModal and only
left a "Revert to Default" button along with a link to the ThemeBrowser
page.

Split off the buttons into reusable components since they are now used
in two pages.

Display the themes in big cards with a zoomable screenshot. Applying the
theme now shows a toast with an option to undo the action.

The snackbar now allows ReactNode instead of only strings.

- Add link with details on how to create a new theme in the game.
- Add link to the theme-sharing discord channel.
- Add icons to the theme & style buttons in GameOptions
- Add "Theme Editor" button to ThemeBrowser
- Add "Style Editor" button to ThemeBrowser
- Move Styles related files into Themes folder
- Includes a modal that shows a bigger version of the screenshot.
- Change Snackbar to allow for ReactNode as the message
2022-01-20 18:41:49 -05:00
Martin Fournier
61d6e43b37 Add theme screenshots & make some fields required
- Description, Name & Author is now mandatory
- Add screenshots
- Add dist/images to electron build
2022-01-20 18:41:49 -05:00
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
nickofolas
a5ad97f47d Remove unnecessary editor code 2022-01-20 17:28:19 -06:00
nickofolas
99ef71de4a Update prompt message content 2022-01-20 17:14:38 -06:00
SagePtr
32ba81883f Force achievements recalculation on bitnode completion 2022-01-21 00:04:47 +02:00
nickofolas
bc50f5180a Refactor 2022-01-20 15:48:17 -06:00
nickofolas
b4a78c26f3 Implement editor tab actions 2022-01-20 15:48:16 -06: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
Xi-Lin Yeh
4a3ee95b63 Enhanced API Server interface
- Used restful patterns for handling server calls (GET/PUT/DELETE)

- Utilized Server interface for saves rather than reimplementing code

- Exposed operations for getting codebase of scripts on the home server and deleting files.

- Added a common response structure
2022-01-20 00:03:07 -08:00
Johnny Urosevic
81db1b0a97
Change "import" to "important" 2022-01-19 13:00:59 -08:00
pigalot
5c7ac9ab8e Fix for corp product cost 2022-01-19 18:44:48 +00:00
lethern
61cea12ca2
purchaseServer: improved error message for ram > maxRam 2022-01-19 19:09:33 +01: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
lethern
1dcae1aeec
Update NetscriptDefinitions.d.ts
grow/weaken/hack: removed threads part from example - confuses newbies
2022-01-18 16:15:40 +01: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
lethern
bb6c2cd79e
Update NetscriptFunctions.ts 2022-01-17 23:53:44 +01: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