Commit Graph

5135 Commits

Author SHA1 Message Date
Martin Fournier 26432082e2 Add an import save comparison page
This adds a new page reachable from the import save file
options menu. It shows the difference between the current save
and the data that is being imported, for confirmation.

Includes an "automatic" variant, which has different wording for when
Electron decides it has access to a newer version of the game.

While in this screen, the autosave is disabled.

This also adds a new BypassWrapper component around the game's tree.
It allows for content to be displayed without rendering the nested
pages (import, recovery). This prevents player scripts from messing
with the screen.
2022-01-26 03:56:17 -05:00
Martin Fournier 974344545d Move import save functionality into SaveObject
Adds a lot of metadata to be able to easily compare the new save to the
current player.

- Adds lastSaved & identifier to the PlayerObject
- Includes a hash method used to generate an identifier
2022-01-26 03:42:52 -05:00
Martin Fournier 588c3e42d7 Refactor download.ts (export "download *" command)
Export the "download *" helper to be able to be called from Electron.
2022-01-26 03:40:22 -05:00
nickofolas 41eac2e775 Adjust sizing for corp and gang tabs 2022-01-26 00:53:17 -06:00
nickofolas c0a27e7d66 Active scripts tab sizing 2022-01-26 00:53:16 -06:00
nickofolas e81bd48ca6 Update Tab(s) design 2022-01-26 00:53:16 -06:00
Olivier Gagnon 022dd5d7d7 fix compile error 2022-01-26 00:58:02 -05:00
hydroflame d27bac9be6 Merge pull request #2716 from lordducky/enhance-api-server
Enhance api server
2022-01-26 00:53:17 -05:00
hydroflame 2f36fb107f Merge pull request #2803 from MartinFournier/feat/github-actions
Adds GitHub workflows to fetch a changelog & to bump the app's version
2022-01-26 00:52:06 -05:00
hydroflame 9fa706073f Merge pull request #2745 from jamie-mac/fix/roulette-result
Fix incorrect result being detected on the roulette table
2022-01-26 00:51:03 -05:00
hydroflame 1a34d5e363 Merge pull request #2703 from lethern/patch-1
purchaseServer error message fix + small docs change
2022-01-26 00:50:42 -05:00
hydroflame a05ecc76c2 Merge pull request #2727 from nickofolas/feature/editor-tab-actions
Script Editor Tab Actions
2022-01-26 00:50:23 -05:00
hydroflame 3654a238ae Merge pull request #2726 from SagePtr/recheck-achievements
Force achievements recalculation on bitnode completion
2022-01-26 00:50:06 -05:00
hydroflame 6e33417399 Merge pull request #2736 from MartinFournier/feature/sleeve-bonus-time
Display bonus time in sleeve detailed stats panel
2022-01-26 00:49:20 -05:00
hydroflame ae2c6a4c7c Merge pull request #2737 from pd/crimestats-name
NetscriptDefinitions: Fix type of CrimeStats.name
2022-01-26 00:49:04 -05:00
hydroflame 4a1e3e75ec Merge pull request #2760 from jamie-mac/fix/slots
Fixes issue with incorrect result in slots, and corrects the direction of the reel spin
2022-01-26 00:48:54 -05:00
hydroflame ac9381e30d Merge pull request #2784 from dwRchyngqxs/blackjack_precise_decks
Add the deck count for blackjack
2022-01-26 00:48:42 -05:00
hydroflame 7e81575cb5 Merge pull request #2782 from dwRchyngqxs/hacking_exp_mult
Fixed player hacking exp multiplier application
2022-01-26 00:48:09 -05:00
hydroflame ea9871fef0 Merge pull request #2641 from MartinFournier/feature/save-command-history
Copy terminal command history into game save
2022-01-26 00:47:02 -05:00
hydroflame acee3c2994 Merge pull request #2705 from pigalot/bug-corp-product-cost
BUG: Fix for corp product cost
2022-01-26 00:46:39 -05:00
hydroflame 7a5dfd0e72 Merge pull request #2707 from MartinFournier/feature/theme-browser
Add Theme Browser accessible from GameOptions
2022-01-26 00:46:17 -05:00
hydroflame 77ba45df40 Merge pull request #2735 from Ninetailed/ns_printf
Add ns.printf function
2022-01-26 00:45:18 -05:00
hydroflame 2fe8a334ef Merge pull request #2747 from smolgumball/improve-faction-root
ui: cleanup styles + presentation in FactionsRoot.tsx
2022-01-26 00:44:55 -05:00
hydroflame 2ecc71ba28 Merge pull request #2738 from pd/corp-jsdoc
NetscriptDefinitions: fix jsdoc for Corp research functions
2022-01-26 00:44:43 -05:00
hydroflame 85a8036ecf Merge pull request #2751 from nickofolas/improvement/ui-pass
UI Improvements Pass
2022-01-26 00:44:20 -05:00
hydroflame 6c3ad48ef5 Merge pull request #2763 from Ornedan/formulas-access-checks
Fix formulas access checks
2022-01-26 00:42:51 -05:00
hydroflame 44a6f1b5a8 Merge pull request #2775 from dwRchyngqxs/script_nan_fix
Fixed array comparison handling of NaN
2022-01-26 00:42:29 -05:00
hydroflame 64662df91e Merge pull request #2764 from zeddrak/patch-1
HacknetServer Grow/Weaken error messages
2022-01-26 00:42:11 -05:00
hydroflame 80396a3416 Merge pull request #2769 from zeddrak/patch-2
In response to Issue #2732
2022-01-26 00:41:51 -05:00
hydroflame bbef8452b3 Merge pull request #2771 from zeddrak/patch-3
Documentation edit in response to Issue #2678
2022-01-26 00:40:28 -05:00
hydroflame 5e10f7df1f Revert "Use min server.moneyAvailable of 1$ when growing server money" 2022-01-26 00:35:42 -05:00
hydroflame 0a0b7db06f Merge pull request #2785 from davidpa9708/improve-server-grow-low-money
Use min `server.moneyAvailable` of 1$ when growing server money
2022-01-26 00:34:52 -05:00
hydroflame 939136a32a Merge pull request #2807 from dowinter/dev
Fix augmentation order when set to alphabetically
2022-01-26 00:32:59 -05:00
hydroflame 0dd339bb4d Merge pull request #2790 from SlyCedix/travelToCity-money-fix
Make travelToCity throw on invalid city name and return false on no money
2022-01-26 00:32:25 -05:00
hydroflame 13453e678f Merge pull request #2809 from pd/corp-api-leftovers
Corp API: Add setSmartSupplyUseLeftovers
2022-01-26 00:31:58 -05:00
hydroflame a6fb6df04f Merge pull request #2811 from reasonablytall/dev
Indicate that getRunningScript can return null
2022-01-26 00:31:26 -05:00
hydroflame 0f2dd23eba Merge pull request #2813 from jamie-mac/fix/cypress-tests
Fix: Cypress tests for dev (updates to match UI changes)
2022-01-26 00:31:00 -05:00
Sage Pointer 98f40ca092 Add rounding to getPurchaseServerCost 2022-01-26 06:02:05 +02:00
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