Commit Graph

511 Commits

Author SHA1 Message Date
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
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
Olivier Gagnon
d01d75606a few bugfix 2021-12-08 17:39:01 -05:00
Olivier Gagnon
737276e855 corp api 2021-12-03 23:06:04 -05:00
Olivier Gagnon
647ccd6a7b BN13 2021-12-03 16:09:13 -05:00
Olivier Gagnon
d4ebc46a19 merge dev 2021-12-03 15:35:45 -05:00
Olivier Gagnon
49a545f00e many bugfix 2021-12-03 14:12:32 -05:00
Olivier Gagnon
d852649f2b log issue 2021-12-03 13:54:49 -05:00
theit8514
cb1aa452a1 Move getOwnedSourceFiles to NetscriptFunctions 2021-12-02 12:17:33 -05:00
Alain Bryden
ca2948b854
Bad copy pasta from isFocused -> setFocus 2021-11-26 23:02:02 -04:00
Olivier Gagnon
6e71258a53 fix disable log for tix api 2021-11-26 18:43:50 -05:00
Olivier Gagnon
c05518e162 workerscript log takes a function now, hopefully this will increase performance. 2021-11-26 18:30:58 -05:00
Olivier Gagnon
f0a004e75b Fix a bunch of scripting related stuff. 2021-11-25 11:47:31 -05:00
Alain Bryden
6b8a91a23b
Return the price paid/recieved on short/sellShort 2021-11-22 11:19:23 -04:00
Olivier Gagnon
f035457efc build part pr 2021-11-20 15:01:04 -05:00
Olivier Gagnon
60d34c3cc6 rebuild 2021-11-19 23:45:34 -05:00
Olivier Gagnon
a4a931dad7 v1.0.2 part 1 2021-11-19 14:39:38 -05:00
Olivier Gagnon
632de50a73 convert BN13 to a more conventional one. 2021-11-18 15:38:19 -05:00
Olivier Gagnon
ae9ad4430e Increase rep gains 2 2021-11-17 10:59:15 -05:00
Olivier Gagnon
ded230eaaf fix int exp gain in sing func 2021-11-14 08:36:40 -05:00
Olivier Gagnon
43a6521403 more work on bn13 2021-11-13 23:45:26 -05:00
Olivier Gagnon
56ddcd9a45 more work on bn13 2021-11-13 22:44:17 -05:00
Olivier Gagnon
c21644397d Make alter reality harder 2021-11-12 19:28:52 -05:00
Olivier Gagnon
7059bdf08a added ramUsed to getNodeStats 2021-11-12 10:10:33 -05:00
Olivier Gagnon
3112dc60c0 few more bugfixes 2021-11-11 23:28:08 -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
7cc4295c63 fix a few bugs 2021-11-10 07:52:26 -05:00
Olivier Gagnon
88b4a7d862 bugfix 2021-11-05 17:12:52 -04:00
Olivier Gagnon
f8917473f8 get rid of rollover rep 2021-11-05 16:09:19 -04:00
Olivier Gagnon
362d2eb51d Fix a few bugs and also added the concept of gang power multiplier 2021-11-05 13:20:52 -04:00
Olivier Gagnon
73d0f2074c formulas time in millis 2021-11-05 00:27:30 -04:00
Olivier Gagnon
14150d3e33 work on making the netscript api tighter 2021-11-03 20:19:52 -04:00
Olivier Gagnon
c5fb5155f3 work on making sure all the functions are accounted for 2021-11-03 18:16:10 -04:00
Olivier Gagnon
37845c57c0 migrate some of formulas 2021-11-02 22:58:40 -04:00
Olivier Gagnon
9b0726ca9a documentation 2021-10-30 16:03:34 -04:00
Olivier Gagnon
2e8cdc23d9 use NetscriptDefinitions as source of truth 2021-10-27 23:58:07 -04:00
Olivier Gagnon
e892e16585 Formulas.exe 2021-10-27 23:41:47 -04:00
Olivier Gagnon
9f14f2b863 comment 2021-10-27 15:56:04 -04:00
Olivier Gagnon
c9565a2263 fix Alter Reality 2021-10-27 15:55:11 -04:00
Olivier Gagnon
8f097ebb32 v0.58.0 2021-10-27 15:16:16 -04:00
Olivier Gagnon
48988e228e track money more precisely. 2021-10-27 14:18:33 -04:00
Olivier Gagnon
080b5a4a1f merge dev 2021-10-26 23:11:47 -04:00
Olivier Gagnon
738152d614 New sf -1 and changes to gang to rely more on territory 2021-10-26 23:02:46 -04:00
Olivier Gagnon
35a5e2f343 change the way charge works 2021-10-17 18:59:37 -04:00
tyasuh.taeragan@gmail.com
da02f8862a Commented Changes 2021-10-16 23:47:11 -04:00
Olivier Gagnon
092d5146b4 rotation! 2021-10-16 17:12:04 -04:00
tyasuh.taeragan@gmail.com
12f61677e3 Issues 1508 and 1506 2021-10-15 17:26:26 -04:00
Olivier Gagnon
d2f2ab07d7 merge dev 2021-10-15 15:13:48 -04:00
Olivier Gagnon
6b0e5416c4 wtf 2021-10-15 12:47:43 -04:00
Olivier Gagnon
d3fc6a9d48 split NetscriptFunctions 2021-10-14 03:22:02 -04:00
Olivier Gagnon
87c63cde59 merge v0.56.0 2021-10-12 01:35:30 -04:00
Olivier Gagnon
ac3a6b9a6f setToCommitCrime sleeve works with rough crime name 2021-10-11 17:12:08 -04:00
Olivier Gagnon
8f13363466 prettier 2021-10-11 16:38:50 -04:00
Olivier Gagnon
4355420349 made staneks gift work with prestiges 2021-10-08 03:16:51 -04:00
Olivier Gagnon
8d7f0488f8 merge dev 2021-10-07 17:58:32 -04:00
Olivier Gagnon
7d0536a4d2 finish convert to hostname 2021-10-07 17:55:49 -04:00
Olivier Gagnon
a7dfb1a537 more convertion from ip to hostname 2021-10-07 16:56:01 -04:00
Olivier Gagnon
be29481689 unexport AllServers 2021-10-07 16:04:04 -04:00
Olivier Gagnon
2f677c7ec8 more work 2021-10-04 23:51:39 -04:00
Olivier Gagnon
c5e29dafc4 fix mc 2021-10-04 22:31:07 -04:00
Olivier Gagnon
bb0bdb776b extracted some of the Netscript functions into their own file. 2021-10-04 22:25:21 -04:00
Olivier Gagnon
48b839d68c Added font size to text editor 2021-10-04 21:06:55 -04:00