Commit Graph

308 Commits

Author SHA1 Message Date
Olivier Gagnon c6806caca2 Wrap most of the API 2022-05-07 19:08:07 -04:00
nickofolas f45200b25e Implement ClassType and FactionWorkType enums 2022-05-04 14:18:12 -05:00
nickofolas 4a8e99b170 Refactor WorkType to an enum 2022-05-04 13:42:48 -05:00
hydroflame 44641fee07 Merge pull request #3544 from phyzical/feature/refactor-augmentation
REFACTOR:  augmentation cost, rep cost and level to be calculated in place
2022-05-04 12:08:24 -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
hydroflame b0c9475b57 Merge pull request #3574 from DavidGrinberg/expose-material-sell-cost
CORPORATIONS: Expose sales cost on NSMaterial interface
2022-05-04 11:58:12 -04:00
hydroflame bffa166fc3 Merge pull request #3577 from phyzical/feature/WEB-3567
FEATURE: added logic to allow quitJob to be called from singularity
2022-05-04 11:57:39 -04:00
phyzical facab1d264 make bonustime for gang in miliseconds 2022-04-28 19:20:53 +08:00
phyzical 711955c112 added logic to allow quitJob to be called from singularity 2022-04-28 19:05:56 +08: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
phyzical a7a725de22 merge dev 2022-04-26 20:58:39 +08:00
hydroflame 8e222fd58e Merge pull request #3539 from nickofolas/fix/ns-aug-graft-time
API: Fix inconsistent return value in `ns.grafting.getAugmentationGraftTime`
2022-04-25 11:27:09 -04:00
phyzical 00bb387036 few regressions from hydros changes 2022-04-23 10:34:41 +08:00
phyzical cdfbda1379 merge dev 2022-04-23 10:26:51 +08:00
Olivier Gagnon bc890c31c5 lint 2022-04-22 17:20:01 -04:00
Olivier Gagnon f6e5f719d1 infiltration API fixes. 2022-04-22 17:12:14 -04:00
Olivier Gagnon 9fdfb77dd4 Update infiltrators 2022-04-22 15:30:49 -04:00
nickofolas 8b34d2776a Implement standardized grafting time calcs 2022-04-21 21:48:18 -05:00
phyzical 8e1300d69d Merge branch 'dev' into feature/add-infiltration-faction
# Conflicts:
#	src/Netscript/RamCostGenerator.ts
2022-04-20 20:10:05 +08:00
Undeemiss 6d55bfe795 Removed redundant check for whether the player is in CotMG 2022-04-19 13:39:56 -05:00
Undeemiss 707e643c7d Merge branch 'dev' of https://github.com/Undeemiss/bitburner into join-stanek-api 2022-04-19 13:38:14 -05:00
Undeemiss b3e83dd976 Added check for aug status to stanek.acceptGift
Added a check to stanek.acceptGift for aug status. It's not
particularly elegant, but I copied the checks from the ui. Also
changed the way CotMG status is checked to be more robust.
2022-04-19 13:33:07 -05:00
Undeemiss 46a90e6271 Added ns function stanek.acceptGift
Added a new ns function stanek.acceptGift to the game, with a ram
cost of 2gb. The function attempts to join the CotMG and install
the gift, then returns true iff the player is in the CotMG and has
the gift installed.
2022-04-19 12:08:38 -05:00
hydroflame 69feb790cb Merge pull request #3490 from DavidGrinberg/bugfix/3489
Singularity: Fix #3489 Disable checkTixApiAccess for purchase4SMarketData
2022-04-18 11:03:08 -04:00
David Grinberg d934bb88ad Disable checkTixApiAccess for purchase4SMarketData
This restriction doesn't apply on UI. It doesn't make sense to apply it to singularity api
2022-04-17 22:35:31 -04:00
TheMas3212 4cf0314766 Fix leak of real Employee object in hireEmployee 2022-04-17 05:16:42 +10:00
TheMas3212 7696f582eb replace a number of references to workerscript.log with _ctx.log that i
missed in Singularity.ts
2022-04-15 21:23:35 +10:00
phyzical 82610c0c44 Merge branch 'feature/add-infiltration-faction' into feature/refactor-augmentation 2022-04-15 14:26:00 +08:00
phyzical 8db74f343a merge base 2022-04-15 14:25:13 +08:00
hydroflame 6ce1bab5fe Merge pull request #3461 from Hoekstraa/3263
API: Add repFromDonation() to the Formula API
2022-04-14 18:26:38 -04:00
Olivier Gagnon 7685f52f8e fix import and make rainbow return the answer. 2022-04-14 15:23:49 -04:00
Zoë Hoekstra accb9f7e23 Add repFromDonation formula to the API 2022-04-14 20:01:31 +02:00
phyzical db97125d22 remove level, base cost and rep requirment from base augmentation obj
* added in place calculations for cost and level of augmentations given player context
* removed redundant logic for dynamically calculating cost,rep and level against the augmentation object
* replaced references to startingCost to baseCost as it is now always whatever it started at
2022-04-15 01:39:38 +08:00
phyzical c3a3994658 rename augmentation to static augmentation 2022-04-15 01:19:51 +08:00
Olivier Gagnon 69c5e42e30 remove redundant naming scheme 2022-04-14 12:13:01 -04:00
TheMas3212 de3359dfad switch to checkEnum 2022-04-15 02:07:47 +10:00
TheMas3212 e07b92a408 fix 2993 sleeve.travel with invalid city names 2022-04-15 02:00:34 +10:00
hydroflame 18a6477342 Merge pull request #3456 from TheMas3212/fix/3395
fix #3395 donating to special factions possible via singularity
2022-04-14 11:51:40 -04:00
TheMas3212 89baba2e24 fix #3395 donating to special factions possible via singularity 2022-04-15 01:32:18 +10:00
TheMas3212 a0cab9a163 Fix inconsistancy with trying to work for gang factions while running a gang 2022-04-15 00:35:51 +10:00
phyzical 9c23fc89d1 merge base 2022-04-14 21:27:08 +08:00
Olivier Gagnon 62d15ff3a1 rm SourceFileFlags 2022-04-14 01:22:50 -04:00
Olivier Gagnon d8382ec762 Corp upgrades are now defined types 2022-04-14 00:21:33 -04:00
hydroflame 89f73d88d1 Merge pull request #3443 from TheMas3212/fix/singularity-sf4-checks
fix b1tflum3 and destroyW0r1dD43m0n singularity functions to check for sf4
2022-04-13 19:06:53 -04:00
TheMas3212 775d93b693 fix b1tflum3 and destroyW0r1dD43m0n singularity functions to check for
sf4, also refactored the file slightly for consistency to make sure the
sf4 check is the first thing every function does
2022-04-14 08:13:28 +10:00
Olivier Gagnon 88ae27e84d nerf investors fraud 2022-04-13 18:08:35 -04:00
Olivier Gagnon 9281cbe559 ns func to flume and destroy wd 2022-04-13 17:34:02 -04:00
hydroflame 244bb5737e Merge branch 'dev' into bugfix/corp-updates 2022-04-13 16:20:22 -04:00