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
phyzical
44ea479043
update constants
...
* added OperationNames
* added faction names
* used citynames where appropriate
2022-03-19 16:09:59 +08:00
parax
458f02051f
Added functions to RamCostGenerator.ts
2022-03-18 23:52:13 -06:00
parax
ac38e715aa
Fixed Lint Errors
2022-03-18 22:52:09 -06:00
parax
daadecb4e6
Removed requirement to already have WSE access
2022-03-18 22:33:22 -06:00
parax
e46c67a78a
Added NS functions to buy WSE and TIX
2022-03-18 21:58:18 -06:00
parax
f04ee5a65c
Linted file
2022-03-18 21:37:59 -06:00
parax
8b52e2ef3d
Fixed: purchaseSleeveAug checks shock value
2022-03-18 20:30:54 -06:00
Olivier Gagnon
06b2ec8957
allbuild commit /usr/bin/git
2022-03-18 11:18:08 -04:00
Olivier Gagnon
f17e685744
allbuild commit /usr/bin/git
2022-03-17 17:52:58 -04:00
Olivier Gagnon
8c9603d903
more unknown
2022-03-17 14:00:22 -04:00
Olivier Gagnon
28bd5e1b30
convert more user facing functions to unknown
2022-03-16 19:50:56 -04:00
Olivier Gagnon
989d0709ed
unknown-ify some code
2022-03-16 19:33:45 -04:00
Olivier Gagnon
e93be42e7c
2 new exploits
2022-03-16 14:34:05 -04:00
hydroflame
fdcbc4c508
Merge pull request #3095 from phyzical/bugfix/add-charge-for-stanek-width-height
...
added ram charge for stanek width and height
2022-03-10 21:40:28 -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
phyzical
ec927fe1f4
added ram charge for stanek width and height
2022-03-08 17:28:45 +08: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
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
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
Jack Stupple
2942ca500b
2734: Fix regex to enable alpha transparency hex codes (8 digits)
2022-01-27 18:21:17 +00: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
Jeffrey A. Robinson
664e99e3de
Ensure that we leave focus when we call stopAction or cancel working
2022-01-11 21:08:15 -08:00
Olivier Gagnon
d8a5f5b03c
many fixes
2022-01-09 15:24:32 -05:00
Heikki Aitakangas
c6ff982b1d
Remove stopFlag checks made redundant by the netscriptDelay change
2022-01-09 02:42:36 +02:00
Russell Stringer
e8d4265c96
Fix #2446 - ns.purchaseAugment() can no longer buy NF from gang
...
Added the checks from AugmentationPage.tsx to the singularity
purchaseAugment() function to disallow buying NF from player-run
gang and disallow TRP from player-run gang outside BN2
2022-01-07 17:02:44 -05:00
Heikki Aitakangas
804fbfa90a
Make corporation delayed functions check if script has been stopped during delay
2022-01-06 19:06:44 +02:00
hydroflame
b718fc3ef7
Merge pull request #2343 from MartinFournier/feature/set-theme
...
Add ns.ui.setTheme() and ns.ui.resetTheme()
2022-01-05 10:17:51 -05:00
hydroflame
ef3c7494cc
Merge pull request #2354 from TheMas3212/fix-1862
...
Fixes 1862 Combat gang members can do hacking tasks via API and vice versa
2022-01-05 10:16:52 -05:00
hydroflame
f798115259
Merge branch 'dev' into nan-donation
2022-01-05 10:15:40 -05:00
TheMas3212
c9f0c9c553
Fixes 1862 Combat gang members can do hacking tasks via API and vice versa
2022-01-05 22:02:25 +11:00
TheMas3212
860e77f109
Add check to see if player is in gang before getting Gang Faction
2022-01-05 21:41:04 +11:00
TheMas3212
538a440b7e
Fixes #1860 donate to gang faction possible via singularity
...
also fixes bug i found while testing this where its possible to donate
to a faction you arent a member of
2022-01-05 21:36:09 +11:00
Olivier Gagnon
925bed4430
fix scp
2022-01-04 22:25:41 -05:00
Woody Lam
3ca36fca95
Fix #2275 accepts NaN donation bug
2022-01-05 02:05:56 +00:00
Martin Fournier
c9ca1e9d37
Add ns.ui.setTheme() and ns.ui.resetTheme()
2022-01-04 20:33:18 -05:00
Olivier Gagnon
c59a267437
change sf4
2022-01-04 19:09:34 -05:00
Anton Mironov
23683d3482
Fixes CorporationInfo.state
...
Before:
CorporationInfo.state was returning "[Object object]".
After:
CorporationInfo.state returns an actual state like START, PURCHASE, PRODUCTION, SALE, EXPORT
2021-12-24 17:32:51 +01:00
Martin Fournier
6b59a58ea3
Fix linter errors
2021-12-22 04:44:07 -05:00
hydroflame
79eb2f7e0b
Merge pull request #2092 from theit8514/script-focus-v2
...
Add focus parameter to workForCompany/workForFaction
2021-12-21 11:02:26 -05:00
theit8514
d873f7279b
Add focus parameter to workForCompany/workForFaction
...
Defaults to true to keep previous behavior.
2021-12-21 08:13:18 -05:00
Martin Fournier
65d0877edc
Add ns.ui.getTheme() api function
2021-12-20 14:37:10 -05:00
Martin Fournier
3b99da8474
Lint current problems & fix ignore paths
2021-12-19 13:17:44 -05:00
Martin Fournier
217b94d0a0
Fix #1863 : Add getHashUpgrades hacknet function
...
Adds a new functions ofr hacknet servers that returns the list of
available hash upgrades.
2021-12-17 05:35:17 -05:00
Olivier Gagnon
d7f9cb8cec
make setFocus a little more robust
2021-12-16 12:02:46 -05:00
theit8514
d59601f848
Add return value and code style cleanup
2021-12-15 20:48:19 -05:00
theit8514
cd4c98d942
Only change to terminal when focused
2021-12-15 20:44:08 -05:00
theit8514
c50c92f9b5
Update SF requirement to match documentation
2021-12-15 20:33:48 -05:00
theit8514
2726420709
Add errors and only change page when focus changes
2021-12-15 20:33:48 -05:00
theit8514
07d449afc2
Ensure focus does not change between calls to work
2021-12-15 20:33:48 -05:00
theit8514
ad57f3dc73
Work functions do not take focus
...
setFocus readded and updated to send the user to the Work page if focusing.
2021-12-15 20:33:48 -05:00
Olivier Gagnon
394a286646
formulas for ascension
2021-12-09 12:52:51 -05:00
Olivier Gagnon
c915cd06d8
corp doc
2021-12-08 20:03:22 -05:00
Olivier Gagnon
5a15df9ce7
rename the functions I created 2 minutes ago.
2021-12-08 19:03:33 -05:00
Olivier Gagnon
6eba92b36c
rename the functions I created 2 minutes ago.
2021-12-08 18:41:49 -05:00
Olivier Gagnon
35fa4a4117
fix sleeve function not returning cha
2021-12-08 18:27:14 -05:00
Olivier Gagnon
2af57cb01e
formulas for gang stuff
2021-12-08 18:19:30 -05:00