Commit Graph

147 Commits

Author SHA1 Message Date
TheRealMaxion
02f231af2e
Fixes #3098 missing space in Smart Supply
Quick fix to stop this from erroring due to the missing space in the upgrade name.
2022-03-09 01:05:00 +01:00
hydroflame
4921cdea24
Merge branch 'dev' into phyzical/Corp-Api-Updates 2022-03-07 17:44:43 -05:00
hydroflame
e10571c0e8
Merge branch 'dev' into bugfix/corp-api-fixes 2022-03-07 17:43:29 -05:00
Thomas B
9636fda082
Made getBonusTime return miliseconds 2022-03-01 12:39:35 -05:00
hydroflame
201e00cdd9
Merge pull request #2894 from manniL/fix/typo
fix: typo in corporate error message
2022-03-01 10:45:36 -05:00
hydroflame
e89a9e8f4c
Merge pull request #2897 from Jedimaster4559/patch-1
Fixing Broken Error Message
2022-03-01 10:44:40 -05:00
phyzical
887f3f1e49 use text friendly divison name 2022-02-19 16:06:52 +08:00
phyzical
6e21f16160 adjustments per review comments
* updated error message
* used correct price for bulk purchasing check
* moved onclose and rerenders outside try blocks
2022-02-19 16:05:55 +08:00
phyzical
a2b4a63c2e merge latest dev 2022-02-15 20:24:24 +08:00
Risenafis
04cfdc76ae Fix favor threshold for donateToFaction 2022-02-14 23:25:30 +09:00
phyzical
3e36e6a80b few more adjustments
* fixed the export material fix
* changed teh dev menu fund adjuster for more granular control
* added checks for smartSupply and setSmartSupply
* few random autolints
2022-02-12 11:31:50 +08:00
phyzical
8b55b0293c corp api fixes
* added early out in UpgradeWarehouse when not enough cash
* added checks to enforce maxProducts
* added checks to enforce export material is valid for location
* added checks for market ti reasearches
2022-02-11 23:48:19 +08:00
Nathan Solomon
df30a45388
Fixing Broken Error Message 2022-02-01 15:45:50 -06:00
Alexander Lichter
5564f82b44 fix typo 2022-02-01 12:43:14 +01:00
Heinous Tugboat
c7a3ac216f Replaces anys in Stanek with unknown 2022-01-27 20:48:37 -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
6c3ad48ef5
Merge pull request #2763 from Ornedan/formulas-access-checks
Fix formulas access checks
2022-01-26 00:42:51 -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
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
Cyn
cdeae4ef68 Make travelToCity throw on invalid city name and return false on no money 2022-01-23 22:08:07 -05:00
Heikki Aitakangas
621df103cf Fix formulas access checks 2022-01-23 00:31:59 +02: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
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
hydroflame
bb34d6b582
Merge pull request #2618 from pigalot/Corp-Api-Updates
Corp api updates
2022-01-18 18:05:23 -05: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
hydroflame
27a54217eb
Merge pull request #2653 from nickofolas/fix/refactor-loops
Refactor `for ... in` loops
2022-01-17 16:01:04 -05:00
phyzical
dd47a8baa0 throw error without bulk purchase reasearch 2022-01-17 20:00:19 +08:00
phyzical
d50e199171 added buybackShares, sellShares and bulkPurchase 2022-01-17 18:03:29 +08:00
pigalot
d34d720ab9 Office Size Upgrade Cost 2022-01-16 16:12:03 +00:00
pigalot
62f40b3dc1 Add bribe 2022-01-16 16:11:32 +00:00
pigalot
1b1dc20c16 fix error message 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
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
74019bc2be Make list of divisions accessable on the corp 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
Martin Fournier
07403eaaaa Add ns.ui.getGameInfo() to retrieve game version
Returns { version, commit, platform }
2022-01-16 10:49:01 -05:00
nickofolas
ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06: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
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
hydroflame
03f71bd5f4
Merge pull request #2485 from Ornedan/netscriptdelay-check-stop
Refactor netscriptDelay and script kill interaction
2022-01-15 17:26:23 -05:00
hydroflame
c5462eb6f4
Merge pull request #2601 from deathly809/bug/attemp_logs_even_when_disabled
Correctly handle logging so that disableLog will work
2022-01-13 11:26:25 -05:00
Jeffrey A. Robinson
910c9d9e7e Correctly label functions so that disableLog will work 2022-01-12 16:55:45 -08:00
Martin Fournier
9b638b911f Add ns.ui.[getStyles, setStyles, resetStyles]
Adds three Netscript functions to manipulate the user's styles like the
player can with theme.
2022-01-12 18:34:05 -05:00
nickofolas
415f922a37 Add focus arg to Singularity functions 2022-01-12 12:03:49 -06:00