Commit Graph

59 Commits

Author SHA1 Message Date
Olivier Gagnon
5629c16def extract multipliers in its own type 2022-07-14 18:43:33 -04:00
T.J. Eckman
cfb0967634
Unassigned Employees Boost
Speed up assigning of employees currently without a job.
2022-05-25 18:55:34 -04:00
Olivier Gagnon
76ccb0ba36 lint 2022-05-25 11:43:43 -04:00
hydroflame
b80e2d5fd1
Merge branch 'dev' into wrap-api 2022-05-19 01:37:06 -04:00
Undeemiss
b00301f4e1 Renamed BN mult CorporationSoftCap to CorporationSoftcap
Replaced all instances of "CorporationSoftCap" in src/ with
"CorporationSoftcap". If files outside of src/ must be changed, I
do not know what those would be.
2022-05-09 14:45:19 -05:00
Olivier Gagnon
c6806caca2 Wrap most of the API 2022-05-07 19:08:07 -04:00
hydroflame
105ced26bf
Merge pull request #3570 from DavidGrinberg/dev
CORPORATIONS: Expose makeProducts on NSDivision interface
2022-05-04 12:01:33 -04:00
David Grinberg
b2abec7424 Expose sales cost on NSMaterial interface 2022-04-27 22:37:19 -04:00
DavidGrinberg
828629b713
Update src/NetscriptFunctions/Corporation.ts
Co-authored-by: Jack <phyzicaly@hotmail.com>
2022-04-27 09:37:02 -04:00
David Grinberg
d7ac7f8399 Expose makeProducts on NSDivision interface 2022-04-27 00:55:15 -04:00
TheMas3212
4cf0314766
Fix leak of real Employee object in hireEmployee 2022-04-17 05:16:42 +10:00
Olivier Gagnon
d8382ec762 Corp upgrades are now defined types 2022-04-14 00:21:33 -04:00
Jack
2f9ab67cd2
Merge branch 'dev' into bugfix/corp-updates 2022-04-13 16:35:18 +08:00
Olivier Gagnon
2b4b59b371 fmy 2022-04-12 19:10:58 -04:00
hydroflame
b017fd2300
Merge pull request #3000 from JonathanBeverley/corp-expose-things-in-ui
Expose product and material details in API match UI
2022-04-12 17:49:29 -04:00
hydroflame
a17b81dff3
Merge pull request #2925 from Ornedan/necro-script-fix
Necro script fix
2022-04-11 21:36:07 -04:00
phyzical
a66b5bfb69 fixes and pr comments 2022-04-11 21:54:50 +08:00
Heikki Aitakangas
a578763b89 Use a dedicated ScriptDeath type to signal script termination instead of WorkerScript
Problem with throwing WorkerScript is that the termination signal object can pass
through user code, which permits user to modify that object and all parts of the
game state accessible through it.
2022-04-02 23:28:21 +03:00
phyzical
b73570e2f7 added the ability to mass upgrade warehouse 2022-04-01 23:19:08 +08:00
phyzical
e5bb695f6f expose material cost
closes #3173
2022-04-01 22:32:48 +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
2efa3ac351 dissalow corporations when multiplier is below 0.15
closes #3003
2022-04-01 21:05:01 +08:00
Steven Malis
e572c6e139 Add unassigned and training. 2022-04-01 01:44:53 -04:00
Steven Malis
bb62973905 Fix docs for employeeProd and add employeeJobs. 2022-04-01 01:37:27 -04:00
Olivier Gagnon
98ae97afea Validate city name coming from netscript 2022-03-30 11:34:03 -04:00
Olivier Gagnon
6c9a3a336e unknown-ify corp API. 2022-03-29 20:24:04 -04:00
hydroflame
7e3a5e76c3
Merge pull request #3193 from t-wolfeadam/feature/corp-api-bonustime
Implement getBonusTime in Corporation API
2022-03-20 14:13:35 -04:00
Heikki Aitakangas
f6a9bd1de7 Fix #3198: give player code a copy of Division.upgrades instead of the live object 2022-03-20 15:12:21 +02:00
t.wolfeadam
5702cb04b6 Implement getBonusTime in Corporation
Used documentation from other 'getBonusTime' methods
2022-03-19 15:22:29 -05:00
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
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
Jonathan Beverley
922aafb115 Expose product and material details in API match UI 2022-02-17 23:49:59 -05:00
phyzical
a2b4a63c2e merge latest dev 2022-02-15 20:24:24 +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
Alexander Lichter
5564f82b44 fix typo 2022-02-01 12:43:14 +01: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
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