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
rderfler
7cf21629a7
Address review
...
Add ns function setToBladeburnerAction
Formatting updates
fix sleeves using player stamina
Correct supporting sleeve causing error
2022-04-30 15:25:36 -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
rderfler
e381e857a5
Merge remote-tracking branch 'upstream/dev' into dev
2022-04-25 13:32:38 -04: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
rderfler
3cd8f8a223
merged from upstream
2022-04-14 15:47:00 -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
rderfler
9d18118208
Format, but git forgot this last time
2022-04-14 12:00:17 -04:00
rderfler
1239c7ad7f
Merge branch 'dev' of https://github.com/rderfler/bitburner into dev
2022-04-14 11:57:19 -04:00
rderfler
0406272942
Clean up
...
linter
2022-04-14 11:57:01 -04: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
rderfler
7c468663d4
Merge branch 'danielyxie:dev' into dev
2022-04-14 11:48:44 -04:00
rderfler
d1388a62aa
Merge branch 'dev' of https://github.com/rderfler/bitburner into dev
2022-04-14 11:41:02 -04:00
rderfler
2613948bad
Add bladeburner actions to sleeves
...
This adds bladeburner actions to sleeves. In addition this bulked out the IPerson functionality and updated bladeburner functions to be more sleeve compatible
2022-04-14 11:40:59 -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
Olivier Gagnon
3336a6ff61
added openDevMeny
2022-04-13 13:47:48 -04:00
hydroflame
96d76a84ba
Merge pull request #3431 from Undeemiss/sing-connect-backdoor
...
Allowed ns.singularity.connect to connect to backdoored servers directly
2022-04-13 12:22:17 -04:00
Undeemiss
dfc2ca6669
Allowed ns.singularity.connect to connect to backdoored servers directly
...
Added some small comments for readability and added a new case to
ns.singularity.connect that allows connecting to backdoored servers
directly regardless of if the current server is adjacent to them.
2022-04-13 11:03:17 -05:00
nickofolas
51e5d38c7b
Add grafting API function to get graftable augs
2022-04-13 09:43:27 -05:00
phyzical
6b48ff8f21
merge base
2022-04-13 18:50:42 +08:00
Jack
2f9ab67cd2
Merge branch 'dev' into bugfix/corp-updates
2022-04-13 16:35:18 +08:00
Olivier Gagnon
f1a3fb7d3e
fix buying programs and writing them at the same time.
2022-04-13 00:21:51 -04:00
hydroflame
c8c271a334
Merge pull request #3401 from TheMas3212/feat/wrap-singularity
...
Wrap Singularity API with wrapper
2022-04-12 20:53:55 -04: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
TheMas3212
b2689eaa5a
Wrap Singularity API with wrapper
...
also refactored the RamCosts IMap as it didnt quite work properly due to
how the wrapper calculates function names
2022-04-12 16:51:10 +10:00
hydroflame
a17b81dff3
Merge pull request #2925 from Ornedan/necro-script-fix
...
Necro script fix
2022-04-11 21:36:07 -04:00
hydroflame
674f3b0c9f
Merge pull request #3318 from smmalis37/empjobs
...
Fix docs for employeeProd and add employeeJobs.
2022-04-11 20:48:17 -04:00
hydroflame
3f4d00a8c2
Merge pull request #3350 from phyzical/bugfix/3348
...
Fix for install augmentation stale objects bug
2022-04-11 20:05:46 -04:00
Olivier Gagnon
5cbeae9353
lint
2022-04-11 14:17:27 -04:00
hydroflame
fc9e7244aa
Merge pull request #3197 from TheMas3212/feat/api-wrapper
...
Initial API Wrapper Work
2022-04-11 13:26:38 -04:00
hydroflame
1b87628a4d
Merge pull request #3387 from nickofolas/improvement/grafting-tweaks
...
[Improvement] Small grafting tweaks based around Congruity aug, plus some general grafting fixes
2022-04-11 13:22:34 -04:00
hydroflame
8f2adaf1b7
Merge pull request #3386 from phyzical/bugfix/add-missing-stockmarket-init
...
add call to missing stock market init when using the api
2022-04-11 13:18:25 -04:00
nickofolas
8da51b7e0a
Replace references to crafting with grafting
2022-04-11 11:07:15 -05:00
phyzical
a66b5bfb69
fixes and pr comments
2022-04-11 21:54:50 +08:00
phyzical
909e5e964f
add call to missing stock market init when using the api
2022-04-10 18:19:45 +08:00
Heinous Tugboat
dd19d6451d
Updates sleeve functions so names match
2022-04-09 18:40:01 -04:00
Olivier Gagnon
2b2af797a7
fmt and lint
2022-04-08 00:39:45 -04:00
Olivier Gagnon
a2dddb0e5a
Fix soft reset not installing augs anymore
2022-04-08 00:28:37 -04:00
TheMas3212
b2e7817a0b
format
2022-04-08 10:02:59 +10:00
TheMas3212
9b53896732
slight change on how wrapping work based on discussion in #development
2022-04-08 09:57:16 +10:00
phyzical
c70f59ac54
merge dev
2022-04-07 16:27:23 +08:00
phyzical
43248bbc42
merge dev
2022-04-07 16:25:33 +08:00
phyzical
a4e1b73b19
Merge branch 'dev' into bugfix/3348
...
# Conflicts:
# src/Faction/FactionInfo.tsx
# src/NetscriptFunctions/Singularity.ts
2022-04-07 16:17:28 +08:00
TheMas3212
f0cfc8700a
run formater
2022-04-07 10:23:52 +10:00
TheMas3212
8c58f0676d
Improve Typesafety on API Wrapper
2022-04-07 10:23:52 +10:00
TheMas3212
40f74e4a98
add wrapped helpers to ctx
...
add ramcheck into wrapper
2022-04-07 10:23:52 +10:00
TheMas3212
ea2b444b87
Initial API Wrapper Work
...
onlying wrapping Stanek api currently as test sample
(Rebased onto upstream/dev)
2022-04-07 10:23:46 +10:00
hydroflame
b6d68f7353
Merge branch 'dev' into bugfix/fix-tests
2022-04-06 20:16:51 -04:00
Olivier Gagnon
4fc352a792
fix a few test
2022-04-06 20:12:54 -04:00
Olivier Gagnon
48f80f25d6
fmt and lint
2022-04-06 19:30:08 -04:00
hydroflame
4cdef2d898
Merge pull request #3349 from phyzical/bugfix/3347
...
add logic to block sleeve working for gang faction
2022-04-05 20:01:02 -04:00
Qiyi Shan
b9caddeeef
Fix workForFaction invalid worktype case
...
When invalid work type, the function should return false instead of true
2022-04-05 11:22:02 -04:00
phyzical
dfe9e98c77
move route to terminal to the inside of the common fucntion
...
* tested without bandaid still works correctly
* fix default script with installAugmentations
2022-04-04 18:29:43 +08:00
phyzical
8eccdf16e1
add logic to block working for gang faction
2022-04-04 18:10:21 +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
a8689cb28b
Merge branch 'dev' into bugfix/corp-updates
2022-04-02 20:12:19 +08:00
BB
c495d39e6b
Fixed type of makeRuntimeErrorMsg in INetscriptHelper
2022-04-02 00:30:12 +02: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
4b867fea3e
rename factions formulas to reputation
2022-03-31 15:52:03 -04:00
PSEUDOSTAGE
a5f63e5932
fixed trailing spaces
2022-03-31 15:38:35 -04:00
PSEUDOSTAGE
a0333d36a5
Add calculateFavorToRep and calculateRepToFavor to Formulas.exe
...
The favorToRep and repToFavor formulas are displayed to the player in the factions pages but were not available in Formulas.exe. This change adds a FactionsFormulas interface with the calculateFavorToRep and calculateRepToFavor as new functions.
2022-03-31 15:27:02 -04:00
Olivier Gagnon
d04e05eac8
allbuild commit 5d36336d
2022-03-31 10:52:24 -04:00
phyzical
2edfb6e35d
merge base
2022-03-31 22:36:47 +08:00
phyzical
18af3f8413
moved updateRam to first call to avoid lack of mocks for tests
...
* added wrapper funcs to simplify updateRam
* added static parser tests and skiped what isnt worker still for next person to try and fix
2022-03-31 21:41:19 +08:00
nickofolas
a80693dab2
Merge branch 'dev' into fix/grafting-pre-reqs
2022-03-30 21:12:44 -04:00
Jack
e11819f0fd
Merge branch 'dev' into feature/add-infiltration-faction
2022-03-31 08:09:00 +08:00
nickofolas
73af73fdb4
Merge branch 'dev' of github.com:danielyxie/bitburner into improvement/filter-helper-func
2022-03-30 14:35:27 -04:00
Olivier Gagnon
98ae97afea
Validate city name coming from netscript
2022-03-30 11:34:03 -04:00
phyzical
be24562d34
merge dev
2022-03-30 19:11:34 +08:00
phyzical
07c6051004
merge dev
2022-03-30 19:00:57 +08:00
hydroflame
80d5132291
Merge pull request #3245 from phyzical/augmentation-refactors
...
slice out refactor of augmenation realted stuff from new faction pr
2022-03-29 23:47:27 -04:00
nickofolas
5d27ce7aa3
Impl faction augs filter helper function
2022-03-29 21:10:07 -04:00
Olivier Gagnon
cd1f01846f
unknown-ify bladeburner API.
2022-03-29 20:44:27 -04:00
phyzical
b3a52c6224
one minor compile issue
2022-03-30 08:36:27 +08:00
Olivier Gagnon
4d9a8e7bba
unknown-ify coding contract API.
2022-03-29 20:29:05 -04:00
Olivier Gagnon
6c9a3a336e
unknown-ify corp API.
2022-03-29 20:24:04 -04:00
Olivier Gagnon
c1401bef27
unknown-ify the gang API.
2022-03-29 20:12:55 -04:00
Olivier Gagnon
bbbaa89f74
unknown-ify singularity API
2022-03-29 20:05:40 -04:00
Olivier Gagnon
725c8234c9
unknown-ify the singularity API.
2022-03-29 19:49:37 -04:00
Olivier Gagnon
48e73a9131
allbuild commit /usr/bin/git
2022-03-29 18:00:57 -04:00
nickofolas
4f7b44df39
Handle pre-requisite augmentations
2022-03-29 17:09:36 -04:00
Olivier Gagnon
ac34829649
pre-1.6
2022-03-29 15:30:22 -04:00
Olivier Gagnon
443b0b6a89
rename functions in staneks gift
2022-03-29 14:20:40 -04:00
Olivier Gagnon
680081c548
post-grafting changes
2022-03-29 14:09:17 -04:00
hydroflame
fb1bce579f
Merge pull request #3170 from nickofolas/feature/grafting
...
[Feature] Grafting
2022-03-29 13:25:41 -04:00
nickofolas
9f6c827dee
Properly return false from craftAug
2022-03-27 15:33:03 -04:00
phyzical
7c5097ee83
added ns functions
...
* refactored out logic to be reused by api
2022-03-27 15:53:13 +08:00
DavidGrinberg
c6a2664296
purchaseTor returns true if player already has tor
...
Change `purchaseTor` to return `true` if the player already has purchased Tor. Previously it would return `false`
Changing this to true puts the behavior inline with the already existing behavior of `purchaseProgram`, which returns true if you have already purchased the program. Additionally this lets us call `purcahseTor` with the same logic that we use to call `purchaseProgram`
2022-03-25 13:06:12 -04:00
nickofolas
b437adb16c
Simplify API check
2022-03-23 15:48:39 -05:00
nickofolas
3476f0f0eb
Grafting API (no RAM costs yet)
2022-03-23 12:35:15 -05:00
nickofolas
1c696b5518
Update purchaseAugmentation rules
2022-03-23 12:04:49 -05:00
Olivier Gagnon
1fae48e1ce
lint
2022-03-22 10:36:56 -04:00
Olivier Gagnon
699ae2e967
with SLEEVE_8, fix workForFaction
2022-03-20 23:27:53 -04:00
Olivier Gagnon
fb7c65957d
Added dark web functions to ns api
2022-03-20 22:49:46 -04:00
hydroflame
27603e7a66
Merge pull request #2739 from surdaft/bugfix/2734-theme-apply-fails
...
WIP: 2734: Fix regex to enable alpha transparency hex codes (8 digits)
2022-03-20 21:14:50 -04:00
Olivier Gagnon
0fbcc30555
rm unused improt
2022-03-20 14:20:17 -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
hydroflame
629707dc32
Merge pull request #3199 from phyzical/bugfix/fix-sleeve-shock-check
...
purchaseSleeveAug
2022-03-20 14:13:17 -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
phyzical
7fdbc81594
used the getSleeveStats as it seems to be a miss connection between whats displayed and whats used
...
i.e sleeve.shock of 100 is actually a shock value of 0 for the use
2022-03-20 20:56:33 +08:00
t.wolfeadam
5702cb04b6
Implement getBonusTime in Corporation
...
Used documentation from other 'getBonusTime' methods
2022-03-19 15:22:29 -05:00
Olivier Gagnon
f801dc6d8a
allbuild commit /usr/bin/git
2022-03-19 12:58:18 -04:00
hydroflame
e3bf2d4d42
Merge pull request #3181 from incubusnb/WseAndTix
...
Wse and tix
2022-03-19 11:13:28 -04:00