Commit Graph

56 Commits

Author SHA1 Message Date
phyzical 016dbe67d9 add an early out if already researched
hotfix/3977

File List:
src/Corporation/Actions.ts
2022-08-17 17:46:18 +08:00
Staszek Welsh 75a9151e74 Merge branch 'dev' into corp-remove-async 2022-07-20 21:12:27 +01:00
Staszek Welsh 02b07bb332 Fix relevant linter errors and run formatter 2022-06-02 22:54:50 +01:00
Staszek Welsh ba7b76369b Remove industry upgrades
There are only two industry upgrades, one of which is buying coffee
which is not an upgrade, and for the office not the industry. Moving
that to the office leaves just hiring AdVerts, which is better as an
explicitly named set of methods.
2022-06-02 02:43:22 +01:00
Staszek Welsh 04efd899a0 Remove async from buyCoffee and throwParty 2022-06-01 23:36:15 +01:00
Staszek Welsh ffaa38d086 Unify code paths for buying coffee and throwing parties 2022-06-01 23:26:32 +01:00
Staszek Welsh b9356ea782 Only switch employee jobs at the start of corp cycles 2022-06-01 18:11:33 +01:00
Staszek Welsh 8d474a7610 Change corporation.dividendPercentage to corporation.dividendRate 2022-05-30 21:45:36 +01:00
Olivier Gagnon d8382ec762 Corp upgrades are now defined types 2022-04-14 00:21:33 -04:00
phyzical 43248bbc42 merge dev 2022-04-07 16:25:33 +08:00
phyzical 10fafd39f3 fix the amt issue for modal also 2022-04-02 20:17:30 +08:00
phyzical 0fbb8553e6 add fix for bulk buy when purchase amount exceeds warehouse size
* add logic to disable button when input is invalid
2022-04-02 19:38:26 +08:00
BB c7a95ccb2d Fixed eslint warning for unused vars 2022-04-02 13:11:55 +02:00
phyzical 50cfa99b24 fix for reseting limit production
closes #3175
2022-04-01 23:21:05 +08:00
phyzical b73570e2f7 added the ability to mass upgrade warehouse 2022-04-01 23:19:08 +08:00
phyzical 13c486d639 added logic to support material production limit
* added ns functions for limit production and limit material
closes #3180
2022-04-01 22:28:48 +08:00
phyzical 1eca9449a0 removes spaces in at start and end of product name on creation
closes #3007
2022-04-01 20:58:36 +08:00
phyzical ea14646d39 added check for already expanding into city
fixes #3312
2022-04-01 19:50:21 +08:00
hydroflame 8354ba2314 Merge pull request #3286 from phyzical/bugfix/fix-max-warehouse-bulk-purchase
incorrect ternary with bulk purchase
2022-03-30 11:34:48 -04:00
Olivier Gagnon 98ae97afea Validate city name coming from netscript 2022-03-30 11:34:03 -04:00
phyzical 3c991a743c incorrect ternary 2022-03-30 23:33:45 +08:00
Gian P 8be65faf9f Check before unlocking corp upgrade 2022-03-19 16:53:28 -03:00
hydroflame f65221b1f1 Merge pull request #3114 from ApamNapat/turn_on_three_more_lints
Mixing spaces and tabs, extra semicolons and lonely ifs are now illegal
2022-03-16 14:51:05 -04:00
TheRealMaxion 208af6ce9c Fix some misleading corporation errors 2022-03-16 12:08:00 +01:00
BB 5e2ccc71ec Mixing spaces and tabs, extra semicolons and lonely ifs are now forbidden 2022-03-11 16:32:48 +01:00
hydroflame d955398a68 Merge pull request #2757 from ltoni90/bugfix/2719_Corporation_Expressions
Bug fix corporation expressions
2022-03-10 22:15:39 -05:00
hydroflame f117cc8a74 Merge pull request #2912 from phyzical/bugfix/2899
Added a check for exisiting industry type before expanding
2022-03-10 22:14:18 -05:00
ChrissiQ 44c4529d90 🐛 (Bug: Corp) Fixes sufficient player money check to buy back shares.
`BuyBackShares()` checks the corp for sufficient funds, but since shares are purchased with player money, it should be checking the player's money instead.
2022-03-07 23:18:51 -07:00
hydroflame 4921cdea24 Merge branch 'dev' into phyzical/Corp-Api-Updates 2022-03-07 17:44:43 -05: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 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
phyzical 105ea19eae add the industry name to assist with debugging when error occurs 2022-02-04 17:46:08 +08:00
phyzical 608cc089b2 Added a check for exisiting industry type before expanding 2022-02-04 17:34:16 +08:00
Luca Montagna bd775f167e fixed temp evaluation of MAX and PROD for products 2022-01-22 13:58:51 +01:00
Luca Montagna bfa271881b fixed temporary evaluation of MAX and PROD 2022-01-22 13:32:35 +01: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
phyzical b742fae1c6 Bugfix for creating products in invalid industries 2022-01-17 17:58:09 +08:00
pigalot bd20f16a2d Fix for AI Cores in smart supply 2022-01-16 16:12:00 +00:00
pigalot 98e8910c3a Research func, gopublic function, and validation 2022-01-16 16:11:31 +00:00
Olivier Gagnon ef781a0627 plenty of bf 2021-11-15 23:49:33 -05:00
Olivier Gagnon 0114c92829 fix decimal 2021-11-11 21:35:26 -05:00
hydroflame 70ffe25bb4 Revert "bunch of bugfixes" 2021-11-11 20:06:05 -05:00
Olivier Gagnon d91d7c564e bunch of bugfixes 2021-11-11 19:56:09 -05:00
Olivier Gagnon 56c8a23631 corp MAXMPPROD is now case insensitive 2021-10-11 22:54:28 -04:00
Olivier Gagnon 5f8de7e426 bunch of react conversion 2021-09-12 18:03:07 -04:00
Olivier Gagnon e5dcb424a2 sneak in corp API. 2021-09-10 02:17:55 -04:00
Olivier Gagnon e906a6331f change modals so they close on mouse down outside the box 2021-09-10 00:53:39 -04:00
Olivier Gagnon be08161442 corp api 2021-09-10 00:13:28 -04:00